public boolean revert() throws Docx4JException { // template docx:- find top level repeat/condition controls TopLevelSdtTemplateFinder sdtPrFinder = new TopLevelSdtTemplateFinder(false); findSdtsInTemplate(openDopePkg, sdtPrFinder); templateConditionSdtsByID = sdtPrFinder.conditionSdtsByID; templateRepeatSdtsByID = sdtPrFinder.repeatSdtsByID; // instance docx:- handleSdtsInInstance(); return sanityCheck(); }
/** * @deprecated */ public static String getHyperlinkStyleId() { return getHyperlinkResolver().getHyperlinkStyleId(); }
/** * Provide a way to for user to fetch the starting bookmark ID number * for use in the next stage (ie Binding Traverse). * * If it isn't fetched/set, the value will have to be recalculated (less efficient). * * @since 3.2.1 */ public AtomicInteger getNextBookmarkId() { return bookmarkRenumber.getBookmarkId(); }
protected static void removeSDTs(WordprocessingMLPackage wmlPackage) throws Docx4JException { RemovalHandler removalHandler = new RemovalHandler(); removalHandler.removeSDTs(wmlPackage); }
/** * Removes Structured Document Tags from the main document part, headers, and footer, * preserving their contents. * * @param wordMLPackage * The docx package to modify (in situ). * * @throws Docx4JException * In case any transformation error occurs. * @since 6.1.0 */ public void removeSDTs(WordprocessingMLPackage wordMLPackage) throws Docx4JException { removeSDTs(wordMLPackage, getQuantifier() , (String[])null); }
public final void mRPAR() throws RecognitionException { try { int _type = RPAR; int _channel = DEFAULT_TOKEN_CHANNEL; // src\\main\\antlr\\XPathEnhancer.g:10:6: ( ')' ) // src\\main\\antlr\\XPathEnhancer.g:10:8: ')' { match(')'); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "RPAR"
public final void mPermittedHighSurrogateChar() throws RecognitionException { try { // src\\main\\antlr\\XPathEnhancer.g:388:3: ( '\\uD800' .. '\\uDB7F' ) // src\\main\\antlr\\XPathEnhancer.g:389:3: '\\uD800' .. '\\uDB7F' { matchRange('\uD800','\uDB7F'); } } finally { } } // $ANTLR end "PermittedHighSurrogateChar"
/** * @return the hyperlinkResolver * @since 3.0.0 */ public static BindingHyperlinkResolver getHyperlinkResolver() { if (hyperlinkResolver==null) { hyperlinkResolver = new BindingHyperlinkResolver(); } return hyperlinkResolver; } /**
@Override public List<Object> apply(Object o) { //System.out.println("traversing " + o.getClass().getName() ) ; if (o instanceof org.docx4j.wml.SdtBlock || o instanceof org.docx4j.wml.SdtRun || o instanceof org.docx4j.wml.CTSdtRow || o instanceof org.docx4j.wml.CTSdtCell) { // SdtCell as // well, here handleSdt(o); } return null; }
private void updateXmlFromSdts(List<SdtElement> contentControls) { for( SdtElement sdt : contentControls) { handleSdt(sdt); } }
public static ValueInserterPlainText getValueInserterPlainText() { if (valueInserterPlainText==null) { // Standard implementation valueInserterPlainText = new ValueInserterPlainTextImpl(); } return valueInserterPlainText; }
public static void logXml(NodeIterator nodeIterator ) { // Has different method, to prevent Xalan preferring the String log method log(nodeIterator); }
/** * Get the XML as a String. * * @since 3.0.1 */ public String getXML() throws Docx4JException { return data.getXML(); }
@Override public boolean setNodeValueAtXPath(String xpath, String value, String prefixMappings) throws Docx4JException { return data.setNodeValueAtXPath(xpath, value, prefixMappings); }
public final void mPIPE() throws RecognitionException { try { int _type = PIPE; int _channel = DEFAULT_TOKEN_CHANNEL; // src\\main\\antlr\\XPathEnhancer.g:20:6: ( '|' ) // src\\main\\antlr\\XPathEnhancer.g:20:8: '|' { match('|'); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "PIPE"
public final void mLowSurrogateChar() throws RecognitionException { try { // src\\main\\antlr\\XPathEnhancer.g:394:3: ( '\\uDC00' .. '\\uDFFF' ) // src\\main\\antlr\\XPathEnhancer.g:395:3: '\\uDC00' .. '\\uDFFF' { matchRange('\uDC00','\uDFFF'); } } finally { } } // $ANTLR end "LowSurrogateChar"
public final void mQUOT() throws RecognitionException { try { int _type = QUOT; int _channel = DEFAULT_TOKEN_CHANNEL; // src\\main\\antlr\\XPathEnhancer.g:28:6: ( '\\\"' ) // src\\main\\antlr\\XPathEnhancer.g:28:8: '\\\"' { match('\"'); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "QUOT"
public final void mGE() throws RecognitionException { try { int _type = GE; int _channel = DEFAULT_TOKEN_CHANNEL; // src\\main\\antlr\\XPathEnhancer.g:24:4: ( '>=' ) // src\\main\\antlr\\XPathEnhancer.g:24:6: '>=' { match(">="); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "GE"
public final void mT__37() throws RecognitionException { try { int _type = T__37; int _channel = DEFAULT_TOKEN_CHANNEL; // src\\main\\antlr\\XPathEnhancer.g:29:7: ( 'processing-instruction' ) // src\\main\\antlr\\XPathEnhancer.g:29:9: 'processing-instruction' { match("processing-instruction"); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "T__37"
public final void mT__40() throws RecognitionException { try { int _type = T__40; int _channel = DEFAULT_TOKEN_CHANNEL; // src\\main\\antlr\\XPathEnhancer.g:32:7: ( '=' ) // src\\main\\antlr\\XPathEnhancer.g:32:9: '=' { match('='); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "T__40"