Line data Source code
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 : #ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_FFDATAHANDLER_HXX
20 : #define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_FFDATAHANDLER_HXX
21 : #include "LoggedResources.hxx"
22 : #include <rtl/ustring.hxx>
23 : #include <vector>
24 : namespace writerfilter {
25 : namespace dmapper {
26 : class FFDataHandler : public LoggedProperties
27 : {
28 : public:
29 : // typedefs
30 : typedef ::std::shared_ptr<FFDataHandler> Pointer_t;
31 : typedef ::std::vector<OUString> DropDownEntries_t;
32 :
33 : // constructor
34 : FFDataHandler();
35 : // destructor
36 : virtual ~FFDataHandler();
37 :
38 : // member: name
39 43 : const OUString & getName() const { return m_sName;}
40 :
41 : // member: helpText
42 0 : const OUString & getHelpText() const { return m_sHelpText;}
43 :
44 : // member: statusText
45 0 : const OUString & getStatusText() const { return m_sStatusText;}
46 :
47 : // member: checkboxHeight
48 0 : sal_uInt32 getCheckboxHeight() const { return m_nCheckboxHeight;}
49 :
50 : // member: checkboxAutoHeight
51 0 : bool getCheckboxAutoHeight() const { return m_bCheckboxAutoHeight;}
52 :
53 : // member: checkboxChecked or checkboxDefault (if the previous is not set)
54 : bool getCheckboxChecked() const;
55 :
56 : // member: dropDownResult
57 0 : const OUString & getDropDownResult() const { return m_sDropDownResult;}
58 :
59 : // member: dropDownEntries
60 0 : const DropDownEntries_t & getDropDownEntries() const { return m_DropDownEntries;}
61 :
62 : // member: textDefault
63 0 : const OUString & getTextDefault() const { return m_sTextDefault;}
64 :
65 : // sprm
66 : void resolveSprm(Sprm & r_sprm);
67 :
68 : private:
69 : OUString m_sName;
70 : OUString m_sHelpText;
71 : OUString m_sStatusText;
72 : sal_uInt32 m_nCheckboxHeight;
73 : bool m_bCheckboxAutoHeight;
74 : int m_nCheckboxChecked;
75 : int m_nCheckboxDefault;
76 : OUString m_sDropDownResult;
77 : DropDownEntries_t m_DropDownEntries;
78 : OUString m_sTextDefault;
79 :
80 : // sprm
81 : void lcl_sprm(Sprm & r_sprm) SAL_OVERRIDE;
82 :
83 : // attribute
84 : void lcl_attribute(Id name, Value & val) SAL_OVERRIDE;
85 : };
86 :
87 :
88 : }}
89 : #endif // INCLUDED_WRITERFILTER_SOURCE_DMAPPER_FFDATAHANDLER_HXX
90 :
91 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|