diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-03-27 14:34:35 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-03-28 10:27:46 +0200 |
commit | 559ecabbfc6d78df995c899ba996a470e241b76c (patch) | |
tree | 340451adcd9251f9b0b02bea11c2b01eda5dd9ee /oox/inc | |
parent | 8b8fad38b2de3f037f628fea1f0f00fcb280be0d (diff) |
n#751117 oox: implement VML import of v:line token
Diffstat (limited to 'oox/inc')
-rw-r--r-- | oox/inc/oox/vml/vmlshape.hxx | 15 | ||||
-rw-r--r-- | oox/inc/oox/vml/vmlshapecontext.hxx | 4 |
2 files changed, 19 insertions, 0 deletions
diff --git a/oox/inc/oox/vml/vmlshape.hxx b/oox/inc/oox/vml/vmlshape.hxx index c00625c5a6fa..bde882374e49 100644 --- a/oox/inc/oox/vml/vmlshape.hxx +++ b/oox/inc/oox/vml/vmlshape.hxx @@ -186,6 +186,8 @@ struct ShapeModel TextBoxPtr mxTextBox; /// Text contents and properties. ClientDataPtr mxClientData; /// Excel specific client data. ::rtl::OUString maLegacyDiagramPath;/// Legacy Diagram Fragment Path + ::rtl::OUString maFrom; /// Start point for line shape. + ::rtl::OUString maTo; /// End point for line shape. explicit ShapeModel(); ~ShapeModel(); @@ -312,6 +314,19 @@ protected: const ::com::sun::star::awt::Rectangle& rShapeRect ) const; }; +/** A Line shape object. */ +class LineShape : public SimpleShape +{ +public: + explicit LineShape( Drawing& rDrawing ); + +protected: + /** Creates the corresponding XShape and inserts it into the passed container. */ + virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > + implConvertAndInsert( + const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& rxShapes, + const ::com::sun::star::awt::Rectangle& rShapeRect ) const; +}; // ============================================================================ /** A shape object with custom geometry. */ diff --git a/oox/inc/oox/vml/vmlshapecontext.hxx b/oox/inc/oox/vml/vmlshapecontext.hxx index 08df6d33a713..13c77d3ecd18 100644 --- a/oox/inc/oox/vml/vmlshapecontext.hxx +++ b/oox/inc/oox/vml/vmlshapecontext.hxx @@ -139,6 +139,10 @@ public: private: /** Processes the 'points' attribute. */ void setPoints( const ::rtl::OUString& rPoints ); + /** Processes the 'from' attribute. */ + void setFrom( const ::rtl::OUString& rPoints ); + /** Processes the 'to' attribute. */ + void setTo( const ::rtl::OUString& rPoints ); protected: ShapeBase& mrShape; |