LibreOffice Module lotuswordpro (master) 1
lwpdocdata.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*************************************************************************
3 *
4 * The Contents of this file are made available subject to the terms of
5 * either of the following licenses
6 *
7 * - GNU Lesser General Public License Version 2.1
8 * - Sun Industry Standards Source License Version 1.1
9 *
10 * Sun Microsystems Inc., October, 2000
11 *
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
16 *
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.
20 *
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.
25 *
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
30 *
31 *
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.
38 *
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.
45 *
46 * The Initial Developer of the Original Code is: IBM Corporation
47 *
48 * Copyright: 2008 by IBM Corporation
49 *
50 * All Rights Reserved.
51 *
52 * Contributor(s): _______________________________________
53 *
54 *
55 ************************************************************************/
56#ifndef INCLUDED_LOTUSWORDPRO_INC_LWPDOCDATA_HXX
57#define INCLUDED_LOTUSWORDPRO_INC_LWPDOCDATA_HXX
58#include <config_lgpl.h>
59#include "lwpobj.hxx"
60#include "lwpatomholder.hxx"
61#include "localtime.hxx"
62#include "lwpcolor.hxx"
63
65{
66 sal_uInt16 nOptionFlag;
71 sal_uInt16 nMarginMarks;
73 sal_uInt16 nMarginMarksChar;
74};
76{
80 sal_Int32 nCreationTime;
82 sal_Int32 nTotalEditTime;
84 sal_uInt16 nNumEditedBy;
85 //skip editor list
86};
88{
90 sal_uInt16 nFlags;
92 sal_uInt16 nLen1;
93 //skip doc control password string
94 sal_uInt16 nFileProtection;
95 sal_uInt16 nLen2;
96 //skip file password string
97 sal_uInt16 nAutoVersioning;
100};
102{
105 sal_Int32 cPointSize;
107 sal_uInt16 cTightness;
108 //lcolor cColor;
109 //lcolor cBackgroundColor;
112};
114{
115 sal_uInt16 cAttrBits;
117 sal_uInt16 cAttrApplyBits;
122};
124{
129};
131{
132 sal_uInt16 cValues;
133 sal_uInt16 cOverride;
134 sal_uInt16 cApply;
135};
137{
139 sal_uInt16 cHideLevels;
141};
143{
147 sal_uInt16 nID;
150 sal_uInt16 nAbilities;
151 sal_uInt16 nLocks;
152 sal_uInt16 nSuggestions;
154};
155class LwpDocData : public LwpObject
156{
157public:
158 LwpDocData(LwpObjectHeader const& objHdr, LwpSvStream* pStrm);
159
160private:
161 virtual ~LwpDocData() override;
162
166
167private:
171
172private:
173 static OUString DateTimeToOUString(LtTm const& dt);
174 static OUString TimeToOUString(LtTm const& dt);
175
176public:
177 void Read() override;
178 void Parse(IXFStream* pOutputStream) override;
179};
180#endif
181
182/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Stream wrapper for sax writer.
Definition: ixfstream.hxx:72
AtomHolder class of Word Pro to hold a string.
lwpcolor class (red, green, blue, extra)
Definition: lwpcolor.hxx:71
LtTm m_nCreationTime
Definition: lwpdocdata.hxx:168
LwpDocControl m_DocControl
Definition: lwpdocdata.hxx:165
LwpDocData(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
Definition: lwpdocdata.cxx:63
void Read() override
@descr default read function
Definition: lwpdocdata.cxx:71
static OUString TimeToOUString(LtTm const &dt)
Definition: lwpdocdata.cxx:302
void Parse(IXFStream *pOutputStream) override
@descr default parse function
Definition: lwpdocdata.cxx:309
LwpDocInfo m_DocInfo
Definition: lwpdocdata.hxx:164
virtual ~LwpDocData() override
Definition: lwpdocdata.cxx:67
LtTm m_nLastRevisionTime
Definition: lwpdocdata.hxx:169
LtTm m_nTotalEditTime
Definition: lwpdocdata.hxx:170
LwpDocOptions m_DocOptions
Definition: lwpdocdata.hxx:163
static OUString DateTimeToOUString(LtTm const &dt)
Definition: lwpdocdata.cxx:295
Base class of all Lwp VO objects.
Definition: lwpobjhdr.hxx:71
object id class
Definition: lwpobjid.hxx:79
Base class of all Lwp VO objects.
Definition: lwpobj.hxx:83
encapsulate XInputStream to provide SvStream like interfaces
Definition: lwpsvstream.hxx:69
Base class of all Lwp VO objects.
sal_uInt16 nDocControlProtection
Definition: lwpdocdata.hxx:91
sal_uInt16 nAutoVersioning
Definition: lwpdocdata.hxx:97
sal_uInt16 nLen1
Definition: lwpdocdata.hxx:92
sal_uInt16 nFlags
Definition: lwpdocdata.hxx:90
sal_uInt16 nLen2
Definition: lwpdocdata.hxx:95
LwpAtomHolder cGreeting
Definition: lwpdocdata.hxx:89
LwpAtomHolder cDocControlOnlyEditor
Definition: lwpdocdata.hxx:98
sal_uInt16 nFileProtection
Definition: lwpdocdata.hxx:94
sal_uInt16 nEditorVerification
Definition: lwpdocdata.hxx:99
sal_Int32 nTotalEditTime
Definition: lwpdocdata.hxx:82
sal_Int32 nLastRevisionTime
Definition: lwpdocdata.hxx:81
sal_Int32 nCreationTime
Definition: lwpdocdata.hxx:80
sal_uInt16 nNumEditedBy
Definition: lwpdocdata.hxx:84
LwpAtomHolder keywords
Definition: lwpdocdata.hxx:78
LwpAtomHolder createdBy
Definition: lwpdocdata.hxx:79
LwpObjectID cpVerDocInfo
Definition: lwpdocdata.hxx:83
LwpAtomHolder description
Definition: lwpdocdata.hxx:77
sal_uInt16 nMarginMarks
Definition: lwpdocdata.hxx:71
sal_uInt16 nOptionFlag
Definition: lwpdocdata.hxx:66
LwpAtomHolder encrypt1password
Definition: lwpdocdata.hxx:67
LwpAtomHolder grammerSet
Definition: lwpdocdata.hxx:70
LwpAtomHolder encrypt2password
Definition: lwpdocdata.hxx:68
sal_uInt16 nMarginMarksChar
Definition: lwpdocdata.hxx:73
sal_uInt16 nMarginMarksLocation
Definition: lwpdocdata.hxx:72
LwpAtomHolder characterSet
Definition: lwpdocdata.hxx:69
sal_uInt16 nID
Definition: lwpdocdata.hxx:147
LwpFontDescriptionOverride cDelFontOver
Definition: lwpdocdata.hxx:149
sal_uInt16 nAbilities
Definition: lwpdocdata.hxx:150
LwpFontDescriptionOverride cInsFontOver
Definition: lwpdocdata.hxx:148
sal_uInt16 nLocks
Definition: lwpdocdata.hxx:151
LwpTextAttributeOverrideOg cDelTextAttr
Definition: lwpdocdata.hxx:153
sal_uInt16 nSuggestions
Definition: lwpdocdata.hxx:152
LwpColor cHiLiteColor
Definition: lwpdocdata.hxx:146
LwpAtomHolder cName
Definition: lwpdocdata.hxx:144
LwpAtomHolder cInitials
Definition: lwpdocdata.hxx:145
LwpFontDescriptionOverrideBase cFontDescriptionOverrideBase
Definition: lwpdocdata.hxx:126
LwpFontAttributeOverride cFontAttributeOverride
Definition: lwpdocdata.hxx:125
sal_uInt16 cValues
Definition: lwpdocdata.hxx:132
sal_uInt16 cApply
Definition: lwpdocdata.hxx:134
sal_uInt16 cOverride
Definition: lwpdocdata.hxx:133
unsigned char sal_uInt8