LibreOffice Module sw (master)  1
WW8FFData.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_SW_SOURCE_FILTER_WW8_WW8FFDATA_HXX
21 #define INCLUDED_SW_SOURCE_FILTER_WW8_WW8FFDATA_HXX
22 
23 #include <vector>
24 #include <rtl/ustring.hxx>
25 
26 class SvStream;
27 
28 namespace sw
29 {
30 
31 class WW8FFData final
32 {
33 private:
34  // offset 0x4
35  sal_uInt8 mnType; // :2 0x3
36  sal_uInt8 mnResult; // :5 0x7c
37  bool mbOwnHelp; // :1 0x80
38 
39  // offset 5
40  bool mbOwnStat; // :1 0x01
41  bool mbProtected; // :1 0x02
42  bool mbSize; // :1 0x04
43  sal_uInt8 mnTextType; // :3 0x38
44  bool mbRecalc; // :1 0x4
45  bool mbListBox; // :1 0x80
46 
47  // offset 6
48  sal_uInt16 mnMaxLen; // :15 0x7fff maximum length of text field, 0 <=> no limit
49 
50  // offset 8
51  sal_uInt16 mnCheckboxHeight;
52 
53  // offset 10 and beyond
54  OUString msName;
55  OUString msDefault; // only for type == 0
56  sal_uInt16 mnDefault; // only for type != 0
57  OUString msFormat;
58  OUString msHelp;
59  OUString msStatus;
60  OUString msMacroEnter;
61  OUString msMacroExit;
62 
63  std::vector< OUString > msListEntries;
64 
65  static void WriteOUString(SvStream * pStream, const OUString & rStr, bool bAddZero);
66 
67 public:
68  WW8FFData();
69  ~WW8FFData();
70 
71  void setType(sal_uInt8 nType) { mnType = nType; }
72 
73  void setResult(sal_uInt8 nResult) { mnResult = nResult; }
74 
75  void setName(const OUString & rName) { msName = rName; }
76 
77  void setHelp(const OUString & rHelp);
78 
79  void setStatus(const OUString & rStatus);
80 
81  void addListboxEntry(const OUString & rEntry);
82 
83  void Write(SvStream * pDataStrm);
84 };
85 }
86 
87 #endif // INCLUDED_SW_SOURCE_FILTER_WW8_WW8FFDATA_HXX
88 
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString msName
Definition: WW8FFData.hxx:54
std::vector< OUString > msListEntries
Definition: WW8FFData.hxx:63
OUString msStatus
Definition: WW8FFData.hxx:59
void setResult(sal_uInt8 nResult)
Definition: WW8FFData.hxx:73
void addListboxEntry(const OUString &rEntry)
Definition: WW8FFData.cxx:64
Dialog to specify the properties of date form field.
bool mbProtected
Definition: WW8FFData.hxx:41
sal_uInt16 mnCheckboxHeight
Definition: WW8FFData.hxx:51
sal_uInt8 mnResult
Definition: WW8FFData.hxx:36
OUString msMacroEnter
Definition: WW8FFData.hxx:60
void setName(const OUString &rName)
Definition: WW8FFData.hxx:75
OUString msFormat
Definition: WW8FFData.hxx:57
static void WriteOUString(SvStream *pStream, const OUString &rStr, bool bAddZero)
Definition: WW8FFData.cxx:70
void setType(sal_uInt8 nType)
Definition: WW8FFData.hxx:71
void Write(SvStream *pDataStrm)
Definition: WW8FFData.cxx:78
sal_uInt8 mnTextType
Definition: WW8FFData.hxx:43
void setStatus(const OUString &rStatus)
Definition: WW8FFData.cxx:58
void setHelp(const OUString &rHelp)
Definition: WW8FFData.cxx:52
sal_uInt16 mnDefault
Definition: WW8FFData.hxx:56
unsigned char sal_uInt8
sal_uInt16 mnMaxLen
Definition: WW8FFData.hxx:48
sal_uInt8 mnType
Definition: WW8FFData.hxx:35
OUString msMacroExit
Definition: WW8FFData.hxx:61
OUString msDefault
Definition: WW8FFData.hxx:55
OUString msHelp
Definition: WW8FFData.hxx:58