/** * Get the default style which applies text runs in the document */ public XWPFDefaultRunStyle getDefaultRunStyle() { ensureDocDefaults(); return defaultRunStyle; }
/** * Get the default paragraph style which applies to the document */ public XWPFDefaultParagraphStyle getDefaultParagraphStyle() { ensureDocDefaults(); return defaultParaStyle; }
/** * Sets the default font on ctStyles DocDefaults parameter * TODO Replace this with specific setters for each type, possibly * on XWPFDefaultRunStyle */ public void setDefaultFonts(CTFonts fonts) { ensureDocDefaults(); CTRPr runProps = defaultRunStyle.getRPr(); runProps.setRFonts(fonts); }
protected CTLanguage getCTLanguage() { ensureDocDefaults(); CTLanguage lang = null; if (defaultRunStyle.getRPr().isSetLang()) { lang = defaultRunStyle.getRPr().getLang(); } else { lang = defaultRunStyle.getRPr().addNewLang(); } return lang; }
/** * Get the default paragraph style which applies to the document */ public XWPFDefaultParagraphStyle getDefaultParagraphStyle() { ensureDocDefaults(); return defaultParaStyle; }
/** * Get the default style which applies text runs in the document */ public XWPFDefaultRunStyle getDefaultRunStyle() { ensureDocDefaults(); return defaultRunStyle; }
/** * Sets the default font on ctStyles DocDefaults parameter * TODO Replace this with specific setters for each type, possibly * on XWPFDefaultRunStyle */ public void setDefaultFonts(CTFonts fonts) { ensureDocDefaults(); CTRPr runProps = defaultRunStyle.getRPr(); runProps.setRFonts(fonts); }
protected CTLanguage getCTLanguage() { ensureDocDefaults(); CTLanguage lang = null; if (defaultRunStyle.getRPr().isSetLang()) { lang = defaultRunStyle.getRPr().getLang(); } else { lang = defaultRunStyle.getRPr().addNewLang(); } return lang; }