diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-03-02 23:49:57 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-03-06 16:36:25 +0100 |
commit | d112761291b16c1d47bebdebf3169527f5e1249e (patch) | |
tree | bf5f0c4f7caa15a64bd15b3cdaf230ae1fe407b2 /svgio/source | |
parent | c34f8f2233212bba7ecca4d128b2ab59b2d1dd6a (diff) |
use gfx namespace for DrawCommands
Change-Id: Ib2d97c4fee4e1bb433beeba4fb507fdc7d542af9
Reviewed-on: https://gerrit.libreoffice.org/68775
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svgio/source')
-rw-r--r-- | svgio/source/svgreader/svgvisitor.cxx | 8 | ||||
-rw-r--r-- | svgio/source/svguno/xsvgparser.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/svgio/source/svgreader/svgvisitor.cxx b/svgio/source/svgreader/svgvisitor.cxx index 841a1cb7022e..9ac651c66cc7 100644 --- a/svgio/source/svgreader/svgvisitor.cxx +++ b/svgio/source/svgreader/svgvisitor.cxx @@ -24,7 +24,7 @@ namespace svgio namespace svgreader { SvgDrawVisitor::SvgDrawVisitor() - : mpDrawRoot(std::make_shared<DrawRoot>()) + : mpDrawRoot(std::make_shared<gfx::DrawRoot>()) , mpCurrent(mpDrawRoot) { } @@ -42,7 +42,7 @@ void SvgDrawVisitor::visit(svgio::svgreader::SvgNode const& rNode) double w = rSvgNode.getWidth().getNumber(); double h = rSvgNode.getHeight().getNumber(); - static_cast<DrawRoot*>(mpCurrent.get())->maRectangle + static_cast<gfx::DrawRoot*>(mpCurrent.get())->maRectangle = basegfx::B2DRange(x, y, x + w, y + h); } break; @@ -70,7 +70,7 @@ void SvgDrawVisitor::visit(svgio::svgreader::SvgNode const& rNode) double h = rRectNode.getHeight().getNumber(); auto pRectangle - = std::make_shared<DrawRectangle>(basegfx::B2DRange(x, y, x + w, y + h)); + = std::make_shared<gfx::DrawRectangle>(basegfx::B2DRange(x, y, x + w, y + h)); mpCurrent->maChildren.push_back(pRectangle); } break; @@ -80,7 +80,7 @@ void SvgDrawVisitor::visit(svgio::svgreader::SvgNode const& rNode) auto pPath = rPathNode.getPath(); if (pPath) { - auto pDrawPath = std::make_shared<DrawPath>(*pPath); + auto pDrawPath = std::make_shared<gfx::DrawPath>(*pPath); mpCurrent->maChildren.push_back(pDrawPath); } } diff --git a/svgio/source/svguno/xsvgparser.cxx b/svgio/source/svguno/xsvgparser.cxx index 3ed675763f72..e188e43dfa6e 100644 --- a/svgio/source/svguno/xsvgparser.cxx +++ b/svgio/source/svguno/xsvgparser.cxx @@ -194,7 +194,7 @@ namespace svgio { mpVisitor = std::make_shared<SvgDrawVisitor>(); pCandidate->accept(*mpVisitor); - std::shared_ptr<DrawRoot> pDrawRoot(mpVisitor->getDrawRoot()); + std::shared_ptr<gfx::DrawRoot> pDrawRoot(mpVisitor->getDrawRoot()); sal_uInt64 nPointer = reinterpret_cast<sal_uInt64>(pDrawRoot.get()); aAnyResult <<= sal_uInt64(nPointer); } |