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 ************************************************************************/
60 /*************************************************************************
63 ************************************************************************/
64 #ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPFRIBTEXT_HXX
65 #define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPFRIBTEXT_HXX
67 #include "lwpfrib.hxx"
68 #include "lwpstory.hxx"
69 class LwpFribText
: public LwpFrib
72 LwpFribText( LwpPara
* pPara
, bool bNoUnicode
=false);
73 virtual ~LwpFribText(){}
74 void Read(LwpObjectStream
* pObjStrm
, sal_uInt16 len
) SAL_OVERRIDE
;
75 void XFConvert(XFContentContainer
* pXFPara
,LwpStory
* pStory
);
80 OUString
GetText(){return m_Content
;}
83 class LwpFribHardSpace
: public LwpFrib
86 LwpFribHardSpace( LwpPara
* pPara
) : LwpFrib(pPara
){}
87 virtual ~LwpFribHardSpace(){}
90 class LwpFribSoftHyphen
: public LwpFrib
93 LwpFribSoftHyphen( LwpPara
* pPara
) : LwpFrib(pPara
){}
94 virtual ~LwpFribSoftHyphen(){}
98 class LwpFribParaNumber
: public LwpFrib
101 LwpFribParaNumber( LwpPara
* pPara
) : LwpFrib(pPara
),
102 m_nStyleID(0), m_nNumberChar(0), m_nLevel(1), m_nStart(0){}
103 void Read(LwpObjectStream
* pObjStrm
, sal_uInt16 len
) SAL_OVERRIDE
;
105 inline sal_uInt16
GetStyleID() const;
107 inline sal_uInt16
GetNumberChar() const;
109 inline sal_uInt16
GetLevel() const;
111 inline sal_uInt16
GetStart() const;
114 sal_uInt16 m_nStyleID
;
115 sal_uInt16 m_nNumberChar
;
119 inline sal_uInt16
LwpFribParaNumber::GetStyleID() const
123 inline sal_uInt16
LwpFribParaNumber::GetNumberChar() const
125 return m_nNumberChar
;
127 inline sal_uInt16
LwpFribParaNumber::GetLevel() const
131 inline sal_uInt16
LwpFribParaNumber::GetStart() const
136 class LwpFribDocVar
: public LwpFrib
139 LwpFribDocVar( LwpPara
* pPara
);
141 virtual ~LwpFribDocVar();
143 void Read(LwpObjectStream
* pObjStrm
, sal_uInt16 len
) SAL_OVERRIDE
;
145 void RegisterStyle(LwpFoundry
* pFoundry
) SAL_OVERRIDE
;//add by ,05/5/27
147 void XFConvert(XFContentContainer
* pXFPara
);//add by ,05/5/27
149 // inline sal_uInt16 GetType() const;
157 DATELASTREVISION
= 0x07,
158 TOTALEDITTIME
= 0x08,
165 VERSIONCREATEBY
= 0x0f,
166 VERSIONCREATEDATE
= 0x10,
167 VERSIONOTHEREDITORS
= 0x11,
169 VERSIONNUMBER
= 0x13,
170 ALLVERSIONNAME
= 0x14,
171 VERSIONREMARK
= 0x15,
172 DOCUMENTCATEGORY
= 0x16,
173 VERSIONLASTDATE
= 0x17,
174 VERSIONLASTEDITOR
= 0x18,
179 NUMOFREVISION
= 0x1d,
184 LwpAtomHolder
* m_pName
;
185 OUString m_TimeStyle
;
186 void RegisterDefaultTimeStyle();
187 void RegisterTotalTimeStyle();
189 //inline sal_uInt16 LwpFribDocVar::GetType() const
194 class LwpFribTab
: public LwpFrib
197 LwpFribTab( LwpPara
* pPara
) : LwpFrib(pPara
){}
198 virtual ~LwpFribTab(){}
201 class LwpFribUnicode
: public LwpFrib
204 LwpFribUnicode( LwpPara
* pPara
) : LwpFrib(pPara
){}
205 virtual ~LwpFribUnicode(){}
206 void Read(LwpObjectStream
* pObjStrm
, sal_uInt16 len
) SAL_OVERRIDE
;
207 void XFConvert(XFContentContainer
* pXFPara
,LwpStory
* pStory
);
211 OUString
GetText(){return m_Content
;}
214 class LwpFribPageNumber
: public LwpFrib
217 LwpFribPageNumber(LwpPara
* pPara
) : LwpFrib(pPara
),
218 m_nNumStyle(0), m_nStartNum(1), m_nStartOnPage(1), m_nFlag(0){}
219 virtual ~LwpFribPageNumber(){}
220 void Read(LwpObjectStream
* pObjStrm
, sal_uInt16 len
) SAL_OVERRIDE
;
221 void XFConvert(XFContentContainer
* pXFPara
);
223 sal_uInt16 m_nNumStyle
;
224 LwpAtomHolder m_aBefText
;
225 LwpAtomHolder m_aAfterText
;
226 sal_uInt16 m_nStartNum
;
227 sal_uInt16 m_nStartOnPage
;
233 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */