/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ #ifndef INCLUDED_PAGEBORDERSHANDLER_HXX #define INCLUDED_PAGEBORDERSHANDLER_HXX #include "BorderHandler.hxx" #include "PropertyMap.hxx" #include #include #include #include #include namespace writerfilter { namespace dmapper { class _PgBorder { public: com::sun::star::table::BorderLine2 m_rLine; sal_Int32 m_nDistance; BorderPosition m_ePos; _PgBorder( ); ~_PgBorder( ); }; class WRITERFILTER_DLLPRIVATE PageBordersHandler : public LoggedProperties { private: // See implementation of SectionPropertyMap::ApplyBorderToPageStyles sal_Int32 m_nDisplay; sal_Int32 m_nOffset; vector<_PgBorder> m_aBorders; // Properties virtual void lcl_attribute( Id eName, Value& rVal ); virtual void lcl_sprm( Sprm& rSprm ); public: PageBordersHandler( ); ~PageBordersHandler( ); inline sal_Int32 GetDisplayOffset( ) { return ( m_nOffset << 5 ) + m_nDisplay; }; void SetBorders( SectionPropertyMap* pSectContext ); }; typedef boost::shared_ptr< PageBordersHandler > PageBordersHandlerPtr; } } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */