merge the formfield patch from ooo-build
[ooovba.git] / writerfilter / source / dmapper / PageBordersHandler.hxx
blob5f501d2f02f3f11100365feb409e4b3749adbb5e
1 #ifndef INCLUDED_PAGEBORDERSHANDLER_HXX
2 #define INCLUDED_PAGEBORDERSHANDLER_HXX
4 #include "BorderHandler.hxx"
5 #include "PropertyMap.hxx"
7 #include <WriterFilterDllApi.hxx>
8 #include <resourcemodel/WW8ResourceModel.hxx>
9 #include <boost/shared_ptr.hpp>
11 #include <com/sun/star/table/BorderLine.hpp>
13 #include <vector>
15 using namespace std;
17 namespace writerfilter {
18 namespace dmapper {
20 class _PgBorder
22 public:
23 com::sun::star::table::BorderLine m_rLine;
24 sal_Int32 m_nDistance;
25 BorderPosition m_ePos;
27 _PgBorder( );
28 ~_PgBorder( );
31 class WRITERFILTER_DLLPRIVATE PageBordersHandler : public Properties
33 private:
35 // See implementation of SectionPropertyMap::ApplyBorderToPageStyles
36 sal_Int32 m_nDisplay;
37 sal_Int32 m_nOffset;
38 vector<_PgBorder> m_aBorders;
40 public:
41 PageBordersHandler( );
42 ~PageBordersHandler( );
44 // Properties
45 virtual void attribute( Id eName, Value& rVal );
46 virtual void sprm( Sprm& rSprm );
48 inline sal_Int32 GetDisplayOffset( )
50 return ( m_nOffset << 5 ) + m_nDisplay;
52 void SetBorders( SectionPropertyMap* pSectContext );
54 typedef boost::shared_ptr< PageBordersHandler > PageBordersHandlerPtr;
56 } }
58 #endif