SvPersistBase no longer necessary
Change-Id: I928c0898d77d30bd6ca755d07acac6f78b20563b Reviewed-on: https://gerrit.libreoffice.org/57436 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
9df9e5b0a9
commit
99876774fb
@@ -28,8 +28,6 @@ CustomPropertyField::CustomPropertyField(OUString const & rName, OUString const
|
|||||||
CustomPropertyField::~CustomPropertyField()
|
CustomPropertyField::~CustomPropertyField()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
SV_IMPL_PERSIST1(CustomPropertyField);
|
|
||||||
|
|
||||||
std::unique_ptr<SvxFieldData> CustomPropertyField::Clone() const
|
std::unique_ptr<SvxFieldData> CustomPropertyField::Clone() const
|
||||||
{
|
{
|
||||||
return o3tl::make_unique<CustomPropertyField>(msName, msCurrentPresentation);
|
return o3tl::make_unique<CustomPropertyField>(msName, msCurrentPresentation);
|
||||||
|
@@ -322,9 +322,6 @@ bool SvxFieldItem::operator==( const SfxPoolItem& rItem ) const
|
|||||||
// The following are the derivatives of SvxFieldData ...
|
// The following are the derivatives of SvxFieldData ...
|
||||||
|
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxDateField );
|
|
||||||
|
|
||||||
|
|
||||||
SvxDateField::SvxDateField()
|
SvxDateField::SvxDateField()
|
||||||
{
|
{
|
||||||
nFixDate = Date( Date::SYSTEM ).GetDate();
|
nFixDate = Date( Date::SYSTEM ).GetDate();
|
||||||
@@ -436,9 +433,6 @@ MetaAction* SvxDateField::createBeginComment() const
|
|||||||
return new MetaCommentAction( "FIELD_SEQ_BEGIN" );
|
return new MetaCommentAction( "FIELD_SEQ_BEGIN" );
|
||||||
}
|
}
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxURLField );
|
|
||||||
|
|
||||||
|
|
||||||
SvxURLField::SvxURLField()
|
SvxURLField::SvxURLField()
|
||||||
{
|
{
|
||||||
eFormat = SvxURLFormat::Url;
|
eFormat = SvxURLFormat::Url;
|
||||||
@@ -484,8 +478,6 @@ MetaAction* SvxURLField::createBeginComment() const
|
|||||||
// SvxPageTitleField methods
|
// SvxPageTitleField methods
|
||||||
//
|
//
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxPageTitleField );
|
|
||||||
|
|
||||||
SvxPageTitleField::SvxPageTitleField() {}
|
SvxPageTitleField::SvxPageTitleField() {}
|
||||||
|
|
||||||
std::unique_ptr<SvxFieldData> SvxPageTitleField::Clone() const
|
std::unique_ptr<SvxFieldData> SvxPageTitleField::Clone() const
|
||||||
@@ -509,8 +501,6 @@ MetaAction* SvxPageTitleField::createBeginComment() const
|
|||||||
// The fields that were removed from Calc:
|
// The fields that were removed from Calc:
|
||||||
|
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxPageField );
|
|
||||||
|
|
||||||
SvxPageField::SvxPageField() {}
|
SvxPageField::SvxPageField() {}
|
||||||
|
|
||||||
std::unique_ptr<SvxFieldData> SvxPageField::Clone() const
|
std::unique_ptr<SvxFieldData> SvxPageField::Clone() const
|
||||||
@@ -529,8 +519,6 @@ MetaAction* SvxPageField::createBeginComment() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxPagesField );
|
|
||||||
|
|
||||||
SvxPagesField::SvxPagesField() {}
|
SvxPagesField::SvxPagesField() {}
|
||||||
|
|
||||||
std::unique_ptr<SvxFieldData> SvxPagesField::Clone() const
|
std::unique_ptr<SvxFieldData> SvxPagesField::Clone() const
|
||||||
@@ -543,8 +531,6 @@ bool SvxPagesField::operator==( const SvxFieldData& rCmp ) const
|
|||||||
return ( dynamic_cast< const SvxPagesField *>(&rCmp) != nullptr);
|
return ( dynamic_cast< const SvxPagesField *>(&rCmp) != nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxTimeField );
|
|
||||||
|
|
||||||
SvxTimeField::SvxTimeField() {}
|
SvxTimeField::SvxTimeField() {}
|
||||||
|
|
||||||
std::unique_ptr<SvxFieldData> SvxTimeField::Clone() const
|
std::unique_ptr<SvxFieldData> SvxTimeField::Clone() const
|
||||||
@@ -562,8 +548,6 @@ MetaAction* SvxTimeField::createBeginComment() const
|
|||||||
return new MetaCommentAction( "FIELD_SEQ_BEGIN" );
|
return new MetaCommentAction( "FIELD_SEQ_BEGIN" );
|
||||||
}
|
}
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxFileField );
|
|
||||||
|
|
||||||
SvxFileField::SvxFileField() {}
|
SvxFileField::SvxFileField() {}
|
||||||
|
|
||||||
std::unique_ptr<SvxFieldData> SvxFileField::Clone() const
|
std::unique_ptr<SvxFieldData> SvxFileField::Clone() const
|
||||||
@@ -576,8 +560,6 @@ bool SvxFileField::operator==( const SvxFieldData& rCmp ) const
|
|||||||
return ( dynamic_cast< const SvxFileField *>(&rCmp) != nullptr );
|
return ( dynamic_cast< const SvxFileField *>(&rCmp) != nullptr );
|
||||||
}
|
}
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxTableField );
|
|
||||||
|
|
||||||
SvxTableField::SvxTableField() : mnTab(0) {}
|
SvxTableField::SvxTableField() : mnTab(0) {}
|
||||||
|
|
||||||
SvxTableField::SvxTableField(int nTab) : mnTab(nTab) {}
|
SvxTableField::SvxTableField(int nTab) : mnTab(nTab) {}
|
||||||
@@ -604,9 +586,6 @@ bool SvxTableField::operator==( const SvxFieldData& rCmp ) const
|
|||||||
// SvxExtTimeField
|
// SvxExtTimeField
|
||||||
|
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxExtTimeField );
|
|
||||||
|
|
||||||
|
|
||||||
SvxExtTimeField::SvxExtTimeField()
|
SvxExtTimeField::SvxExtTimeField()
|
||||||
: m_nFixTime( tools::Time(tools::Time::SYSTEM).GetTime() )
|
: m_nFixTime( tools::Time(tools::Time::SYSTEM).GetTime() )
|
||||||
{
|
{
|
||||||
@@ -721,9 +700,6 @@ MetaAction* SvxExtTimeField::createBeginComment() const
|
|||||||
// SvxExtFileField
|
// SvxExtFileField
|
||||||
|
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxExtFileField );
|
|
||||||
|
|
||||||
|
|
||||||
SvxExtFileField::SvxExtFileField()
|
SvxExtFileField::SvxExtFileField()
|
||||||
{
|
{
|
||||||
eType = SvxFileType::Var;
|
eType = SvxFileType::Var;
|
||||||
@@ -836,9 +812,6 @@ OUString SvxExtFileField::GetFormatted() const
|
|||||||
// SvxAuthorField
|
// SvxAuthorField
|
||||||
|
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxAuthorField );
|
|
||||||
|
|
||||||
|
|
||||||
SvxAuthorField::SvxAuthorField( const OUString& rFirstName,
|
SvxAuthorField::SvxAuthorField( const OUString& rFirstName,
|
||||||
const OUString& rLastName,
|
const OUString& rLastName,
|
||||||
const OUString& rShortName,
|
const OUString& rShortName,
|
||||||
@@ -897,8 +870,6 @@ OUString SvxAuthorField::GetFormatted() const
|
|||||||
return aString;
|
return aString;
|
||||||
}
|
}
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxHeaderField );
|
|
||||||
|
|
||||||
SvxHeaderField::SvxHeaderField() {}
|
SvxHeaderField::SvxHeaderField() {}
|
||||||
|
|
||||||
std::unique_ptr<SvxFieldData> SvxHeaderField::Clone() const
|
std::unique_ptr<SvxFieldData> SvxHeaderField::Clone() const
|
||||||
@@ -911,8 +882,6 @@ bool SvxHeaderField::operator==( const SvxFieldData& rCmp ) const
|
|||||||
return ( dynamic_cast< const SvxHeaderField *>(&rCmp) != nullptr );
|
return ( dynamic_cast< const SvxHeaderField *>(&rCmp) != nullptr );
|
||||||
}
|
}
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxFooterField );
|
|
||||||
|
|
||||||
SvxFooterField::SvxFooterField() {}
|
SvxFooterField::SvxFooterField() {}
|
||||||
|
|
||||||
std::unique_ptr<SvxFieldData> SvxFooterField::Clone() const
|
std::unique_ptr<SvxFieldData> SvxFooterField::Clone() const
|
||||||
@@ -925,8 +894,6 @@ bool SvxFooterField::operator==( const SvxFieldData& rCmp ) const
|
|||||||
return ( dynamic_cast< const SvxFooterField *>(&rCmp) != nullptr );
|
return ( dynamic_cast< const SvxFooterField *>(&rCmp) != nullptr );
|
||||||
}
|
}
|
||||||
|
|
||||||
SV_IMPL_PERSIST1( SvxDateTimeField );
|
|
||||||
|
|
||||||
std::unique_ptr<SvxFieldData> SvxDateTimeField::Clone() const
|
std::unique_ptr<SvxFieldData> SvxDateTimeField::Clone() const
|
||||||
{
|
{
|
||||||
return o3tl::make_unique<SvxDateTimeField>(); // empty
|
return o3tl::make_unique<SvxDateTimeField>(); // empty
|
||||||
|
@@ -21,8 +21,6 @@
|
|||||||
#include <editeng/measfld.hxx>
|
#include <editeng/measfld.hxx>
|
||||||
#include <o3tl/make_unique.hxx>
|
#include <o3tl/make_unique.hxx>
|
||||||
|
|
||||||
SV_IMPL_PERSIST1(SdrMeasureField);
|
|
||||||
|
|
||||||
SdrMeasureField::~SdrMeasureField()
|
SdrMeasureField::~SdrMeasureField()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
#include <tools/ref.hxx>
|
#include <tools/ref.hxx>
|
||||||
#include "bastype.hxx"
|
#include "bastype.hxx"
|
||||||
#include <tools/pstm.hxx>
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
#include "hash.hxx"
|
#include "hash.hxx"
|
||||||
#include "lex.hxx"
|
#include "lex.hxx"
|
||||||
#include <rtl/string.hxx>
|
#include <rtl/string.hxx>
|
||||||
#include <tools/pstm.hxx>
|
|
||||||
|
|
||||||
#include <rtl/ustring.hxx>
|
#include <rtl/ustring.hxx>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
#define INCLUDED_IDL_INC_TYPES_HXX
|
#define INCLUDED_IDL_INC_TYPES_HXX
|
||||||
|
|
||||||
#include <rtl/strbuf.hxx>
|
#include <rtl/strbuf.hxx>
|
||||||
|
#include <tools/solar.h>
|
||||||
#include <tools/ref.hxx>
|
#include <tools/ref.hxx>
|
||||||
#include "basobj.hxx"
|
#include "basobj.hxx"
|
||||||
|
|
||||||
|
@@ -34,7 +34,7 @@ public:
|
|||||||
|
|
||||||
virtual ~CustomPropertyField() override;
|
virtual ~CustomPropertyField() override;
|
||||||
|
|
||||||
SV_DECL_PERSIST1(CustomPropertyField, css::text::textfield::Type::DOCINFO_CUSTOM)
|
virtual sal_Int32 GetClassId() const override { return css::text::textfield::Type::DOCINFO_CUSTOM; }
|
||||||
|
|
||||||
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
||||||
virtual bool operator==(const SvxFieldData&) const override;
|
virtual bool operator==(const SvxFieldData&) const override;
|
||||||
|
@@ -23,7 +23,6 @@
|
|||||||
#include <tools/time.hxx>
|
#include <tools/time.hxx>
|
||||||
#include <tools/date.hxx>
|
#include <tools/date.hxx>
|
||||||
#include <svl/poolitem.hxx>
|
#include <svl/poolitem.hxx>
|
||||||
#include <tools/pstm.hxx>
|
|
||||||
#include <editeng/editengdllapi.h>
|
#include <editeng/editengdllapi.h>
|
||||||
|
|
||||||
#include <com/sun/star/text/textfield/Type.hpp>
|
#include <com/sun/star/text/textfield/Type.hpp>
|
||||||
@@ -47,7 +46,8 @@ public:
|
|||||||
|
|
||||||
static SvxFieldData* Create(const css::uno::Reference<css::text::XTextContent>& xContent);
|
static SvxFieldData* Create(const css::uno::Reference<css::text::XTextContent>& xContent);
|
||||||
|
|
||||||
virtual sal_Int32 GetClassId() const { return css::text::textfield::Type::UNSPECIFIED; }
|
static constexpr auto CLASS_ID = css::text::textfield::Type::UNSPECIFIED;
|
||||||
|
virtual sal_Int32 GetClassId() const { return CLASS_ID; }
|
||||||
|
|
||||||
SvxFieldData();
|
SvxFieldData();
|
||||||
virtual ~SvxFieldData();
|
virtual ~SvxFieldData();
|
||||||
@@ -104,7 +104,8 @@ class EDITENG_DLLPUBLIC SvxDateField : public SvxFieldData
|
|||||||
SvxDateFormat eFormat;
|
SvxDateFormat eFormat;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxDateField, css::text::textfield::Type::DATE )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::DATE;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
|
|
||||||
SvxDateField();
|
SvxDateField();
|
||||||
explicit SvxDateField( const Date& rDate,
|
explicit SvxDateField( const Date& rDate,
|
||||||
@@ -147,7 +148,8 @@ private:
|
|||||||
OUString aTargetFrame; // In what Frame
|
OUString aTargetFrame; // In what Frame
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxURLField, css::text::textfield::Type::URL )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::URL;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
|
|
||||||
SvxURLField();
|
SvxURLField();
|
||||||
SvxURLField( const OUString& rURL, const OUString& rRepres, SvxURLFormat eFmt = SvxURLFormat::Url );
|
SvxURLField( const OUString& rURL, const OUString& rRepres, SvxURLFormat eFmt = SvxURLFormat::Url );
|
||||||
@@ -173,7 +175,7 @@ public:
|
|||||||
class EDITENG_DLLPUBLIC SvxPageField final: public SvxFieldData
|
class EDITENG_DLLPUBLIC SvxPageField final: public SvxFieldData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxPageField, css::text::textfield::Type::PAGE )
|
virtual sal_Int32 GetClassId() const override { return css::text::textfield::Type::PAGE; }
|
||||||
SvxPageField();
|
SvxPageField();
|
||||||
|
|
||||||
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
||||||
@@ -185,7 +187,8 @@ public:
|
|||||||
class EDITENG_DLLPUBLIC SvxPageTitleField final: public SvxFieldData
|
class EDITENG_DLLPUBLIC SvxPageTitleField final: public SvxFieldData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxPageTitleField, css::text::textfield::Type::PAGE_NAME )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::PAGE_NAME;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
SvxPageTitleField();
|
SvxPageTitleField();
|
||||||
|
|
||||||
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
||||||
@@ -197,7 +200,8 @@ public:
|
|||||||
class EDITENG_DLLPUBLIC SvxPagesField final: public SvxFieldData
|
class EDITENG_DLLPUBLIC SvxPagesField final: public SvxFieldData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxPagesField, css::text::textfield::Type::PAGES )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::PAGES;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
SvxPagesField();
|
SvxPagesField();
|
||||||
|
|
||||||
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
||||||
@@ -207,7 +211,8 @@ public:
|
|||||||
class EDITENG_DLLPUBLIC SvxTimeField final: public SvxFieldData
|
class EDITENG_DLLPUBLIC SvxTimeField final: public SvxFieldData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxTimeField, css::text::textfield::Type::TIME )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::TIME;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
SvxTimeField();
|
SvxTimeField();
|
||||||
|
|
||||||
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
||||||
@@ -219,7 +224,8 @@ public:
|
|||||||
class EDITENG_DLLPUBLIC SvxFileField final: public SvxFieldData
|
class EDITENG_DLLPUBLIC SvxFileField final: public SvxFieldData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxFileField, css::text::textfield::Type::DOCINFO_TITLE )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::DOCINFO_TITLE;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
SvxFileField();
|
SvxFileField();
|
||||||
|
|
||||||
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
||||||
@@ -230,7 +236,8 @@ class EDITENG_DLLPUBLIC SvxTableField final: public SvxFieldData
|
|||||||
{
|
{
|
||||||
int mnTab;
|
int mnTab;
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxTableField, css::text::textfield::Type::TABLE )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::TABLE;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
SvxTableField();
|
SvxTableField();
|
||||||
explicit SvxTableField(int nTab);
|
explicit SvxTableField(int nTab);
|
||||||
|
|
||||||
@@ -269,7 +276,8 @@ private:
|
|||||||
SvxTimeFormat eFormat;
|
SvxTimeFormat eFormat;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxExtTimeField, css::text::textfield::Type::EXTENDED_TIME )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::EXTENDED_TIME;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
SvxExtTimeField();
|
SvxExtTimeField();
|
||||||
explicit SvxExtTimeField( const tools::Time& rTime,
|
explicit SvxExtTimeField( const tools::Time& rTime,
|
||||||
SvxTimeType eType,
|
SvxTimeType eType,
|
||||||
@@ -316,7 +324,8 @@ private:
|
|||||||
SvxFileFormat eFormat;
|
SvxFileFormat eFormat;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxExtFileField, css::text::textfield::Type::EXTENDED_FILE )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::EXTENDED_FILE;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
SvxExtFileField();
|
SvxExtFileField();
|
||||||
explicit SvxExtFileField( const OUString& rString,
|
explicit SvxExtFileField( const OUString& rString,
|
||||||
SvxFileType eType = SvxFileType::Var,
|
SvxFileType eType = SvxFileType::Var,
|
||||||
@@ -358,7 +367,8 @@ private:
|
|||||||
SvxAuthorFormat eFormat;
|
SvxAuthorFormat eFormat;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxAuthorField, css::text::textfield::Type::AUTHOR )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::AUTHOR;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
SvxAuthorField(
|
SvxAuthorField(
|
||||||
const OUString& rFirstName,
|
const OUString& rFirstName,
|
||||||
const OUString& rLastName,
|
const OUString& rLastName,
|
||||||
@@ -383,7 +393,8 @@ public:
|
|||||||
class EDITENG_DLLPUBLIC SvxHeaderField final: public SvxFieldData
|
class EDITENG_DLLPUBLIC SvxHeaderField final: public SvxFieldData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxHeaderField, css::text::textfield::Type::PRESENTATION_HEADER )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::PRESENTATION_HEADER;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
SvxHeaderField();
|
SvxHeaderField();
|
||||||
|
|
||||||
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
||||||
@@ -395,7 +406,8 @@ public:
|
|||||||
class EDITENG_DLLPUBLIC SvxFooterField final: public SvxFieldData
|
class EDITENG_DLLPUBLIC SvxFooterField final: public SvxFieldData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxFooterField, css::text::textfield::Type::PRESENTATION_FOOTER )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::PRESENTATION_FOOTER;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
SvxFooterField();
|
SvxFooterField();
|
||||||
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
||||||
virtual bool operator==( const SvxFieldData& ) const override;
|
virtual bool operator==( const SvxFieldData& ) const override;
|
||||||
@@ -406,7 +418,8 @@ public:
|
|||||||
class EDITENG_DLLPUBLIC SvxDateTimeField final: public SvxFieldData
|
class EDITENG_DLLPUBLIC SvxDateTimeField final: public SvxFieldData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1( SvxDateTimeField, css::text::textfield::Type::PRESENTATION_DATE_TIME )
|
static constexpr auto CLASS_ID = css::text::textfield::Type::PRESENTATION_DATE_TIME;
|
||||||
|
virtual sal_Int32 GetClassId() const override { return CLASS_ID; }
|
||||||
SvxDateTimeField();
|
SvxDateTimeField();
|
||||||
|
|
||||||
static OUString GetFormatted( Date const & rDate, tools::Time const & rTime,
|
static OUString GetFormatted( Date const & rDate, tools::Time const & rTime,
|
||||||
|
@@ -32,7 +32,7 @@ enum class SdrMeasureFieldKind { Value, Unit, Rotate90Blanks };
|
|||||||
class EDITENG_DLLPUBLIC SdrMeasureField: public SvxFieldData {
|
class EDITENG_DLLPUBLIC SdrMeasureField: public SvxFieldData {
|
||||||
SdrMeasureFieldKind eMeasureFieldKind;
|
SdrMeasureFieldKind eMeasureFieldKind;
|
||||||
public:
|
public:
|
||||||
SV_DECL_PERSIST1(SdrMeasureField, css::text::textfield::Type::MEASURE)
|
virtual sal_Int32 GetClassId() const override { return css::text::textfield::Type::MEASURE; }
|
||||||
SdrMeasureField(SdrMeasureFieldKind eNewKind): eMeasureFieldKind(eNewKind) {}
|
SdrMeasureField(SdrMeasureFieldKind eNewKind): eMeasureFieldKind(eNewKind) {}
|
||||||
virtual ~SdrMeasureField() override;
|
virtual ~SdrMeasureField() override;
|
||||||
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
virtual std::unique_ptr<SvxFieldData> Clone() const override;
|
||||||
|
@@ -1,44 +0,0 @@
|
|||||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
||||||
/*
|
|
||||||
* This file is part of the LibreOffice project.
|
|
||||||
*
|
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
*
|
|
||||||
* This file incorporates work covered by the following license notice:
|
|
||||||
*
|
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
* contributor license agreements. See the NOTICE file distributed
|
|
||||||
* with this work for additional information regarding copyright
|
|
||||||
* ownership. The ASF licenses this file to you under the Apache
|
|
||||||
* License, Version 2.0 (the "License"); you may not use this file
|
|
||||||
* except in compliance with the License. You may obtain a copy of
|
|
||||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
||||||
*/
|
|
||||||
#ifndef INCLUDED_TOOLS_PSTM_HXX
|
|
||||||
#define INCLUDED_TOOLS_PSTM_HXX
|
|
||||||
|
|
||||||
#include <tools/toolsdllapi.h>
|
|
||||||
#include <tools/ref.hxx>
|
|
||||||
#include <tools/stream.hxx>
|
|
||||||
#include <map>
|
|
||||||
#include <unordered_map>
|
|
||||||
|
|
||||||
#define SV_DECL_PERSIST1( Class, CLASS_ID ) \
|
|
||||||
static sal_Int32 StaticClassId() { return CLASS_ID; } \
|
|
||||||
virtual sal_Int32 GetClassId() const override; \
|
|
||||||
|
|
||||||
#define SV_IMPL_PERSIST1( Class ) \
|
|
||||||
sal_Int32 Class::GetClassId() const \
|
|
||||||
{ return StaticClassId(); } \
|
|
||||||
|
|
||||||
class SvPersistBase : public SvRefBase
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
virtual sal_Int32 GetClassId() const = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
|
@@ -7776,7 +7776,6 @@ include/tools/mempool.hxx
|
|||||||
include/tools/multisel.hxx
|
include/tools/multisel.hxx
|
||||||
include/tools/pathutils.hxx
|
include/tools/pathutils.hxx
|
||||||
include/tools/poly.hxx
|
include/tools/poly.hxx
|
||||||
include/tools/pstm.hxx
|
|
||||||
include/tools/ref.hxx
|
include/tools/ref.hxx
|
||||||
include/tools/resary.hxx
|
include/tools/resary.hxx
|
||||||
include/tools/solar.h
|
include/tools/solar.h
|
||||||
|
@@ -111,12 +111,12 @@ namespace drawinglayer
|
|||||||
{
|
{
|
||||||
const EditTextObject& rETO = maOutlinerParaObject.GetTextObject();
|
const EditTextObject& rETO = maOutlinerParaObject.GetTextObject();
|
||||||
|
|
||||||
mbContainsPageField = rETO.HasField(SvxPageField::StaticClassId());
|
mbContainsPageField = rETO.HasField(SvxPageField::CLASS_ID);
|
||||||
mbContainsPageCountField = rETO.HasField(SvxPagesField::StaticClassId());
|
mbContainsPageCountField = rETO.HasField(SvxPagesField::CLASS_ID);
|
||||||
mbContainsOtherFields = rETO.HasField(SvxHeaderField::StaticClassId())
|
mbContainsOtherFields = rETO.HasField(SvxHeaderField::CLASS_ID)
|
||||||
|| rETO.HasField(SvxFooterField::StaticClassId())
|
|| rETO.HasField(SvxFooterField::CLASS_ID)
|
||||||
|| rETO.HasField(SvxDateTimeField::StaticClassId())
|
|| rETO.HasField(SvxDateTimeField::CLASS_ID)
|
||||||
|| rETO.HasField(SvxAuthorField::StaticClassId());
|
|| rETO.HasField(SvxAuthorField::CLASS_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
const SdrText* SdrTextPrimitive2D::getSdrText() const { return mrSdrText.get(); }
|
const SdrText* SdrTextPrimitive2D::getSdrText() const { return mrSdrText.get(); }
|
||||||
|
@@ -1140,19 +1140,10 @@ void SdrTextObj::ImpCheckMasterCachable()
|
|||||||
if(!bNotVisibleAsMaster && pOutlinerParaObject && pOutlinerParaObject->IsEditDoc() )
|
if(!bNotVisibleAsMaster && pOutlinerParaObject && pOutlinerParaObject->IsEditDoc() )
|
||||||
{
|
{
|
||||||
const EditTextObject& rText= pOutlinerParaObject->GetTextObject();
|
const EditTextObject& rText= pOutlinerParaObject->GetTextObject();
|
||||||
bNotMasterCachable=rText.HasField(SvxPageField::StaticClassId());
|
bNotMasterCachable = rText.HasField(SvxPageField::CLASS_ID)
|
||||||
if( !bNotMasterCachable )
|
|| rText.HasField(SvxHeaderField::CLASS_ID)
|
||||||
{
|
|| rText.HasField(SvxFooterField::CLASS_ID)
|
||||||
bNotMasterCachable=rText.HasField(SvxHeaderField::StaticClassId());
|
|| rText.HasField(SvxDateTimeField::CLASS_ID);
|
||||||
if( !bNotMasterCachable )
|
|
||||||
{
|
|
||||||
bNotMasterCachable=rText.HasField(SvxFooterField::StaticClassId());
|
|
||||||
if( !bNotMasterCachable )
|
|
||||||
{
|
|
||||||
bNotMasterCachable=rText.HasField(SvxDateTimeField::StaticClassId());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user