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/.
11 #ifndef INCLUDED_EDITENG_CUSTOMPROPERTYFIELD_HXX
12 #define INCLUDED_EDITENG_CUSTOMPROPERTYFIELD_HXX
14 #include <editeng/editengdllapi.h>
16 #include <editeng/flditem.hxx>
18 #include <com/sun/star/text/textfield/Type.hpp>
20 namespace com::sun::star::document
{ class XDocumentProperties
; }
26 class EDITENG_DLLPUBLIC CustomPropertyField final
: public SvxFieldData
30 OUString msCurrentPresentation
;
33 explicit CustomPropertyField(OUString aName
, OUString aCurrentPresentation
);
35 virtual ~CustomPropertyField() override
;
37 virtual sal_Int32
GetClassId() const override
{ return css::text::textfield::Type::DOCINFO_CUSTOM
; }
39 virtual std::unique_ptr
<SvxFieldData
> Clone() const override
;
40 virtual bool operator==(const SvxFieldData
&) const override
;
42 virtual MetaAction
* createBeginComment() const override
;
44 OUString
GetFormatted(css::uno::Reference
<css::document::XDocumentProperties
> const & xDocumentProperties
);
46 OUString
const & GetName() const
51 OUString
const & GetCurrentPresentation() const
53 return msCurrentPresentation
;
57 } // end editeng namespace
59 #endif // INCLUDED_EDITENG_CUSTOMPROPERTYFIELD_HXX
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */