1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SW_SOURCE_FILTER_WW8_WW8FFDATA_HXX
21 #define INCLUDED_SW_SOURCE_FILTER_WW8_WW8FFDATA_HXX
24 #include <rtl/ustring.hxx>
35 sal_uInt8 mnType
; // :2 0x3
36 sal_uInt8 mnResult
; // :5 0x7c
37 bool mbOwnHelp
; // :1 0x80
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
48 sal_uInt16 mnMaxLen
; // :15 0x7fff maximum length of text field, 0 <=> no limit
51 sal_uInt16 mnCheckboxHeight
;
53 // offset 10 and beyond
55 OUString msDefault
; // only for type == 0
56 sal_uInt16 mnDefault
; // only for type != 0
60 OUString msMacroEnter
;
63 std::vector
< OUString
> msListEntries
;
66 static void WriteOUString(SvStream
* pStream
, const OUString
& rStr
, bool bAddZero
);
72 void setType(sal_uInt8 nType
) { mnType
= nType
; }
74 void setResult(sal_uInt8 nResult
) { mnResult
= nResult
; }
76 void setCheckboxHeight(sal_uInt16 nCheckboxHeight
) { mnCheckboxHeight
= nCheckboxHeight
; }
78 void setName(const OUString
& rName
) { msName
= rName
; }
80 void setDefaultResult(sal_uInt16 nDefault
) { mnDefault
= nDefault
; }
82 void setHelp(const OUString
& rHelp
);
84 void setStatus(const OUString
& rStatus
);
86 void addListboxEntry(const OUString
& rEntry
);
88 void Write(SvStream
* pDataStrm
);
92 #endif // INCLUDED_SW_SOURCE_FILTER_WW8_WW8FFDATA_HXX
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */