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_FFDataHandler_HXX
20 #define INCLUDED_FFDataHandler_HXX
21 #include <resourcemodel/LoggedResources.hxx>
22 #include <rtl/ustring.hxx>
23 namespace writerfilter
{
25 class FFDataHandler
: public LoggedProperties
29 typedef ::boost::shared_ptr
<FFDataHandler
> Pointer_t
;
30 typedef ::std::vector
<OUString
> DropDownEntries_t
;
35 virtual ~FFDataHandler();
38 const OUString
& getName() const;
41 const OUString
& getHelpText() const;
44 const OUString
& getStatusText() const;
46 // member: checkboxHeight
47 sal_uInt32
getCheckboxHeight() const;
49 // member: checkboxAutoHeight
50 bool getCheckboxAutoHeight() const;
52 // member: checkboxChecked or checkboxDefault (if the previous is not set)
53 bool getCheckboxChecked() const;
55 // member: dropDownResult
56 const OUString
& getDropDownResult() const;
58 // member: dropDownEntries
59 const DropDownEntries_t
& getDropDownEntries() const;
61 // member: textDefault
62 const OUString
& getTextDefault() const;
65 void resolveSprm(Sprm
& r_sprm
);
70 OUString m_sStatusText
;
71 sal_uInt32 m_nCheckboxHeight
;
72 bool m_bCheckboxAutoHeight
;
73 int m_nCheckboxChecked
;
74 int m_nCheckboxDefault
;
75 OUString m_sDropDownResult
;
76 DropDownEntries_t m_DropDownEntries
;
77 OUString m_sTextDefault
;
80 void lcl_sprm(Sprm
& r_sprm
);
83 void lcl_attribute(Id name
, Value
& val
);
88 #endif //INCLUDED_FFDataHandler_HXX
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */