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
26class SvStream;
27
28namespace sw
29{
30class WW8FFData final
31{
32private:
33 // offset 0x4
34 sal_uInt8 mnType; // :2 0x3
35 sal_uInt8 mnResult; // :5 0x7c
36 bool mbOwnHelp; // :1 0x80
37
38 // offset 5
39 bool mbOwnStat; // :1 0x01
40 bool mbProtected; // :1 0x02
41 bool mbSize; // :1 0x04
43 bool mbRecalc; // :1 0x4
44 bool mbListBox; // :1 0x80
45
46 // offset 6
47 sal_uInt16 mnMaxLen; // :15 0x7fff maximum length of text field, 0 <=> no limit
48
49 // offset 8
50 sal_uInt16 mnCheckboxHeight;
51
52 // offset 10 and beyond
53 OUString msName;
54 OUString msDefault; // only for type == 0
55 sal_uInt16 mnDefault; // only for type != 0
56 OUString msFormat;
57 OUString msHelp;
58 OUString msStatus;
59 OUString msMacroEnter;
60 OUString msMacroExit;
61
62 std::vector<OUString> msListEntries;
63
64 static void WriteOUString(SvStream* pStream, const OUString& rStr, bool bAddZero);
65
66public:
67 WW8FFData();
68 ~WW8FFData();
69
70 void setType(sal_uInt8 nType) { mnType = nType; }
71
72 void setResult(sal_uInt8 nResult) { mnResult = nResult; }
73
74 void setName(const OUString& rName) { msName = rName; }
75
76 void setHelp(const OUString& rHelp);
77
78 void setStatus(const OUString& rStatus);
79
80 void addListboxEntry(const OUString& rEntry);
81
82 void Write(SvStream* pDataStrm);
83};
84}
85
86#endif // INCLUDED_SW_SOURCE_FILTER_WW8_WW8FFDATA_HXX
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< OUString > msListEntries
Definition: WW8FFData.hxx:62
sal_uInt8 mnType
Definition: WW8FFData.hxx:34
void addListboxEntry(const OUString &rEntry)
Definition: WW8FFData.cxx:63
void setStatus(const OUString &rStatus)
Definition: WW8FFData.cxx:57
static void WriteOUString(SvStream *pStream, const OUString &rStr, bool bAddZero)
Definition: WW8FFData.cxx:69
OUString msStatus
Definition: WW8FFData.hxx:58
sal_uInt8 mnTextType
Definition: WW8FFData.hxx:42
OUString msName
Definition: WW8FFData.hxx:53
void setName(const OUString &rName)
Definition: WW8FFData.hxx:74
OUString msHelp
Definition: WW8FFData.hxx:57
OUString msFormat
Definition: WW8FFData.hxx:56
bool mbProtected
Definition: WW8FFData.hxx:40
sal_uInt16 mnDefault
Definition: WW8FFData.hxx:55
OUString msMacroEnter
Definition: WW8FFData.hxx:59
sal_uInt16 mnCheckboxHeight
Definition: WW8FFData.hxx:50
OUString msMacroExit
Definition: WW8FFData.hxx:60
sal_uInt16 mnMaxLen
Definition: WW8FFData.hxx:47
sal_uInt8 mnResult
Definition: WW8FFData.hxx:35
void setType(sal_uInt8 nType)
Definition: WW8FFData.hxx:70
void setResult(sal_uInt8 nResult)
Definition: WW8FFData.hxx:72
void setHelp(const OUString &rHelp)
Definition: WW8FFData.cxx:51
void Write(SvStream *pDataStrm)
Definition: WW8FFData.cxx:77
OUString msDefault
Definition: WW8FFData.hxx:54
Dialog to specify the properties of date form field.
QPRO_FUNC_TYPE nType
unsigned char sal_uInt8