Codota Logo
PropertyResolver.getEffectiveRPr
Code IndexAdd Codota to your IDE (free)

How to use
getEffectiveRPr
method
in
org.docx4j.model.PropertyResolver

Best Java code snippets using org.docx4j.model.PropertyResolver.getEffectiveRPr (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: plutext/docx4j

RPr pPrLevelRunStyle = getEffectiveRPr(pPr.getPStyle().getVal());
origin: plutext/docx4j

private RPr getEffectiveRPr(RPr expressRPr) {
  
  RPr resolvedRPr = null;
  if (expressRPr != null && expressRPr.getRStyle() != null ) {
    String runStyleId = expressRPr.getRStyle().getVal();
    resolvedRPr = propertyResolver.getEffectiveRPr(runStyleId);
    
    // remove the style, so it is not set by apply below
    expressRPr.setRStyle(null);
  }
  
  return StyleUtil.apply(expressRPr, resolvedRPr);
}

origin: plutext/docx4j

rPr = conversionContext.getPropertyResolver().getEffectiveRPr(null, pPr); 
origin: plutext/docx4j

pRPr = propertyResolver.getEffectiveRPr(pStyleId);
origin: plutext/docx4j

Jc effectiveJc = effectivePPr.getJc();
RPr effectiveRPr = propertyResolver.getEffectiveRPr(styleVal);
HpsMeasure effectiveFontSize = null;
if (effectiveRPr!=null) {
origin: org.docx4j/docx4j

RPr pPrLevelRunStyle = getEffectiveRPr(pPr.getPStyle().getVal());
origin: plutext/docx4j

if (expressRPr != null && expressRPr.getRStyle() != null ) {
  runStyleId = expressRPr.getRStyle().getVal();
  resolvedRPr = getEffectiveRPr(runStyleId);
  StyleUtil.apply(resolvedRPr, effectiveRPr);
origin: org.docx4j/docx4j

pRPr = propertyResolver.getEffectiveRPr(pStyleId);
origin: vsch/flexmark-java

public RPr getExplicitRPr(final RPrAbstract rPr, final PPr pPr) {
  RPr copyRPr = myFactory.createRPr();
  setRPr(copyRPr, rPr, false);
  return getResolver().getEffectiveRPr(copyRPr, pPr);
}
origin: vsch/flexmark-java

public BigInteger getNumPrFor(BigInteger baseNumID, Color color) {
  RPr rPr = getResolver().getEffectiveRPr(myOptions.PREFORMATTED_TEXT_STYLE);
  if (rPr != null && rPr.getColor() != null) {
    if (keepDiff(rPr.getColor(), color) == null) {
      return baseNumID;
    }
  }
  String colorID = String.format("%s:%s", baseNumID.toString(), color.getVal());
  final BigInteger numID = myNumPrColorMap.get(colorID);
  if (numID != null) {
    return numID;
  }
  // we create a copy of the baseNubPr and add the changed color property
  final NumberingDefinitionsPart ndp = myDocumentPart.getNumberingDefinitionsPart();
  try {
    final Numbering numbering = ndp.getContents();
    final List<Numbering.Num> num = numbering.getNum();
    final List<Numbering.AbstractNum> abstractNumList = numbering.getAbstractNum();
    for (Numbering.AbstractNum abstractNum : abstractNumList) {
      if (abstractNum.getAbstractNumId().compareTo(baseNumID) == 0) {
        // we have our list to copy
        // TODO: create a copy and set the color it the list's rpr.
      }
    }
    return null;
  } catch (Docx4JException e) {
    e.printStackTrace();
  }
  return null;
}
origin: org.docx4j/docx4j

private RPr getEffectiveRPr(RPr expressRPr) {
  
  RPr resolvedRPr = null;
  if (expressRPr != null && expressRPr.getRStyle() != null ) {
    String runStyleId = expressRPr.getRStyle().getVal();
    resolvedRPr = propertyResolver.getEffectiveRPr(runStyleId);
    
    // remove the style, so it is not set by apply below
    expressRPr.setRStyle(null);
  }
  
  return StyleUtil.apply(expressRPr, resolvedRPr);
}

origin: org.docx4j/docx4j

rPr = conversionContext.getPropertyResolver().getEffectiveRPr(null, pPr); 
origin: plutext/docx4j-ImportXHTML

if (pStyleId!=null) {
  styleRPr = propertyResolver.getEffectiveRPr(pStyleId);
  if (styleRPr!=null) {
    RPrCleanser.removeRedundantProperties(styleRPr, rPr);
  styleRPr = propertyResolver.getEffectiveRPr(styleId);
  RPrCleanser.removeRedundantProperties(styleRPr, rPr);
origin: org.docx4j/docx4j

Jc effectiveJc = effectivePPr.getJc();
RPr effectiveRPr = propertyResolver.getEffectiveRPr(styleVal);
HpsMeasure effectiveFontSize = null;
if (effectiveRPr!=null) {
origin: org.docx4j/docx4j

if (expressRPr != null && expressRPr.getRStyle() != null ) {
  runStyleId = expressRPr.getRStyle().getVal();
  resolvedRPr = getEffectiveRPr(runStyleId);
  StyleUtil.apply(resolvedRPr, effectiveRPr);
org.docx4j.modelPropertyResolvergetEffectiveRPr

Javadoc

apply the rPr in the stack of styles, including documentDefaultRPr

Popular methods of PropertyResolver

  • getEffectivePPr
    Follow the resolution rules to return the paragraph properties which actually apply, given this pPr
  • <init>
  • activateStyle
  • addDefaultParagraphFontToResolvedStyleRPrComponent
  • addNormalToResolvedStylePPrComponent
  • applyPPr
  • applyRPr
  • fillPPrStack
    Ascend (recursively) the style hierarchy, capturing the pPr bit. Doesn't use StyleTree.
  • fillRPrStack
    Ascend the style hierarchy, capturing the rPr bit
  • fillTableStyleStack
    Ascend the style hierarchy, capturing the table styles
  • getDocumentDefaultPPr
  • getDocumentDefaultRPr
  • getDocumentDefaultPPr,
  • getDocumentDefaultRPr,
  • getEffectiveRPrUsingPStyleRPr,
  • getEffectiveTableStyle,
  • getLvlFromHeadingStyle,
  • getStyle,
  • hasDirectPPrFormatting,
  • hasDirectRPrFormatting,
  • init

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • startActivity (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now