Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / lotuswordpro / source / filter / lwpparaproperty.hxx
blob8bf7cd9d58638b1c4bac8f523280f6dda63d64b1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * The Contents of this file are made available subject to the terms of
5 * either of the following licenses
7 * - GNU Lesser General Public License Version 2.1
8 * - Sun Industry Standards Source License Version 1.1
10 * Sun Microsystems Inc., October, 2000
12 * GNU Lesser General Public License Version 2.1
13 * =============================================
14 * Copyright 2000 by Sun Microsystems, Inc.
15 * 901 San Antonio Road, Palo Alto, CA 94303, USA
17 * This library is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Lesser General Public
19 * License version 2.1, as published by the Free Software Foundation.
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
26 * You should have received a copy of the GNU Lesser General Public
27 * License along with this library; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29 * MA 02111-1307 USA
32 * Sun Industry Standards Source License Version 1.1
33 * =================================================
34 * The contents of this file are subject to the Sun Industry Standards
35 * Source License Version 1.1 (the "License"); You may not use this file
36 * except in compliance with the License. You may obtain a copy of the
37 * License at http://www.openoffice.org/license.html.
39 * Software provided under this License is provided on an "AS IS" basis,
40 * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
41 * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
42 * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
43 * See the License for the specific provisions governing your rights and
44 * obligations concerning the Software.
46 * The Initial Developer of the Original Code is: IBM Corporation
48 * Copyright: 2008 by IBM Corporation
50 * All Rights Reserved.
52 * Contributor(s): _______________________________________
55 ************************************************************************/
56 /*************************************************************************
57 * @file
58 * For LWP filter architecture prototype
59 ************************************************************************/
61 #ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPPARAPROPERTY_HXX
62 #define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPPARAPROPERTY_HXX
64 #include "lwpobj.hxx"
65 #include "lwpobjstrm.hxx"
66 #include "lwpdllist.hxx"
68 #include "lwpoverride.hxx"
69 #include "lwppiece.hxx"
71 /* paragraph property ID's */
72 #define PP_OUTLINE_SHOW 0x53484f4cUL /* "SHOW" */
73 #define PP_OUTLINE_HIDE 0x48494445UL /* "HIDE" */
74 #define PP_LOCAL_ALIGN 0x414c494eUL /* "ALIN" */
75 #define PP_LOCAL_INDENT 0x494e444eUL /* "INDN" */
76 #define PP_LOCAL_SPACING 0x5350434eUL /* "SPCN" */
77 #define PP_LOCAL_TABRACK 0x54414253UL /* "TABS" */
78 #define PP_LOCAL_BREAKS 0x42524b53UL /* "BRKS" */
79 #define PP_LOCAL_BULLET 0x42554c4cUL /* "BULL" */
80 #define PP_LOCAL_BORDER 0x424f5244UL /* "BORD" */
81 #define PP_LOCAL_BACKGROUND 0x4241434bUL /* "BACK" */
82 #define PP_LOCAL_NUMBERING 0x4e4d4252UL /* "NMBR" */
83 #define PP_LOCAL_KINSOKU 0x4b494e53UL /* "KINS" */
84 #define PP_PROPLIST 0x50524f50UL /* "PROP" */
86 class LwpParaProperty : public LwpDLList
88 public:
89 LwpParaProperty(){}
90 virtual ~LwpParaProperty(){}
91 virtual sal_uInt32 GetType() = 0;
92 inline LwpParaProperty* GetNext();
94 static LwpParaProperty* ReadPropertyList(LwpObjectStream* pFile,rtl::Reference<LwpObject> const & Whole);
98 inline LwpParaProperty* LwpParaProperty::GetNext()
100 return static_cast<LwpParaProperty*>(LwpDLList::GetNext());
103 //align/indent/spacing
104 //TO DO:border/background etc
106 class LwpParaAlignProperty : public LwpParaProperty
108 public:
109 explicit LwpParaAlignProperty(LwpObjectStream* pFile);
110 virtual ~LwpParaAlignProperty();
111 LwpAlignmentOverride* GetAlignment();
112 sal_uInt32 GetType() override;
114 private:
115 LwpAlignmentOverride* m_pAlignment;
118 inline LwpAlignmentOverride* LwpParaAlignProperty::GetAlignment()
120 return m_pAlignment;
123 class LwpParaIndentProperty : public LwpParaProperty
125 public:
126 explicit LwpParaIndentProperty(LwpObjectStream* pFile);
127 virtual ~LwpParaIndentProperty();
128 LwpIndentOverride* GetIndent();
129 sal_uInt32 GetType() override;
130 inline const LwpObjectID& GetIndentID();
132 private:
133 LwpObjectID m_aIndentID;
134 LwpIndentOverride* m_pIndent;
136 inline const LwpObjectID& LwpParaIndentProperty::GetIndentID()
138 return m_aIndentID;
140 inline LwpIndentOverride* LwpParaIndentProperty::GetIndent()
142 return m_pIndent;
145 class LwpParaSpacingProperty : public LwpParaProperty
147 public:
148 explicit LwpParaSpacingProperty(LwpObjectStream* pFile);
149 virtual ~LwpParaSpacingProperty();
150 LwpSpacingOverride* GetSpacing();
151 sal_uInt32 GetType() override;
152 private:
153 LwpSpacingOverride* m_pSpacing;
157 inline LwpSpacingOverride* LwpParaSpacingProperty::GetSpacing()
159 return m_pSpacing;
162 class LwpParaBorderOverride;
163 class LwpParaBorderProperty : public LwpParaProperty
165 public:
166 explicit LwpParaBorderProperty(LwpObjectStream* pStrm);
168 sal_uInt32 GetType() override { return PP_LOCAL_BORDER; }
170 inline LwpParaBorderOverride* GetLocalParaBorder();
172 private:
173 LwpParaBorderOverride* m_pParaBorderOverride;
176 inline LwpParaBorderOverride* LwpParaBorderProperty::GetLocalParaBorder()
178 return m_pParaBorderOverride;
181 class LwpParaBreaksProperty : public LwpParaProperty
183 public:
184 explicit LwpParaBreaksProperty(LwpObjectStream* pStrm);
186 sal_uInt32 GetType() override { return PP_LOCAL_BREAKS; }
188 inline LwpBreaksOverride* GetLocalParaBreaks();
190 private:
191 LwpBreaksOverride* m_pBreaks;
195 inline LwpBreaksOverride* LwpParaBreaksProperty::GetLocalParaBreaks()
197 return m_pBreaks;
200 class LwpParaBulletProperty : public LwpParaProperty
202 public:
203 explicit LwpParaBulletProperty(LwpObjectStream* pStrm);
205 virtual ~LwpParaBulletProperty();
207 sal_uInt32 GetType() override { return PP_LOCAL_BULLET; }
209 inline LwpBulletOverride* GetLocalParaBullet();
211 private:
212 LwpBulletOverride* m_pBullet;
215 inline LwpBulletOverride* LwpParaBulletProperty::GetLocalParaBullet()
217 return m_pBullet;
220 class LwpParaNumberingProperty : public LwpParaProperty
222 public:
223 explicit LwpParaNumberingProperty(LwpObjectStream* pStrm);
225 sal_uInt32 GetType() override { return PP_LOCAL_NUMBERING; }
227 inline LwpNumberingOverride* GetLocalNumbering() const;
228 private:
229 LwpNumberingOverride* m_pNumberingOverride;
232 inline LwpNumberingOverride* LwpParaNumberingProperty::GetLocalNumbering() const
234 return m_pNumberingOverride;
237 class LwpParaTabRackProperty : public LwpParaProperty
239 public:
240 explicit LwpParaTabRackProperty(LwpObjectStream* pStrm);
241 virtual ~LwpParaTabRackProperty();
242 sal_uInt32 GetType() override { return PP_LOCAL_TABRACK; }
244 inline LwpTabOverride* GetTab();
246 private:
247 LwpTabOverride* m_pTabOverride;
250 inline LwpTabOverride* LwpParaTabRackProperty::GetTab()
252 return m_pTabOverride;
255 class LwpParaBackGroundProperty : public LwpParaProperty
257 public:
258 explicit LwpParaBackGroundProperty(LwpObjectStream* pFile);
259 virtual ~LwpParaBackGroundProperty();
260 LwpBackgroundOverride* GetBackground();
261 sal_uInt32 GetType() override;
262 private:
263 LwpBackgroundOverride* m_pBackground;
266 inline LwpBackgroundOverride* LwpParaBackGroundProperty::GetBackground()
268 return m_pBackground;
271 inline sal_uInt32 LwpParaBackGroundProperty::GetType()
273 return PP_LOCAL_BACKGROUND;
276 #endif
278 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */