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,
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 /*************************************************************************
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
69 LwpFribText( LwpPara
* pPara
, bool bNoUnicode
);
70 void Read(LwpObjectStream
* pObjStrm
, sal_uInt16 len
) override
;
71 void XFConvert(XFContentContainer
* pXFPara
,LwpStory
* pStory
);
76 const OUString
& GetText() const {return m_Content
;}
79 class LwpFribHardSpace
: public LwpFrib
82 explicit LwpFribHardSpace( LwpPara
* pPara
) : LwpFrib(pPara
){}
85 class LwpFribSoftHyphen
: public LwpFrib
88 explicit LwpFribSoftHyphen( LwpPara
* pPara
) : LwpFrib(pPara
){}
91 class LwpFribParaNumber
: public LwpFrib
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;
105 sal_uInt16 m_nStyleID
;
106 sal_uInt16 m_nNumberChar
;
110 inline sal_uInt16
LwpFribParaNumber::GetStyleID() const
114 inline sal_uInt16
LwpFribParaNumber::GetNumberChar() const
116 return m_nNumberChar
;
118 inline sal_uInt16
LwpFribParaNumber::GetStart() const
123 class LwpFribDocVar
: public LwpFrib
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
);
142 DATELASTREVISION
= 0x07,
143 TOTALEDITTIME
= 0x08,
150 VERSIONCREATEBY
= 0x0f,
151 VERSIONCREATEDATE
= 0x10,
152 VERSIONOTHEREDITORS
= 0x11,
154 VERSIONNUMBER
= 0x13,
155 ALLVERSIONNAME
= 0x14,
156 VERSIONREMARK
= 0x15,
157 DOCUMENTCATEGORY
= 0x16,
158 VERSIONLASTDATE
= 0x17,
159 VERSIONLASTEDITOR
= 0x18,
164 NUMOFREVISION
= 0x1d,
169 LwpAtomHolder m_aName
;
170 OUString m_TimeStyle
;
171 void RegisterDefaultTimeStyle();
172 void RegisterTotalTimeStyle();
175 class LwpFribTab
: public LwpFrib
178 explicit LwpFribTab( LwpPara
* pPara
) : LwpFrib(pPara
){}
181 class LwpFribUnicode
: public LwpFrib
184 explicit LwpFribUnicode( LwpPara
* pPara
) : LwpFrib(pPara
){}
185 void Read(LwpObjectStream
* pObjStrm
, sal_uInt16 len
) override
;
186 void XFConvert(XFContentContainer
* pXFPara
,LwpStory
* pStory
);
190 const OUString
& GetText() const {return m_Content
;}
193 class LwpFribPageNumber
: public LwpFrib
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
);
201 sal_uInt16 m_nNumStyle
;
202 LwpAtomHolder m_aBefText
;
203 LwpAtomHolder m_aAfterText
;
204 sal_uInt16 m_nStartNum
;
205 sal_uInt16 m_nStartOnPage
;
211 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */