summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/PresenterCanvasHelper.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/presenter/PresenterCanvasHelper.hxx')
-rw-r--r--sdext/source/presenter/PresenterCanvasHelper.hxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sdext/source/presenter/PresenterCanvasHelper.hxx b/sdext/source/presenter/PresenterCanvasHelper.hxx
index 90d4dec2deec..f254b5c2d6a1 100644
--- a/sdext/source/presenter/PresenterCanvasHelper.hxx
+++ b/sdext/source/presenter/PresenterCanvasHelper.hxx
@@ -35,6 +35,7 @@
#include "PresenterTheme.hxx"
#include <com/sun/star/awt/Point.hpp>
#include <com/sun/star/awt/Rectangle.hpp>
+#include <com/sun/star/rendering/TextDirection.hpp>
#include <com/sun/star/rendering/XCanvas.hpp>
#include <com/sun/star/rendering/XCanvasFont.hpp>
#include <com/sun/star/rendering/XPolyPolygon2D.hpp>
@@ -76,9 +77,15 @@ public:
css::rendering::RenderState& rRenderState,
const css::util::Color aColor);
+ static css::geometry::RealRectangle2D GetTextBoundingBox (
+ const css::uno::Reference<css::rendering::XCanvasFont>& rxFont,
+ const ::rtl::OUString& rsText,
+ const sal_Int8 = css::rendering::TextDirection::WEAK_LEFT_TO_RIGHT);
+
static css::geometry::RealSize2D GetTextSize (
const css::uno::Reference<css::rendering::XCanvasFont>& rxFont,
- const ::rtl::OUString& rsText);
+ const ::rtl::OUString& rsText,
+ const sal_Int8 = css::rendering::TextDirection::WEAK_LEFT_TO_RIGHT);
private:
const css::rendering::ViewState maDefaultViewState;