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 .
19 #ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_FFDATAHANDLER_HXX
20 #define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_FFDATAHANDLER_HXX
21 #include "LoggedResources.hxx"
22 #include <rtl/ustring.hxx>
24 namespace writerfilter
{
26 class FFDataHandler
: public LoggedProperties
30 typedef ::tools::SvRef
<FFDataHandler
> Pointer_t
;
31 typedef ::std::vector
<OUString
> DropDownEntries_t
;
36 virtual ~FFDataHandler() override
;
39 const OUString
& getName() const { return m_sName
;}
42 const OUString
& getHelpText() const { return m_sHelpText
;}
45 const OUString
& getStatusText() const { return m_sStatusText
;}
47 const OUString
& getEntryMacro() const { return m_sEntryMacro
;}
48 const OUString
& getExitMacro() const { return m_sExitMacro
;}
50 // member: checkboxHeight
51 sal_uInt32
getCheckboxHeight() const { return m_nCheckboxHeight
;}
53 // member: checkboxAutoHeight
54 bool getCheckboxAutoHeight() const { return m_bCheckboxAutoHeight
;}
56 // member: checkboxChecked or checkboxDefault (if the previous is not set)
57 bool getCheckboxChecked() const;
59 // member: dropDownResult
60 const OUString
& getDropDownResult() const { return m_sDropDownResult
;}
62 // member: dropDownEntries
63 const DropDownEntries_t
& getDropDownEntries() const { return m_DropDownEntries
;}
65 // member: textDefault
66 const OUString
& getTextDefault() const { return m_sTextDefault
;}
68 const OUString
& getTextType() const { return m_sTextType
; }
69 const OUString
& getTextFormat() const { return m_sTextFormat
; }
70 sal_uInt16
getTextMaxLength() const { return m_nTextMaxLength
; }
73 void resolveSprm(Sprm
& r_sprm
);
78 OUString m_sStatusText
;
79 OUString m_sEntryMacro
;
80 OUString m_sExitMacro
;
81 sal_uInt32 m_nCheckboxHeight
;
82 bool m_bCheckboxAutoHeight
;
83 int m_nCheckboxChecked
;
84 int m_nCheckboxDefault
;
85 OUString m_sDropDownResult
;
86 DropDownEntries_t m_DropDownEntries
;
87 OUString m_sTextDefault
;
89 OUString m_sTextFormat
;
90 sal_uInt16 m_nTextMaxLength
;
93 void lcl_sprm(Sprm
& r_sprm
) override
;
96 void lcl_attribute(Id name
, Value
& val
) override
;
101 #endif // INCLUDED_WRITERFILTER_SOURCE_DMAPPER_FFDATAHANDLER_HXX
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */