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 #include "LoggedResources.hxx"
21 #include <rtl/ustring.hxx>
23 namespace writerfilter::dmapper
25 class FFDataHandler
: public LoggedProperties
29 typedef ::tools::SvRef
<FFDataHandler
> Pointer_t
;
30 typedef ::std::vector
<OUString
> DropDownEntries_t
;
35 virtual ~FFDataHandler() override
;
38 const OUString
& getName() const { return m_sName
; }
41 const OUString
& getHelpText() const { return m_sHelpText
; }
44 const OUString
& getStatusText() const { return m_sStatusText
; }
46 const OUString
& getEntryMacro() const { return m_sEntryMacro
; }
47 const OUString
& getExitMacro() const { return m_sExitMacro
; }
49 // member: checkboxHeight
50 sal_uInt32
getCheckboxHeight() const { return m_nCheckboxHeight
; }
52 // member: checkboxAutoHeight
53 bool getCheckboxAutoHeight() const { return m_bCheckboxAutoHeight
; }
55 // member: checkboxChecked or checkboxDefault (if the previous is not set)
56 bool getCheckboxChecked() const;
58 // member: dropDownResult
59 const OUString
& getDropDownResult() const { return m_sDropDownResult
; }
61 // member: dropDownEntries
62 const DropDownEntries_t
& getDropDownEntries() const { return m_DropDownEntries
; }
64 // member: textDefault
65 const OUString
& getTextDefault() const { return m_sTextDefault
; }
67 const OUString
& getTextType() const { return m_sTextType
; }
68 const OUString
& getTextFormat() const { return m_sTextFormat
; }
69 sal_uInt16
getTextMaxLength() const { return m_nTextMaxLength
; }
72 void resolveSprm(Sprm
& r_sprm
);
77 OUString m_sStatusText
;
78 OUString m_sEntryMacro
;
79 OUString m_sExitMacro
;
80 sal_uInt32 m_nCheckboxHeight
;
81 bool m_bCheckboxAutoHeight
;
82 int m_nCheckboxChecked
;
83 int m_nCheckboxDefault
;
84 OUString m_sDropDownResult
;
85 DropDownEntries_t m_DropDownEntries
;
86 OUString m_sTextDefault
;
88 OUString m_sTextFormat
;
89 sal_uInt16 m_nTextMaxLength
;
92 void lcl_sprm(Sprm
& r_sprm
) override
;
95 void lcl_attribute(Id name
, Value
& val
) override
;
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */