Bump version to 4.3-4
[LibreOffice.git] / lotuswordpro / source / filter / lwpfribmark.hxx
blob93b8ca1ab61b22b05c98c17a1ac37a922c70c121
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 ************************************************************************/
60 /*************************************************************************
61 * Change History
62 May 2005 Created
63 ************************************************************************/
65 #ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPFRIBMARK_HXX
66 #define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPFRIBMARK_HXX
68 #include "lwpfrib.hxx"
69 #include "lwpstory.hxx"
70 #include "lwpmarker.hxx"
71 #include "xfilter/xftextspan.hxx"
72 #include "xfilter/xfbookmark.hxx"
74 class LwpFribCHBlock : public LwpFrib
76 public:
77 LwpFribCHBlock( LwpPara* pPara )
78 : LwpFrib(pPara)
79 , m_nType(0)
81 virtual ~LwpFribCHBlock(){}
82 void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
83 LwpCHBlkMarker* GetMarker();
84 sal_uInt8 GetType(){return m_nType;}
85 enum{MARKER_START=1,MARKER_END,MARKER_NONE};
86 void XFConvert(XFContentContainer* pXFPara,LwpStory* pStory);
87 private:
88 sal_uInt8 m_nType;
89 LwpObjectID m_objMarker;
92 class LwpFribBookMark : public LwpFrib
94 public:
95 LwpFribBookMark( LwpPara* pPara );
96 virtual ~LwpFribBookMark(){}
97 void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
98 LwpObjectID GetMarkerID(){return m_objMarker;}
99 sal_uInt8 GetType(){return m_nType;}
100 enum{MARKER_START=1,MARKER_END,MARKER_NONE};
101 void XFConvert(XFContentContainer* pXFPara);
102 void RegisterStyle(LwpFoundry* pFoundry) SAL_OVERRIDE;
103 private:
104 sal_uInt8 m_nType;
105 LwpObjectID m_objMarker;
106 XFBookmarkStart* m_pStart;
107 XFBookmarkEnd* m_pEnd;
110 class LwpFribField : public LwpFrib
112 public:
113 LwpFribField( LwpPara* pPara );
114 virtual ~LwpFribField(){}
115 void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
116 LwpFieldMark* GetMarker();
117 sal_uInt8 GetType(){return m_nType;}
118 enum{MARKER_START=1,MARKER_END,MARKER_NONE};
119 void XFConvert(XFContentContainer* pXFPara);
120 void RegisterStyle(LwpFoundry* pFoundry) SAL_OVERRIDE;
121 enum{
122 SUBFIELD_INVALID = 0,
123 SUBFIELD_DATETIME = 1,
124 SUBFIELD_CROSSREF = 2,
125 SUBFIELD_DOCPOWER = 3,
127 private:
128 sal_uInt8 m_nType;
129 LwpObjectID m_objMarker;
130 OUString m_TimeStyle;
132 sal_uInt8 m_nSubType;//datetime/crossref/other
133 OUString m_sFormula;
135 sal_uInt8 m_nCrossRefType;
136 sal_uInt8 m_nDateTimeType;
137 sal_uInt8 m_nDocPowerType;
139 void RegisterTimeField(LwpFieldMark* pFieldMark);
140 void RegisterDateTimeStyle(const OUString& sFormula);
141 void RegisterTotalTimeStyle();
142 void CheckFieldType(LwpFieldMark* pFieldMark);
143 void ConvertDocFieldStart(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
144 void ConvertDocFieldEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
145 void ConvertDateTimeStart(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
146 void ConvertDateTimeEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
147 void ConvertCrossRefEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
148 void ConvertCrossRefStart(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
151 class LwpFribRubyMarker : public LwpFrib
153 public:
154 LwpFribRubyMarker( LwpPara* pPara );
155 virtual ~LwpFribRubyMarker(){}
156 void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
157 LwpRubyMarker* GetMarker();
158 sal_uInt8 GetType(){return m_nType;}
159 enum{MARKER_START=1,MARKER_END,MARKER_NONE};
160 void XFConvert(XFContentContainer* pXFPara);
161 void RegisterStyle(LwpFoundry* pFoundry) SAL_OVERRIDE;
162 private:
163 sal_uInt8 m_nType;
164 LwpObjectID m_objMarker;
167 #endif
169 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */