summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorKorrawit Pruegsanusak <detective.conan.1412@gmail.com>2012-02-08 21:02:18 +0700
committerKorrawit Pruegsanusak <detective.conan.1412@gmail.com>2012-02-08 21:06:51 +0700
commita330f38093e2643a26239557050561afae9ff23d (patch)
treee31e00f724c06eeeba35ea649e1dbab959fb5ec8 /basegfx/source
parent344ebc80330cc4f6ff9858ab6d06735568b87bf9 (diff)
Recover some methods needed by windows directx
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/range/b2drange.cxx7
-rw-r--r--basegfx/source/tools/unopolypolygon.cxx5
2 files changed, 12 insertions, 0 deletions
diff --git a/basegfx/source/range/b2drange.cxx b/basegfx/source/range/b2drange.cxx
index 5884b7e564f4..2da38ce2dbc3 100644
--- a/basegfx/source/range/b2drange.cxx
+++ b/basegfx/source/range/b2drange.cxx
@@ -60,6 +60,13 @@ namespace basegfx
}
}
+ B2IRange fround(const B2DRange& rRange)
+ {
+ return rRange.isEmpty() ?
+ B2IRange() :
+ B2IRange(fround(rRange.getMinimum()),
+ fround(rRange.getMaximum()));
+ }
} // end of namespace basegfx
// eof
diff --git a/basegfx/source/tools/unopolypolygon.cxx b/basegfx/source/tools/unopolypolygon.cxx
index 2ffaabd149c4..80203c2587bc 100644
--- a/basegfx/source/tools/unopolypolygon.cxx
+++ b/basegfx/source/tools/unopolypolygon.cxx
@@ -445,6 +445,11 @@ namespace unotools
return aSubsetPoly;
}
+ B2DPolyPolygon UnoPolyPolygon::getPolyPolygonUnsafe() const
+ {
+ return maPolyPoly;
+ }
+
#define IMPLEMENTATION_NAME "gfx::internal::UnoPolyPolygon"
#define SERVICE_NAME "com.sun.star.rendering.PolyPolygon2D"
::rtl::OUString SAL_CALL UnoPolyPolygon::getImplementationName() throw( uno::RuntimeException )