tdf#131098 docx export: write fill property of graphic
[LibreOffice.git] / lotuswordpro / source / filter / lwpfribtext.hxx
blobcc1c5b83c545fc20d91be0abcd3aa98c766d2c19
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_LWPFRIBTEXT_HXX
62 #define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPFRIBTEXT_HXX
64 #include <lwpfrib.hxx>
65 #include "lwpstory.hxx"
66 class LwpFribText : public LwpFrib
68 public:
69 LwpFribText( LwpPara* pPara, bool bNoUnicode);
70 void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) override;
71 void XFConvert(XFContentContainer* pXFPara,LwpStory* pStory);
72 private:
73 OUString m_Content;
74 bool m_bNoUnicode;
75 public:
76 const OUString& GetText() const {return m_Content;}
79 class LwpFribHardSpace : public LwpFrib
81 public:
82 explicit LwpFribHardSpace( LwpPara* pPara ) : LwpFrib(pPara){}
85 class LwpFribSoftHyphen : public LwpFrib
87 public:
88 explicit LwpFribSoftHyphen( LwpPara* pPara ) : LwpFrib(pPara){}
91 class LwpFribParaNumber : public LwpFrib
93 public:
94 explicit LwpFribParaNumber( LwpPara* pPara ) : LwpFrib(pPara),
95 m_nStyleID(0), m_nNumberChar(0), m_nLevel(1), m_nStart(0){}
96 void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) override;
98 inline sal_uInt16 GetStyleID() const;
100 inline sal_uInt16 GetNumberChar() const;
102 inline sal_uInt16 GetStart() const;
104 private:
105 sal_uInt16 m_nStyleID;
106 sal_uInt16 m_nNumberChar;
107 sal_uInt16 m_nLevel;
108 sal_uInt16 m_nStart;
110 inline sal_uInt16 LwpFribParaNumber::GetStyleID() const
112 return m_nStyleID;
114 inline sal_uInt16 LwpFribParaNumber::GetNumberChar() const
116 return m_nNumberChar;
118 inline sal_uInt16 LwpFribParaNumber::GetStart() const
120 return m_nStart;
123 class LwpFribDocVar : public LwpFrib
125 public:
126 explicit LwpFribDocVar( LwpPara* pPara );
128 virtual ~LwpFribDocVar() override;
130 void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) override;
132 void RegisterStyle(LwpFoundry* pFoundry) override;
134 void XFConvert(XFContentContainer* pXFPara);
136 enum {
137 FILENAME = 0x02,
138 PATH = 0x03,
139 SMARTMASTER = 0x04,
140 DESCRIPTION = 0x05,
141 DATECREATED = 0x06,
142 DATELASTREVISION = 0x07,
143 TOTALEDITTIME = 0x08,
144 NUMPAGES= 0x09,
145 NUMWORDS= 0x0a,
146 NUMCHARS = 0x0b,
147 DOCSIZE = 0x0c,
148 DIVISIONNAME = 0x0d,
149 SECTIONNAME = 0x0e,
150 VERSIONCREATEBY = 0x0f,
151 VERSIONCREATEDATE = 0x10,
152 VERSIONOTHEREDITORS = 0x11,
153 VERSIONNAME = 0x12,
154 VERSIONNUMBER = 0x13,
155 ALLVERSIONNAME = 0x14,
156 VERSIONREMARK = 0x15,
157 DOCUMENTCATEGORY = 0x16,
158 VERSIONLASTDATE = 0x17,
159 VERSIONLASTEDITOR = 0x18,
160 KEYWORDS = 0x19,
161 CREATEDBY = 0x1a,
162 LASTEDIT = 0x1b,
163 OTHEREDITORS = 0x1c,
164 NUMOFREVISION = 0x1d,
167 private:
168 sal_uInt16 m_nType;
169 LwpAtomHolder m_aName;
170 OUString m_TimeStyle;
171 void RegisterDefaultTimeStyle();
172 void RegisterTotalTimeStyle();
175 class LwpFribTab : public LwpFrib
177 public:
178 explicit LwpFribTab( LwpPara* pPara ) : LwpFrib(pPara){}
181 class LwpFribUnicode: public LwpFrib
183 public:
184 explicit LwpFribUnicode( LwpPara* pPara ) : LwpFrib(pPara){}
185 void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) override;
186 void XFConvert(XFContentContainer* pXFPara,LwpStory* pStory);
187 private:
188 OUString m_Content;
189 public:
190 const OUString& GetText() const {return m_Content;}
193 class LwpFribPageNumber : public LwpFrib
195 public:
196 explicit LwpFribPageNumber(LwpPara* pPara) : LwpFrib(pPara),
197 m_nNumStyle(0), m_nStartNum(1), m_nStartOnPage(1), m_nFlag(0){}
198 void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) override;
199 void XFConvert(XFContentContainer* pXFPara);
200 private:
201 sal_uInt16 m_nNumStyle;
202 LwpAtomHolder m_aBefText;
203 LwpAtomHolder m_aAfterText;
204 sal_uInt16 m_nStartNum;
205 sal_uInt16 m_nStartOnPage;
206 sal_uInt16 m_nFlag;
209 #endif
211 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */