/** * @param val * @since 3.3.0 */ public void setDocSecurity(int val) { // See http://webapp.docx4java.org/OnlineDemo/ecma376/SharedML/DocSecurity.html // It is set by Word 2013 restrict editing read only, or comments, to 8. // May also be set by Excel to something other than 0 // for for certain protect sheet, protect workbook values, // but not for the default values, so nothing is implemented in xlsx4j yet if (this.getJaxbElement()==null) { this.setJaxbElement(new Properties()); } this.getJaxbElement().setDocSecurity(val); }
public String xpathGetString(String xpathString, String prefixMappings) throws Docx4JException { Document doc = XmlUtils.marshaltoW3CDomDocument( getJaxbElement(), Context.jcDocPropsExtended ); try { String result; synchronized(xPath) { getNamespaceContext().registerPrefixMappings(prefixMappings); result = xPath.evaluate(xpathString, doc ); } log.debug(xpathString + " ---> " + result); return result; } catch (Exception e) { throw new Docx4JException("Problems evaluating xpath '" + xpathString + "'", e); } } private NamespacePrefixMappings nsContext;
public DocPropertyResolver(WordprocessingMLPackage wordMLPackage) { coreProperties = wordMLPackage.getDocPropsCorePart() == null ? null : wordMLPackage.getDocPropsCorePart().getJaxbElement(); extendedProperties = wordMLPackage.getDocPropsExtendedPart() == null ? null : wordMLPackage.getDocPropsExtendedPart().getJaxbElement(); docPropsCustomPart = wordMLPackage.getDocPropsCustomPart(); }
Docx4jProperties.getProperties().getProperty("docx4j.App.write", "false")); if (appWrite) { Properties cp = ((DocPropsExtendedPart)part).getJaxbElement();
Properties cp = ((DocPropsExtendedPart)part).getJaxbElement();
/** * @param val * @since 3.3.0 */ public void setDocSecurity(int val) { // See http://webapp.docx4java.org/OnlineDemo/ecma376/SharedML/DocSecurity.html // It is set by Word 2013 restrict editing read only, or comments, to 8. // May also be set by Excel to something other than 0 // for for certain protect sheet, protect workbook values, // but not for the default values, so nothing is implemented in xlsx4j yet if (this.getJaxbElement()==null) { this.setJaxbElement(new Properties()); } this.getJaxbElement().setDocSecurity(val); }
public String xpathGetString(String xpathString, String prefixMappings) throws Docx4JException { Document doc = XmlUtils.marshaltoW3CDomDocument( getJaxbElement(), Context.jcDocPropsExtended ); try { String result; synchronized(xPath) { getNamespaceContext().registerPrefixMappings(prefixMappings); result = xPath.evaluate(xpathString, doc ); } log.debug(xpathString + " ---> " + result); return result; } catch (Exception e) { throw new Docx4JException("Problems evaluating xpath '" + xpathString + "'", e); } } private NamespacePrefixMappings nsContext;
public DocPropertyResolver(WordprocessingMLPackage wordMLPackage) { coreProperties = wordMLPackage.getDocPropsCorePart() == null ? null : wordMLPackage.getDocPropsCorePart().getJaxbElement(); extendedProperties = wordMLPackage.getDocPropsExtendedPart() == null ? null : wordMLPackage.getDocPropsExtendedPart().getJaxbElement(); docPropsCustomPart = wordMLPackage.getDocPropsCustomPart(); }
Docx4jProperties.getProperties().getProperty("docx4j.App.write", "false")); if (appWrite) { Properties cp = ((DocPropsExtendedPart)part).getJaxbElement();
Properties cp = ((DocPropsExtendedPart)part).getJaxbElement();