19#ifndef INCLUDED_EDITENG_FLDITEM_HXX
20#define INCLUDED_EDITENG_FLDITEM_HXX
28#include <com/sun/star/text/textfield/Type.hpp>
44 static SvxFieldData*
Create(
const css::uno::Reference<css::text::XTextContent>& xContent);
46 static constexpr auto CLASS_ID = css::text::textfield::Type::UNSPECIFIED;
47 virtual sal_Int32
GetClassId()
const {
return CLASS_ID; }
57 virtual std::unique_ptr<SvxFieldData>
Clone()
const;
60 virtual MetaAction* createBeginComment()
const;
73 SvxFieldItem( std::unique_ptr<SvxFieldData> pField,
const sal_uInt16 nId );
109 static constexpr auto CLASS_ID = css::text::textfield::Type::DATE;
110 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
131 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
134 virtual MetaAction* createBeginComment()
const override;
153 static constexpr auto CLASS_ID = css::text::textfield::Type::URL;
154 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
171 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
174 virtual MetaAction* createBeginComment()
const override;
180 virtual sal_Int32
GetClassId()
const override {
return css::text::textfield::Type::PAGE; }
183 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
186 virtual MetaAction* createBeginComment()
const override;
192 static constexpr auto CLASS_ID = css::text::textfield::Type::PAGE_NAME;
193 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
196 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
199 virtual MetaAction* createBeginComment()
const override;
205 static constexpr auto CLASS_ID = css::text::textfield::Type::PAGES;
206 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
209 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
216 static constexpr auto CLASS_ID = css::text::textfield::Type::TIME;
217 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
220 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
223 virtual MetaAction* createBeginComment()
const override;
229 static constexpr auto CLASS_ID = css::text::textfield::Type::DOCINFO_TITLE;
230 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
233 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
241 static constexpr auto CLASS_ID = css::text::textfield::Type::TABLE;
242 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
246 void SetTab(
int nTab);
249 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
281 static constexpr auto CLASS_ID = css::text::textfield::Type::EXTENDED_TIME;
282 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
302 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
305 virtual MetaAction* createBeginComment()
const override;
329 static constexpr auto CLASS_ID = css::text::textfield::Type::EXTENDED_FILE;
330 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
336 const OUString&
GetFile()
const {
return aFile; }
337 void SetFile(
const OUString& rString ) { aFile = rString; }
345 OUString GetFormatted()
const;
347 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
372 static constexpr auto CLASS_ID = css::text::textfield::Type::AUTHOR;
373 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
375 const OUString& rFirstName,
376 const OUString& rLastName,
377 const OUString& rShortName,
387 OUString GetFormatted()
const;
389 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
398 static constexpr auto CLASS_ID = css::text::textfield::Type::PRESENTATION_HEADER;
399 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
402 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
411 static constexpr auto CLASS_ID = css::text::textfield::Type::PRESENTATION_FOOTER;
412 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
414 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
423 static constexpr auto CLASS_ID = css::text::textfield::Type::PRESENTATION_DATE_TIME;
424 virtual sal_Int32
GetClassId()
const override {
return CLASS_ID; }
427 static OUString GetFormatted(
Date const & rDate,
tools::Time const & rTime,
431 virtual std::unique_ptr<SvxFieldData>
Clone()
const override;
sal_Int32 GetDate() const
void SetType(SvxAuthorType eTp)
SvxAuthorType GetType() const
void SetFormat(SvxAuthorFormat eFmt)
SvxAuthorFormat GetFormat() const
virtual sal_Int32 GetClassId() const override
void SetFixDate(const Date &rDate)
virtual sal_Int32 GetClassId() const override
SvxDateFormat GetFormat() const
sal_Int32 GetFixDate() const
void SetType(SvxDateType eTp)
void SetFormat(SvxDateFormat eFmt)
SvxDateType GetType() const
this field is used as a placeholder for a header&footer in impress.
virtual sal_Int32 GetClassId() const override
const OUString & GetFile() const
void SetFile(const OUString &rString)
SvxFileType GetType() const
SvxFileFormat GetFormat() const
void SetType(SvxFileType eTp)
virtual sal_Int32 GetClassId() const override
void SetFormat(SvxFileFormat eFmt)
void SetFormat(SvxTimeFormat eFmt)
void SetFixTime(const tools::Time &rTime)
virtual sal_Int32 GetClassId() const override
sal_Int64 GetFixTime() const
SvxTimeFormat GetFormat() const
SvxTimeType GetType() const
void SetType(SvxTimeType eTp)
SvxFieldData(SvxFieldData const &)=default
SvxFieldData(SvxFieldData &&)=default
virtual sal_Int32 GetClassId() const
This item stores a field (SvxFieldData).
std::unique_ptr< SvxFieldData > mpField
const SvxFieldData * GetField() const
virtual sal_Int32 GetClassId() const override
virtual sal_Int32 GetClassId() const override
virtual sal_Int32 GetClassId() const override
virtual sal_Int32 GetClassId() const override
virtual sal_Int32 GetClassId() const override
virtual sal_Int32 GetClassId() const override
const OUString & GetRepresentation() const
SvxURLFormat GetFormat() const
void SetFormat(SvxURLFormat eFmt)
virtual sal_Int32 GetClassId() const override
void SetTargetFrame(const OUString &rFrm)
const OUString & GetTargetFrame() const
void SetURL(const OUString &rURL)
const OUString & GetURL() const
void SetRepresentation(const OUString &rRep)
bool operator==(const EditLine &r1, const EditLine &r2)
#define EDITENG_DLLPUBLIC
css::uno::Reference< css::animations::XAnimationNode > Clone(const css::uno::Reference< css::animations::XAnimationNode > &xSourceNode, const SdPage *pSource=nullptr, const SdPage *pTarget=nullptr)