/** * Create child element {@odf.element style:master-page}. * * @param styleNameValue the <code>String</code> value of <code>StyleNameAttribute</code>, see {@odf.attribute style:name} at specification * @param stylePageLayoutNameValue the <code>String</code> value of <code>StylePageLayoutNameAttribute</code>, see {@odf.attribute style:page-layout-name} at specification * @return the element {@odf.element style:master-page} */ public StyleMasterPageElement newStyleMasterPageElement(String styleNameValue, String stylePageLayoutNameValue) { StyleMasterPageElement styleMasterPage = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleMasterPageElement.class); styleMasterPage.setStyleNameAttribute(styleNameValue); styleMasterPage.setStylePageLayoutNameAttribute(stylePageLayoutNameValue); this.appendChild(styleMasterPage); return styleMasterPage; }
/** * Create child element {@odf.element style:master-page}. * * @param styleNameValue the <code>String</code> value of <code>StyleNameAttribute</code>, see {@odf.attribute style:name} at specification * @param stylePageLayoutNameValue the <code>String</code> value of <code>StylePageLayoutNameAttribute</code>, see {@odf.attribute style:page-layout-name} at specification * @return the element {@odf.element style:master-page} */ public StyleMasterPageElement newStyleMasterPageElement(String styleNameValue, String stylePageLayoutNameValue) { StyleMasterPageElement styleMasterPage = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleMasterPageElement.class); styleMasterPage.setStyleNameAttribute(styleNameValue); styleMasterPage.setStylePageLayoutNameAttribute(stylePageLayoutNameValue); this.appendChild(styleMasterPage); return styleMasterPage; }
/** * Create child element {@odf.element style:master-page}. * * @param styleNameValue the <code>String</code> value of <code>StyleNameAttribute</code>, see {@odf.attribute style:name} at specification * @param stylePageLayoutNameValue the <code>String</code> value of <code>StylePageLayoutNameAttribute</code>, see {@odf.attribute style:page-layout-name} at specification * @return the element {@odf.element style:master-page} */ public StyleMasterPageElement newStyleMasterPageElement(String styleNameValue, String stylePageLayoutNameValue) { StyleMasterPageElement styleMasterPage = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleMasterPageElement.class); styleMasterPage.setStyleNameAttribute(styleNameValue); styleMasterPage.setStylePageLayoutNameAttribute(stylePageLayoutNameValue); this.appendChild(styleMasterPage); return styleMasterPage; }
if(vSyleMasterPage.getStyleNameAttribute().equals("Standard")){ if(vSyleMasterPage.getStylePageLayoutNameAttribute().equals(oldPageLayoutName)){ vSyleMasterPage.setStylePageLayoutNameAttribute(pageLayout.getStyleNameAttribute());
if(vSyleMasterPage.getStyleNameAttribute().equals("Standard")){ if(vSyleMasterPage.getStylePageLayoutNameAttribute().equals(oldPageLayoutName)){ vSyleMasterPage.setStylePageLayoutNameAttribute(pageLayout.getStyleNameAttribute());
if(vSyleMasterPage.getStyleNameAttribute().equals("Standard")){ if(vSyleMasterPage.getStylePageLayoutNameAttribute().equals(oldPageLayoutName)){ vSyleMasterPage.setStylePageLayoutNameAttribute(pageLayout.getStyleNameAttribute());