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>
17 namespace writerfilter
{
23 com::sun::star::table::BorderLine m_rLine
;
24 sal_Int32 m_nDistance
;
25 BorderPosition m_ePos
;
31 class WRITERFILTER_DLLPRIVATE PageBordersHandler
: public Properties
35 // See implementation of SectionPropertyMap::ApplyBorderToPageStyles
38 vector
<_PgBorder
> m_aBorders
;
41 PageBordersHandler( );
42 ~PageBordersHandler( );
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
;