blob: d238a71981d706e73ac2217f9415a5ccb467f45d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/* -*- 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 <WriterFilterDllApi.hxx>
#include <resourcemodel/LoggedResources.hxx>
#include <boost/shared_ptr.hpp>
#include <com/sun/star/table/BorderLine2.hpp>
#include <vector>
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: */
|