summaryrefslogtreecommitdiff
path: root/oox/inc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-11-08 14:24:29 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-11-08 15:19:37 +0100
commitf2c55815128fde9f760c5cbf81e3ab18402c5b3d (patch)
treec43ba4cd11300759657b489714313f8cd7f81a22 /oox/inc
parent6063fd0402e0b63aec4a6740e94e4f76fcc312c1 (diff)
implement inset attribute of <v:textbox> (part of bnc#773061)
Change-Id: I1ec9b5d9fed86c44dc0a412c2323033ea67985c9
Diffstat (limited to 'oox/inc')
-rw-r--r--oox/inc/oox/vml/vmlshape.hxx2
-rw-r--r--oox/inc/oox/vml/vmltextbox.hxx4
-rw-r--r--oox/inc/oox/vml/vmltextboxcontext.hxx3
3 files changed, 8 insertions, 1 deletions
diff --git a/oox/inc/oox/vml/vmlshape.hxx b/oox/inc/oox/vml/vmlshape.hxx
index c7f288d36aa8..87b51d1cedac 100644
--- a/oox/inc/oox/vml/vmlshape.hxx
+++ b/oox/inc/oox/vml/vmlshape.hxx
@@ -120,6 +120,8 @@ public:
/** Returns the fragment path to the embedded graphic used by this shape. */
::rtl::OUString getGraphicPath() const;
+ const Drawing& getDrawing() const { return mrDrawing; }
+
protected:
/** Returns the coordinate system of this shape. */
::com::sun::star::awt::Rectangle getCoordSystem() const;
diff --git a/oox/inc/oox/vml/vmltextbox.hxx b/oox/inc/oox/vml/vmltextbox.hxx
index d540937b622e..af69e779e601 100644
--- a/oox/inc/oox/vml/vmltextbox.hxx
+++ b/oox/inc/oox/vml/vmltextbox.hxx
@@ -74,6 +74,10 @@ public:
/** Returns the entire text of all text portions. */
::rtl::OUString getText() const;
+ /// Text distance from the border (inset attribute of v:textbox), valid only if set.
+ bool borderDistanceSet;
+ int borderDistanceLeft, borderDistanceTop, borderDistanceRight, borderDistanceBottom;
+
private:
typedef ::std::vector< TextPortionModel > PortionVector;
diff --git a/oox/inc/oox/vml/vmltextboxcontext.hxx b/oox/inc/oox/vml/vmltextboxcontext.hxx
index 93254145e64c..4fd35d187f2f 100644
--- a/oox/inc/oox/vml/vmltextboxcontext.hxx
+++ b/oox/inc/oox/vml/vmltextboxcontext.hxx
@@ -57,7 +57,8 @@ public:
explicit TextBoxContext(
::oox::core::ContextHandler2Helper& rParent,
TextBox& rTextBox,
- const AttributeList& rAttribs );
+ const AttributeList& rAttribs,
+ const GraphicHelper& graphicHelper );
virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs );