LibreOffice Module writerfilter (master) 1
FFDataHandler.hxx
Go to the documentation of this file.
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#pragma once
20#include "LoggedResources.hxx"
21#include <rtl/ustring.hxx>
22#include <vector>
24{
26{
27public:
28 // typedefs
29 typedef ::tools::SvRef<FFDataHandler> Pointer_t;
30 typedef ::std::vector<OUString> DropDownEntries_t;
31
32 // constructor
34 // destructor
35 virtual ~FFDataHandler() override;
36
37 // member: name
38 const OUString& getName() const { return m_sName; }
39
40 // member: helpText
41 const OUString& getHelpText() const { return m_sHelpText; }
42
43 // member: statusText
44 const OUString& getStatusText() const { return m_sStatusText; }
45
46 const OUString& getEntryMacro() const { return m_sEntryMacro; }
47 const OUString& getExitMacro() const { return m_sExitMacro; }
48
49 // member: checkboxHeight
50 sal_uInt32 getCheckboxHeight() const { return m_nCheckboxHeight; }
51
52 // member: checkboxAutoHeight
54
55 // member: checkboxChecked or checkboxDefault (if the previous is not set)
56 bool getCheckboxChecked() const;
57
58 // member: dropDownResult
59 const OUString& getDropDownResult() const { return m_sDropDownResult; }
60
61 // member: dropDownEntries
63
64 // member: textDefault
65 const OUString& getTextDefault() const { return m_sTextDefault; }
66
67 const OUString& getTextType() const { return m_sTextType; }
68 const OUString& getTextFormat() const { return m_sTextFormat; }
69 sal_uInt16 getTextMaxLength() const { return m_nTextMaxLength; }
70
71 // sprm
72 void resolveSprm(Sprm& r_sprm);
73
74private:
75 OUString m_sName;
76 OUString m_sHelpText;
77 OUString m_sStatusText;
78 OUString m_sEntryMacro;
79 OUString m_sExitMacro;
87 OUString m_sTextType;
88 OUString m_sTextFormat;
89 sal_uInt16 m_nTextMaxLength;
90
91 // sprm
92 void lcl_sprm(Sprm& r_sprm) override;
93
94 // attribute
95 void lcl_attribute(Id name, Value& val) override;
96};
97}
98
99/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
An SPRM: Section, Paragraph and Run Modifier.
const OUString & getTextDefault() const
const OUString & getStatusText() const
const OUString & getHelpText() const
const OUString & getTextType() const
::tools::SvRef< FFDataHandler > Pointer_t
::std::vector< OUString > DropDownEntries_t
const DropDownEntries_t & getDropDownEntries() const
const OUString & getDropDownResult() const
const OUString & getTextFormat() const
const OUString & getEntryMacro() const
void lcl_attribute(Id name, Value &val) override
const OUString & getExitMacro() const
void lcl_sprm(Sprm &r_sprm) override
const OUString & getName() const
sal_uInt32 Id