LibreOffice Module editeng (master) 1
CustomPropertyField.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 */
10
11#ifndef INCLUDED_EDITENG_CUSTOMPROPERTYFIELD_HXX
12#define INCLUDED_EDITENG_CUSTOMPROPERTYFIELD_HXX
13
15
16#include <editeng/flditem.hxx>
17
18#include <com/sun/star/text/textfield/Type.hpp>
19
20namespace com::sun::star::document { class XDocumentProperties; }
21
22
23namespace editeng
24{
25
27{
28private:
29 OUString msName;
31
32public:
33 explicit CustomPropertyField(OUString aName, OUString aCurrentPresentation);
34
35 virtual ~CustomPropertyField() override;
36
37 virtual sal_Int32 GetClassId() const override { return css::text::textfield::Type::DOCINFO_CUSTOM; }
38
39 virtual std::unique_ptr<SvxFieldData> Clone() const override;
40 virtual bool operator==(const SvxFieldData&) const override;
41
42 virtual MetaAction* createBeginComment() const override;
43
44 OUString GetFormatted(css::uno::Reference<css::document::XDocumentProperties> const & xDocumentProperties);
45
46 OUString const & GetName() const
47 {
48 return msName;
49 }
50
51 OUString const & GetCurrentPresentation() const
52 {
53 return msCurrentPresentation;
54 }
55};
56
57} // end editeng namespace
58
59#endif // INCLUDED_EDITENG_CUSTOMPROPERTYFIELD_HXX
60
61/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString const & GetCurrentPresentation() const
virtual sal_Int32 GetClassId() const override
OUString const & GetName() const
bool operator==(const EditLine &r1, const EditLine &r2)
Definition: editdoc.cxx:978
#define EDITENG_DLLPUBLIC
Definition: editengdllapi.h:28
css::uno::Reference< css::animations::XAnimationNode > Clone(const css::uno::Reference< css::animations::XAnimationNode > &xSourceNode, const SdPage *pSource=nullptr, const SdPage *pTarget=nullptr)
OUString msName