impress: don't exit textbox editing when new slide was added
[LibreOffice.git] / include / editeng / CustomPropertyField.hxx
blobb44af7330bbc6dbf574633c8b23d71e2c09e56aa
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 */
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; }
23 namespace editeng
26 class EDITENG_DLLPUBLIC CustomPropertyField final : public SvxFieldData
28 private:
29 OUString msName;
30 OUString msCurrentPresentation;
32 public:
33 explicit CustomPropertyField(OUString const & rName, OUString const & rCurrentPresentation);
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
48 return msName;
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: */