diff options
Diffstat (limited to 'svgio/source/svgreader')
-rw-r--r-- | svgio/source/svgreader/svganode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgcharacternode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgclippathnode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svggnode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgimagenode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgmarkernode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgmasknode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgnode.cxx | 56 | ||||
-rw-r--r-- | svgio/source/svgreader/svgpatternnode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgusenode.cxx | 2 |
10 files changed, 37 insertions, 37 deletions
diff --git a/svgio/source/svgreader/svganode.cxx b/svgio/source/svgreader/svganode.cxx index ad4483423100..6065ed498e42 100644 --- a/svgio/source/svgreader/svganode.cxx +++ b/svgio/source/svgreader/svganode.cxx @@ -84,7 +84,7 @@ namespace svgio::svgreader const double fOpacity(pStyle->getOpacity().getNumber()); - if(fOpacity > 0.0 && Display_none != getDisplay()) + if (fOpacity > 0.0 && Display::None != getDisplay()) { drawinglayer::primitive2d::Primitive2DContainer aContent; diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx index ff30730cf1eb..e0b66c6f8ee2 100644 --- a/svgio/source/svgreader/svgcharacternode.cxx +++ b/svgio/source/svgreader/svgcharacternode.cxx @@ -524,7 +524,7 @@ namespace svgio::svgreader void SvgCharacterNode::whiteSpaceHandling() { - if(XmlSpace_default == getXmlSpace()) + if (XmlSpace::Default == getXmlSpace()) { maText = whiteSpaceHandlingDefault(maText); } diff --git a/svgio/source/svgreader/svgclippathnode.cxx b/svgio/source/svgreader/svgclippathnode.cxx index a90d6adb8c2b..1a8269684095 100644 --- a/svgio/source/svgreader/svgclippathnode.cxx +++ b/svgio/source/svgreader/svgclippathnode.cxx @@ -125,7 +125,7 @@ namespace svgio::svgreader drawinglayer::primitive2d::Primitive2DContainer& rContent, const basegfx::B2DHomMatrix* pTransform) const { - if(rContent.empty() || Display_none == getDisplay()) + if (rContent.empty() || Display::None == getDisplay()) return; const drawinglayer::geometry::ViewInformation2D aViewInformation2D; diff --git a/svgio/source/svgreader/svggnode.cxx b/svgio/source/svgreader/svggnode.cxx index 1d32de448517..e186387a80ba 100644 --- a/svgio/source/svgreader/svggnode.cxx +++ b/svgio/source/svgreader/svggnode.cxx @@ -99,7 +99,7 @@ namespace svgio::svgreader { const double fOpacity(pStyle->getOpacity().getNumber()); - if(fOpacity > 0.0 && Display_none != getDisplay()) + if(fOpacity > 0.0 && Display::None != getDisplay()) { drawinglayer::primitive2d::Primitive2DContainer aContent; diff --git a/svgio/source/svgreader/svgimagenode.cxx b/svgio/source/svgreader/svgimagenode.cxx index 994be83224c9..feaf5933ad53 100644 --- a/svgio/source/svgreader/svgimagenode.cxx +++ b/svgio/source/svgreader/svgimagenode.cxx @@ -259,7 +259,7 @@ namespace svgio::svgreader { const SvgNode* pXLink = getDocument().findSvgNodeById(maXLink); - if(pXLink && Display_none != pXLink->getDisplay()) + if(pXLink && Display::None != pXLink->getDisplay()) { pXLink->decomposeSvgNode(aNewTarget, true); diff --git a/svgio/source/svgreader/svgmarkernode.cxx b/svgio/source/svgreader/svgmarkernode.cxx index f69584553198..b16d03dd004d 100644 --- a/svgio/source/svgreader/svgmarkernode.cxx +++ b/svgio/source/svgreader/svgmarkernode.cxx @@ -171,7 +171,7 @@ namespace svgio::svgreader const drawinglayer::primitive2d::Primitive2DContainer& SvgMarkerNode::getMarkerPrimitives() const { - if(aPrimitives.empty() && Display_none != getDisplay()) + if(aPrimitives.empty() && Display::None != getDisplay()) { decomposeSvgNode(const_cast< SvgMarkerNode* >(this)->aPrimitives, true); } diff --git a/svgio/source/svgreader/svgmasknode.cxx b/svgio/source/svgreader/svgmasknode.cxx index 631ae3e7c01f..7f3ab9a772ca 100644 --- a/svgio/source/svgreader/svgmasknode.cxx +++ b/svgio/source/svgreader/svgmasknode.cxx @@ -190,7 +190,7 @@ namespace svgio::svgreader drawinglayer::primitive2d::Primitive2DContainer& rTarget, const basegfx::B2DHomMatrix* pTransform) const { - if(rTarget.empty() || Display_none == getDisplay()) + if(rTarget.empty() || Display::None == getDisplay()) return; drawinglayer::primitive2d::Primitive2DContainer aMaskTarget; diff --git a/svgio/source/svgreader/svgnode.cxx b/svgio/source/svgreader/svgnode.cxx index ac0c98a42000..7f534af23f80 100644 --- a/svgio/source/svgreader/svgnode.cxx +++ b/svgio/source/svgreader/svgnode.cxx @@ -268,8 +268,8 @@ namespace svgio::svgreader mpParent(pParent), mpAlternativeParent(nullptr), maChildren(), - maXmlSpace(XmlSpace_notset), - maDisplay(Display_inline), + maXmlSpace(XmlSpace::NotSet), + maDisplay(Display::Inline), maCssStyleVector(), mbDecomposing(false), mbCssStyleVectorBuilt(false) @@ -341,80 +341,80 @@ namespace svgio::svgreader { if(aContent.startsWith("inline")) { - return Display_inline; + return Display::Inline; } else if(aContent.startsWith("none")) { - return Display_none; + return Display::None; } else if(aContent.startsWith("inherit")) { - return Display_inherit; + return Display::Inherit; } else if(aContent.startsWith("block")) { - return Display_block; + return Display::Block; } else if(aContent.startsWith("list-item")) { - return Display_list_item; + return Display::ListItem; } else if(aContent.startsWith("run-in")) { - return Display_run_in; + return Display::RunIn; } else if(aContent.startsWith("compact")) { - return Display_compact; + return Display::Compact; } else if(aContent.startsWith("marker")) { - return Display_marker; + return Display::Marker; } else if(aContent.startsWith("table")) { - return Display_table; + return Display::Table; } else if(aContent.startsWith("inline-table")) { - return Display_inline_table; + return Display::InlineTable; } else if(aContent.startsWith("table-row-group")) { - return Display_table_row_group; + return Display::TableRowGroup; } else if(aContent.startsWith("table-header-group")) { - return Display_table_header_group; + return Display::TableHeaderGroup; } else if(aContent.startsWith("table-footer-group")) { - return Display_table_footer_group; + return Display::TableFooterGroup; } else if(aContent.startsWith("table-row")) { - return Display_table_row; + return Display::TableRow; } else if(aContent.startsWith("table-column-group")) { - return Display_table_column_group; + return Display::TableColumnGroup; } else if(aContent.startsWith("table-column")) { - return Display_table_column; + return Display::TableColumn; } else if(aContent.startsWith("table-cell")) { - return Display_table_cell; + return Display::TableCell; } else if(aContent.startsWith("table-caption")) { - return Display_table_caption; + return Display::TableCaption; } } // return the default - return Display_inline; + return Display::Inline; } void SvgNode::parseAttribute(const OUString& /*rTokenName*/, SVGToken aSVGToken, const OUString& aContent) @@ -443,11 +443,11 @@ namespace svgio::svgreader { if(aContent.startsWith("default")) { - setXmlSpace(XmlSpace_default); + setXmlSpace(XmlSpace::Default); } else if(aContent.startsWith("preserve")) { - setXmlSpace(XmlSpace_preserve); + setXmlSpace(XmlSpace::Preserve); } } break; @@ -472,7 +472,7 @@ namespace svgio::svgreader if (mbDecomposing) //guard against infinite recurse return; - if(Display_none == getDisplay()) + if(Display::None == getDisplay()) { return; } @@ -516,7 +516,7 @@ namespace svgio::svgreader { SvgNode* pCandidate = rChildren[a].get(); - if(pCandidate && Display_none != pCandidate->getDisplay()) + if(pCandidate && Display::None != pCandidate->getDisplay()) { const auto& rGrandChildren = pCandidate->getChildren(); const SvgStyleAttributes* pChildStyles = pCandidate->getSvgStyleAttributes(); @@ -664,7 +664,7 @@ namespace svgio::svgreader XmlSpace SvgNode::getXmlSpace() const { - if(maXmlSpace != XmlSpace_notset) + if(maXmlSpace != XmlSpace::NotSet) { return maXmlSpace; } @@ -674,8 +674,8 @@ namespace svgio::svgreader return getParent()->getXmlSpace(); } - // default is XmlSpace_default - return XmlSpace_default; + // default is XmlSpace::Default + return XmlSpace::Default; } void SvgNode::accept(Visitor & rVisitor) diff --git a/svgio/source/svgreader/svgpatternnode.cxx b/svgio/source/svgreader/svgpatternnode.cxx index 3a62e2510c8a..8d8721a5ee27 100644 --- a/svgio/source/svgreader/svgpatternnode.cxx +++ b/svgio/source/svgreader/svgpatternnode.cxx @@ -257,7 +257,7 @@ namespace svgio::svgreader const drawinglayer::primitive2d::Primitive2DContainer& SvgPatternNode::getPatternPrimitives() const { - if(aPrimitives.empty() && Display_none != getDisplay()) + if(aPrimitives.empty() && Display::None != getDisplay()) { decomposeSvgNode(const_cast< SvgPatternNode* >(this)->aPrimitives, true); } diff --git a/svgio/source/svgreader/svgusenode.cxx b/svgio/source/svgreader/svgusenode.cxx index e4b59ba733e3..e4fc03ae7345 100644 --- a/svgio/source/svgreader/svgusenode.cxx +++ b/svgio/source/svgreader/svgusenode.cxx @@ -140,7 +140,7 @@ namespace svgio::svgreader // try to access link to content const SvgNode* pXLink = getDocument().findSvgNodeById(maXLink); - if (!pXLink || Display_none == pXLink->getDisplay() || mbDecomposingSvgNode) + if (!pXLink || Display::None == pXLink->getDisplay() || mbDecomposingSvgNode) return; // decompose children |