loplugin:finalclasses in xmloff

Change-Id: I389824999e8e24c27e5d6f36180ae0fd8032c482
Reviewed-on: https://gerrit.libreoffice.org/85699
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2019-12-22 17:22:49 +02:00
parent de37f3c3b2
commit e7f16852b9
40 changed files with 128 additions and 136 deletions

View File

@ -25,7 +25,7 @@
/**
PropertyHandler for the XML-data-type:
*/
class XMLAttributeContainerHandler : public XMLPropertyHandler
class XMLAttributeContainerHandler final : public XMLPropertyHandler
{
public:
virtual ~XMLAttributeContainerHandler() override;

View File

@ -41,7 +41,7 @@ class SvXMLImportContext;
/**
* DomBuilderContext creates a DOM tree suitable for in-memory processing of
* XML data from a sequence of SAX events */
class DomBuilderContext : public SvXMLImportContext
class DomBuilderContext final : public SvXMLImportContext
{
css::uno::Reference<css::xml::dom::XNode> mxNode;

View File

@ -24,7 +24,7 @@
#include <xmloff/xmlexp.hxx>
class XMLMetaExportComponent : public SvXMLExport
class XMLMetaExportComponent final : public SvXMLExport
{
css::uno::Reference< css::document::XDocumentProperties > mxDocProps;
@ -36,7 +36,7 @@ public:
virtual ~XMLMetaExportComponent() override;
protected:
private:
// export the events off all autotexts
virtual ErrCode exportDoc(
enum ::xmloff::token::XMLTokenEnum eClass = xmloff::token::XML_TOKEN_INVALID ) override;

View File

@ -23,14 +23,12 @@
#include <xmloff/prstylei.hxx>
#include <xmloff/xmlimp.hxx>
class PageStyleContext : public XMLPropStyleContext
class PageStyleContext final : public XMLPropStyleContext
{
private:
OUString sPageUsage;
bool m_bIsFillStyleAlreadyConverted : 1;
protected:
virtual void SetAttribute( sal_uInt16 nPrefixKey,
const OUString& rLocalName,
const OUString& rValue ) override;

View File

@ -23,7 +23,7 @@
class SchXMLExport;
class SchXMLAutoStylePoolP : public SvXMLAutoStylePoolP
class SchXMLAutoStylePoolP final : public SvXMLAutoStylePoolP
{
SchXMLExport& mrSchXMLExport;

View File

@ -146,12 +146,11 @@ enum SchXMLRegEquationAttrMap
XML_TOK_REGEQ_POS_Y
};
class SchXMLImport : public SvXMLImport
class SchXMLImport final : public SvXMLImport
{
private:
rtl::Reference<SchXMLImportHelper> maImportHelper;
protected:
virtual SvXMLImportContext *CreateDocumentContext(
sal_uInt16 nPrefix,
const OUString& rLocalName,

View File

@ -61,7 +61,7 @@ inline bool StyleNameHash_Impl::operator()(
return r1.m_nFamily == r2.m_nFamily && r1.m_aName == r2.m_aName;
}
class StyleMap :
class StyleMap final :
public ::cppu::WeakImplHelper< css::lang::XUnoTunnel>,
public std::unordered_map< StyleNameKey_Impl, OUString,
StyleNameHash_Impl, StyleNameHash_Impl >

View File

@ -27,7 +27,7 @@ namespace com { namespace sun { namespace star {
namespace io { class XOutputStream; }
} } }
class XMLBackgroundImageContext : public XMLElementPropertyContext
class XMLBackgroundImageContext final : public XMLElementPropertyContext
{
XMLPropertyState aPosProp;
sal_Int32 const m_nBitmapModeIdx;

View File

@ -27,7 +27,7 @@
typedef ::cppu::WeakImplHelper<
css::xml::sax::XDocumentHandler > XMLBasicExportFilter_BASE;
class XMLBasicExportFilter : public XMLBasicExportFilter_BASE
class XMLBasicExportFilter final : public XMLBasicExportFilter_BASE
{
private:
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xHandler;

View File

@ -28,7 +28,7 @@ template<typename EnumT> struct SvXMLEnumMapEntry;
/** Abstract base-class for different XML-types. Derivations of this class
knows how to compare, im/export a special XML-type
*/
class XMLBitmapLogicalSizePropertyHandler: public XMLPropertyHandler
class XMLBitmapLogicalSizePropertyHandler final : public XMLPropertyHandler
{
public:

View File

@ -27,7 +27,7 @@ template<typename EnumT> struct SvXMLEnumMapEntry;
/** Abstract base-class for different XML-types. Derivations of this class
knows how to compare, im/export a special XML-type
*/
class XMLBitmapRepeatOffsetPropertyHandler: public XMLPropertyHandler
class XMLBitmapRepeatOffsetPropertyHandler final : public XMLPropertyHandler
{
bool const mbX;
OUString const msVertical;

View File

@ -29,33 +29,31 @@ extern const XMLPropertyMapEntry aXMLChartPropMap[];
class SvXMLExport;
class XMLChartPropHdlFactory : public XMLPropertyHandlerFactory
class XMLChartPropHdlFactory final : public XMLPropertyHandlerFactory
{
public:
virtual ~XMLChartPropHdlFactory() override;
virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const override;
};
class XMLChartPropertySetMapper : public XMLPropertySetMapper
class XMLChartPropertySetMapper final : public XMLPropertySetMapper
{
public:
explicit XMLChartPropertySetMapper( bool bForExport );
virtual ~XMLChartPropertySetMapper() override;
};
class XMLChartExportPropertyMapper : public SvXMLExportPropertyMapper
class XMLChartExportPropertyMapper final : public SvXMLExportPropertyMapper
{
private:
SvXMLExport& mrExport;
css::uno::Reference< css::chart2::XChartDocument > mxChartDoc;
protected:
virtual void ContextFilter(
bool bEnableFoFontFamily,
::std::vector< XMLPropertyState >& rProperties,
const css::uno::Reference<css::beans::XPropertySet >& rPropSet ) const override;
private:
/// this method is called for every item that has the MID_FLAG_ELEMENT_EXPORT flag set
virtual void handleElementItem(
SvXMLExport& rExport,
@ -78,7 +76,7 @@ public:
void setChartDoc( const css::uno::Reference< css::chart2::XChartDocument >& xChartDoc );
};
class XMLChartImportPropertyMapper : public SvXMLImportPropertyMapper
class XMLChartImportPropertyMapper final : public SvXMLImportPropertyMapper
{
private:
SvXMLImport& mrImport;

View File

@ -21,14 +21,13 @@
#include <xmloff/XMLShapeStyleContext.hxx>
class XMLChartStyleContext : public XMLShapeStyleContext
class XMLChartStyleContext final : public XMLShapeStyleContext
{
private:
OUString msDataStyleName;
OUString msPercentageDataStyleName;
SvXMLStylesContext& mrStyles;
protected:
/// is called when an attribute at the (auto)style element is found
virtual void SetAttribute( sal_uInt16 nPrefixKey,
const OUString& rLocalName,

View File

@ -25,7 +25,7 @@
/**
PropertyHandler for the XML-data-type:
*/
class XMLClipPropertyHandler : public XMLPropertyHandler
class XMLClipPropertyHandler final : public XMLPropertyHandler
{
bool const m_bODF11;
public:

View File

@ -26,7 +26,7 @@
namespace com { namespace sun { namespace star { namespace lang {
class XComponent; } } } }
class XMLEmbeddedObjectImportContext : public SvXMLImportContext
class XMLEmbeddedObjectImportContext final : public SvXMLImportContext
{
css::uno::Reference<css::xml::sax::XDocumentHandler > xHandler;
css::uno::Reference<css::lang::XComponent > xComp;

View File

@ -28,7 +28,7 @@ template<typename EnumT> struct SvXMLEnumMapEntry;
/** Abstract base-class for different XML-types. Derivations of this class
knows how to compare, im/export a special XML-type
*/
class XMLFillBitmapSizePropertyHandler: public XMLPropertyHandler
class XMLFillBitmapSizePropertyHandler final : public XMLPropertyHandler
{
public:

View File

@ -31,7 +31,7 @@ namespace com { namespace sun { namespace star {
class SvXMLImport;
/// import footnote and endnote configuration elements
class XMLFootnoteConfigurationImportContext : public SvXMLStyleContext
class XMLFootnoteConfigurationImportContext final : public SvXMLStyleContext
{
OUString sCitationStyle;
OUString sAnchorStyle;

View File

@ -31,7 +31,7 @@ namespace com { namespace sun { namespace star {
} } }
class XMLImageMapContext : public SvXMLImportContext
class XMLImageMapContext final : public SvXMLImportContext
{
/// the image map to be imported
css::uno::Reference< css::container::XIndexContainer> xImageMap;

View File

@ -40,7 +40,7 @@ namespace com { namespace sun { namespace star {
*
* Little cheat: Cover all child elements in CreateChildContext.
*/
class XMLIndexBibliographyConfigurationContext : public SvXMLStyleContext
class XMLIndexBibliographyConfigurationContext final : public SvXMLStyleContext
{
OUString sSuffix;
OUString sPrefix;

View File

@ -26,7 +26,7 @@
This is a handler that returns true for import if the attribute string
contains a '%' value. For export this is only usable for filtering.
*/
class XMLIsPercentagePropertyHandler : public XMLPropertyHandler
class XMLIsPercentagePropertyHandler final : public XMLPropertyHandler
{
public:
virtual ~XMLIsPercentagePropertyHandler () override;

View File

@ -48,7 +48,7 @@ enum LineNumberingToken
/** import <text:linenumbering-configuration> elements */
class XMLLineNumberingImportContext : public SvXMLStyleContext
class XMLLineNumberingImportContext final : public SvXMLStyleContext
{
OUString sStyleName;
OUString sNumFormat;
@ -78,7 +78,7 @@ public:
void SetSeparatorText(const OUString& sText);
void SetSeparatorIncrement(sal_Int16 nIncr);
protected:
private:
virtual void StartElement(
const css::uno::Reference<css::xml::sax::XAttributeList> & xAttrList) override;

View File

@ -27,7 +27,7 @@
struct SdXMLFixedDataStyle;
class SdXMLImport;
class SdXMLNumberFormatImportContext : public SvXMLNumFormatContext
class SdXMLNumberFormatImportContext final : public SvXMLNumFormatContext
{
friend class SdXMLNumberFormatMemberImportContext;

View File

@ -25,7 +25,7 @@
/**
This is a handler either only import/exports percent or measure.
*/
class XMLPercentOrMeasurePropertyHandler : public XMLPropertyHandler
class XMLPercentOrMeasurePropertyHandler final : public XMLPropertyHandler
{
public:
XMLPercentOrMeasurePropertyHandler();

View File

@ -28,7 +28,7 @@ template<typename EnumT> struct SvXMLEnumMapEntry;
/** Abstract base-class for different XML-types. Derivations of this class
knows how to compare, im/export a special XML-type
*/
class XMLRectangleMembersHdl: public XMLPropertyHandler
class XMLRectangleMembersHdl final : public XMLPropertyHandler
{
private:
sal_Int32 const mnType;

View File

@ -27,7 +27,7 @@ namespace com { namespace sun { namespace star {
namespace beans { class XPropertySet; }
namespace io { class XOutputStream; } } } }
class XMLReplacementImageContext : public SvXMLImportContext
class XMLReplacementImageContext final : public SvXMLImportContext
{
css::uno::Reference < css::io::XOutputStream > m_xBase64Stream;
css::uno::Reference < css::beans::XPropertySet > m_xPropSet;

View File

@ -30,7 +30,7 @@ namespace com { namespace sun { namespace star {
class SvXMLImport;
class XMLEventsImportContext;
class XMLScriptContextFactory : public XMLEventContextFactory
class XMLScriptContextFactory final : public XMLEventContextFactory
{
public:
XMLScriptContextFactory();

View File

@ -29,7 +29,7 @@ namespace com { namespace sun { namespace star {
namespace beans { struct PropertyValue; }
} } }
class XMLScriptExportHandler : public XMLEventExportHandler
class XMLScriptExportHandler final : public XMLEventExportHandler
{
public:
XMLScriptExportHandler();

View File

@ -31,7 +31,7 @@ class SvXMLImport;
class XMLEventsImportContext;
class XMLStarBasicContextFactory : public XMLEventContextFactory
class XMLStarBasicContextFactory final : public XMLEventContextFactory
{
public:
XMLStarBasicContextFactory();

View File

@ -29,7 +29,7 @@ namespace com { namespace sun { namespace star {
namespace beans { struct PropertyValue; }
} } }
class XMLStarBasicExportHandler : public XMLEventExportHandler
class XMLStarBasicExportHandler final : public XMLEventExportHandler
{
public:
XMLStarBasicExportHandler();

View File

@ -30,7 +30,7 @@
* Import all text into a string buffer. Paragraph elements (<text:p>)
* are recognized and cause a return character (0x0a) to be added.
*/
class XMLStringBufferImportContext : public SvXMLImportContext
class XMLStringBufferImportContext final : public SvXMLImportContext
{
OUStringBuffer& rTextBuffer;

View File

@ -32,7 +32,7 @@ class SvXMLTokenMap;
typedef std::vector<rtl::Reference<XMLTextColumnContext_Impl>> XMLTextColumnsArray_Impl;
class XMLTextColumnsContext :public XMLElementPropertyContext
class XMLTextColumnsContext final :public XMLElementPropertyContext
{
std::unique_ptr<XMLTextColumnsArray_Impl> pColumns;
rtl::Reference<XMLTextColumnSepContext_Impl> mxColumnSep;

View File

@ -25,7 +25,7 @@
/**
PropertyHandler for the XML-data-type:
*/
class XMLTextColumnsPropertyHandler : public XMLPropertyHandler
class XMLTextColumnsPropertyHandler final : public XMLPropertyHandler
{
public:
virtual ~XMLTextColumnsPropertyHandler () override;

View File

@ -27,7 +27,7 @@ namespace com { namespace sun { namespace star {
namespace beans { class XPropertySet; }
} } }
class XMLTextHeaderFooterContext: public SvXMLImportContext
class XMLTextHeaderFooterContext final : public SvXMLImportContext
{
css::uno::Reference< css::text::XTextCursor > xOldTextCursor;
css::uno::Reference< css::beans::XPropertySet > xPropSet;

View File

@ -32,7 +32,7 @@ namespace xmloff
{
class AnimationsImportHelperImpl;
class AnimationNodeContext : public SvXMLImportContext
class AnimationNodeContext final : public SvXMLImportContext
{
std::shared_ptr<AnimationsImportHelperImpl> mpHelper;
css::uno::Reference< css::animations::XAnimationNode > mxNode;

View File

@ -28,7 +28,7 @@ class AnimImpImpl;
// presentations:animations
class XMLAnimationsContext : public SvXMLImportContext
class XMLAnimationsContext final : public SvXMLImportContext
{
std::shared_ptr<AnimImpImpl> mpImpl;

View File

@ -24,7 +24,7 @@
// graphic property Stroke
class XMLDurationPropertyHdl : public XMLPropertyHandler
class XMLDurationPropertyHdl final : public XMLPropertyHandler
{
public:
virtual ~XMLDurationPropertyHdl() override;
@ -33,7 +33,7 @@ public:
};
class SvXMLImport;
class XMLOpacityPropertyHdl : public XMLPropertyHandler
class XMLOpacityPropertyHdl final : public XMLPropertyHandler
{
private:
SvXMLImport* const mpImport;
@ -44,7 +44,7 @@ public:
virtual bool exportXML( OUString& rStrExpValue, const css::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const override;
};
class XMLTextAnimationStepPropertyHdl : public XMLPropertyHandler
class XMLTextAnimationStepPropertyHdl final : public XMLPropertyHandler
{
public:
virtual ~XMLTextAnimationStepPropertyHdl() override;
@ -53,7 +53,7 @@ public:
};
class SvXMLExport;
class XMLDateTimeFormatHdl : public XMLPropertyHandler
class XMLDateTimeFormatHdl final : public XMLPropertyHandler
{
private:
SvXMLExport* mpExport;

View File

@ -213,7 +213,7 @@ protected:
};
/** inherit sender field because of fixed attribute in ProcessAttributes */
class XMLAuthorFieldImportContext : public XMLSenderFieldImportContext
class XMLAuthorFieldImportContext final : public XMLSenderFieldImportContext
{
bool bAuthorFullName;
const OUString sPropertyFixed;
@ -228,7 +228,7 @@ public:
const OUString& sLocalName, /// element name w/o prefix
sal_uInt16 nToken); /// element token
protected:
private:
/// start element
virtual void StartElement(
const css::uno::Reference< css::xml::sax::XAttributeList> & xAttrList) override;
@ -242,7 +242,7 @@ protected:
const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
};
class XMLPlaceholderFieldImportContext : public XMLTextFieldImportContext
class XMLPlaceholderFieldImportContext final : public XMLTextFieldImportContext
{
const OUString sPropertyHint;
@ -258,7 +258,7 @@ public:
sal_uInt16 nPrfx, /// namespace prefix
const OUString& sLocalName); /// element name w/o prefix
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -307,7 +307,7 @@ public:
/** import date fields (<text:date>);
inherit from TimeField to reuse implementation */
class XMLDateFieldImportContext : public XMLTimeFieldImportContext
class XMLDateFieldImportContext final : public XMLTimeFieldImportContext
{
public:
@ -323,7 +323,7 @@ public:
};
/** import page continuation fields (<text:page-continuation-string>) */
class XMLPageContinuationImportContext : public XMLTextFieldImportContext
class XMLPageContinuationImportContext final : public XMLTextFieldImportContext
{
const OUString sPropertySubType;
const OUString sPropertyNumberingType;
@ -351,7 +351,7 @@ public:
};
/** import page number fields (<text:page-number>) */
class XMLPageNumberImportContext : public XMLTextFieldImportContext
class XMLPageNumberImportContext final : public XMLTextFieldImportContext
{
const OUString sPropertySubType;
const OUString sPropertyNumberingType;
@ -428,7 +428,7 @@ public:
};
/** import database name fields (<text:database-name>) */
class XMLDatabaseNameImportContext : public XMLDatabaseFieldImportContext
class XMLDatabaseNameImportContext final : public XMLDatabaseFieldImportContext
{
public:
@ -475,7 +475,7 @@ public:
};
/** import database select fields (<text:database-select>) */
class XMLDatabaseSelectImportContext : public XMLDatabaseNextImportContext
class XMLDatabaseSelectImportContext final : public XMLDatabaseNextImportContext
{
const OUString sPropertySetNumber;
sal_Int32 nNumber;
@ -499,7 +499,7 @@ public:
};
/** import database display number fields (<text:database-row-number>) */
class XMLDatabaseNumberImportContext : public XMLDatabaseFieldImportContext
class XMLDatabaseNumberImportContext final : public XMLDatabaseFieldImportContext
{
const OUString sPropertyNumberingType;
const OUString sPropertySetNumber;
@ -560,7 +560,7 @@ protected:
};
/** import docinfo fields with date or time attributes and numberformats */
class XMLDateTimeDocInfoImportContext : public XMLSimpleDocInfoImportContext
class XMLDateTimeDocInfoImportContext final : public XMLSimpleDocInfoImportContext
{
const OUString sPropertyNumberFormat;
const OUString sPropertyIsDate;
@ -580,7 +580,7 @@ public:
const OUString& sLocalName,
sal_uInt16 nToken);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -591,7 +591,7 @@ protected:
};
/** import revision field (<text:editing-cycles>) */
class XMLRevisionDocInfoImportContext : public XMLSimpleDocInfoImportContext
class XMLRevisionDocInfoImportContext final : public XMLSimpleDocInfoImportContext
{
public:
@ -601,14 +601,14 @@ public:
const OUString& sLocalName,
sal_uInt16 nToken);
protected:
private:
/// prepare XTextField for insertion into document
virtual void PrepareField(
const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
};
/** import user docinfo field (<text:user-defined>) */
class XMLUserDocInfoImportContext : public XMLSimpleDocInfoImportContext
class XMLUserDocInfoImportContext final : public XMLSimpleDocInfoImportContext
{
OUString aName;
const OUString sPropertyName;
@ -626,7 +626,7 @@ public:
const OUString& sLocalName,
sal_uInt16 nToken);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -635,7 +635,7 @@ protected:
};
/** import hidden paragraph fields (<text:hidden-paragraph>) */
class XMLHiddenParagraphImportContext : public XMLTextFieldImportContext
class XMLHiddenParagraphImportContext final : public XMLTextFieldImportContext
{
const OUString sPropertyCondition;
const OUString sPropertyIsHidden;
@ -650,7 +650,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -661,7 +661,7 @@ protected:
};
/** import conditional text fields (<text:conditional-text>) */
class XMLConditionalTextImportContext : public XMLTextFieldImportContext
class XMLConditionalTextImportContext final : public XMLTextFieldImportContext
{
const OUString sPropertyCondition;
const OUString sPropertyCurrentPresentation;
@ -682,7 +682,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -693,7 +693,7 @@ protected:
};
/** import conditional text fields (<text:hidden-text>) */
class XMLHiddenTextImportContext : public XMLTextFieldImportContext
class XMLHiddenTextImportContext final : public XMLTextFieldImportContext
{
const OUString sPropertyCondition;
const OUString sPropertyContent;
@ -713,7 +713,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -724,7 +724,7 @@ protected:
};
/** import file name fields (<text:file-name>) */
class XMLFileNameImportContext : public XMLTextFieldImportContext
class XMLFileNameImportContext final : public XMLTextFieldImportContext
{
const OUString sPropertyFixed;
const OUString sPropertyFileFormat;
@ -740,7 +740,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -751,7 +751,7 @@ protected:
};
/** import document template name fields (<text:template-name>) */
class XMLTemplateNameImportContext : public XMLTextFieldImportContext
class XMLTemplateNameImportContext final : public XMLTextFieldImportContext
{
const OUString sPropertyFileFormat;
@ -764,7 +764,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -775,7 +775,7 @@ protected:
};
/** import chapter fields (<text:chapter>) */
class XMLChapterImportContext : public XMLTextFieldImportContext
class XMLChapterImportContext final : public XMLTextFieldImportContext
{
sal_Int16 nFormat;
sal_Int8 nLevel;
@ -787,7 +787,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -798,7 +798,7 @@ protected:
};
/** import count fields (<text:[XXX]-count>) */
class XMLCountFieldImportContext : public XMLTextFieldImportContext
class XMLCountFieldImportContext final : public XMLTextFieldImportContext
{
const OUString sPropertyNumberingType;
@ -828,7 +828,7 @@ private:
};
/** import page variable fields (<text:get-page-variable>) */
class XMLPageVarGetFieldImportContext : public XMLTextFieldImportContext
class XMLPageVarGetFieldImportContext final : public XMLTextFieldImportContext
{
OUString sNumberFormat;
OUString sLetterSync;
@ -842,7 +842,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -853,7 +853,7 @@ protected:
};
/** import page variable fields (<text:get-page-variable>) */
class XMLPageVarSetFieldImportContext : public XMLTextFieldImportContext
class XMLPageVarSetFieldImportContext final : public XMLTextFieldImportContext
{
sal_Int16 nAdjust;
bool bActive;
@ -865,7 +865,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -876,7 +876,7 @@ protected:
};
/** import macro fields (<text:execute-macro>) */
class XMLMacroFieldImportContext : public XMLTextFieldImportContext
class XMLMacroFieldImportContext final : public XMLTextFieldImportContext
{
OUString sDescription;
SvXMLImportContextRef xEventContext;
@ -892,7 +892,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// for <office:events> children
virtual SvXMLImportContextRef CreateChildContext(
sal_uInt16 nPrefix,
@ -909,7 +909,7 @@ protected:
};
/** import reference fields (<text:reference-get>) */
class XMLReferenceFieldImportContext : public XMLTextFieldImportContext
class XMLReferenceFieldImportContext final : public XMLTextFieldImportContext
{
OUString sName;
OUString sLanguage;
@ -928,7 +928,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// start element
virtual void StartElement(
const css::uno::Reference<css::xml::sax::XAttributeList> & xAttrList) override;
@ -943,7 +943,7 @@ protected:
};
/** import dde field declaration container (<text:dde-connection-decls>) */
class XMLDdeFieldDeclsImportContext : public SvXMLImportContext
class XMLDdeFieldDeclsImportContext final : public SvXMLImportContext
{
public:
@ -958,7 +958,7 @@ public:
};
/** import dde field declaration (<text:dde-connection-decl>) */
class XMLDdeFieldDeclImportContext : public SvXMLImportContext
class XMLDdeFieldDeclImportContext final : public SvXMLImportContext
{
const SvXMLTokenMap& rTokenMap;
@ -975,7 +975,7 @@ public:
};
/** import dde fields (<text:dde-connection>) */
class XMLDdeFieldImportContext : public XMLTextFieldImportContext
class XMLDdeFieldImportContext final : public XMLTextFieldImportContext
{
OUString sName;
OUString const sPropertyContent;
@ -987,7 +987,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -1001,7 +1001,7 @@ protected:
};
/** import sheet name fields (Calc) dde fields (<text:sheet-name>) */
class XMLSheetNameImportContext : public XMLTextFieldImportContext
class XMLSheetNameImportContext final : public XMLTextFieldImportContext
{
public:
@ -1011,7 +1011,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// no attributes -> empty method
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -1022,7 +1022,7 @@ protected:
};
/** import page|slide name fields (<text:page-name>) */
class XMLPageNameFieldImportContext : public XMLTextFieldImportContext
class XMLPageNameFieldImportContext final : public XMLTextFieldImportContext
{
public:
@ -1042,7 +1042,7 @@ public:
};
/** import hyperlinks as URL fields (Calc, Impress, Draw) (<office:a>) */
class XMLUrlFieldImportContext : public XMLTextFieldImportContext
class XMLUrlFieldImportContext final : public XMLTextFieldImportContext
{
OUString sURL;
OUString sFrame;
@ -1055,7 +1055,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// no attributes -> empty method
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -1066,7 +1066,7 @@ protected:
};
/** import bibliography info fields (<text:bibliography-mark>) */
class XMLBibliographyFieldImportContext : public XMLTextFieldImportContext
class XMLBibliographyFieldImportContext final : public XMLTextFieldImportContext
{
::std::vector< css::beans::PropertyValue> aValues;
@ -1094,7 +1094,7 @@ private:
};
/** Import an annotation field (<text:annotation>) */
class XMLAnnotationImportContext : public XMLTextFieldImportContext
class XMLAnnotationImportContext final : public XMLTextFieldImportContext
{
OUStringBuffer aAuthorBuffer;
OUStringBuffer aInitialsBuffer;
@ -1117,7 +1117,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attributes
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -1134,7 +1134,7 @@ protected:
};
/** Import a script field (<text:script>) */
class XMLScriptImportContext : public XMLTextFieldImportContext
class XMLScriptImportContext final : public XMLTextFieldImportContext
{
OUString sContent;
OUString sScriptType;
@ -1148,7 +1148,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attributes
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -1159,7 +1159,7 @@ protected:
};
/** import measure fields (<text:measure>) */
class XMLMeasureFieldImportContext : public XMLTextFieldImportContext
class XMLMeasureFieldImportContext final : public XMLTextFieldImportContext
{
sal_Int16 mnKind;
@ -1170,7 +1170,7 @@ public:
sal_uInt16 nPrfx,
const OUString& sLocalName);
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -1181,7 +1181,7 @@ protected:
};
/** dropdown field (filter legacy) */
class XMLDropDownFieldImportContext : public XMLTextFieldImportContext
class XMLDropDownFieldImportContext final : public XMLTextFieldImportContext
{
std::vector<OUString> aLabels;
OUString sName;
@ -1204,7 +1204,7 @@ public:
const OUString& rLocalName,
const css::uno::Reference<css::xml::sax::XAttributeList >& xAttrList ) override;
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
const OUString& sAttrValue ) override;
@ -1215,7 +1215,7 @@ protected:
};
/** import header fields (<draw:header>) */
class XMLHeaderFieldImportContext : public XMLTextFieldImportContext
class XMLHeaderFieldImportContext final : public XMLTextFieldImportContext
{
public:
@ -1235,7 +1235,7 @@ public:
};
/** import footer fields (<draw:footer>) */
class XMLFooterFieldImportContext : public XMLTextFieldImportContext
class XMLFooterFieldImportContext final : public XMLTextFieldImportContext
{
public:
@ -1255,7 +1255,7 @@ public:
};
/** import footer fields (<draw:date-and-time>) */
class XMLDateTimeFieldImportContext : public XMLTextFieldImportContext
class XMLDateTimeFieldImportContext final : public XMLTextFieldImportContext
{
public:

View File

@ -170,7 +170,7 @@ protected:
/** import variable get fields (<text:variable-get>) */
class XMLVariableGetFieldImportContext : public XMLVarFieldImportContext
class XMLVariableGetFieldImportContext final : public XMLVarFieldImportContext
{
public:
@ -182,7 +182,7 @@ public:
const OUString& rLocalName); /// element name w/o prefix
protected:
private:
/// prepare XTextField for insertion into document
virtual void PrepareField(
const css::uno::Reference<
@ -191,7 +191,7 @@ protected:
/** import expression fields (<text:expression>) */
class XMLExpressionFieldImportContext : public XMLVarFieldImportContext
class XMLExpressionFieldImportContext final : public XMLVarFieldImportContext
{
public:
@ -201,14 +201,14 @@ public:
sal_uInt16 nPrfx, /// namespace prefix
const OUString& sLocalName); /// element name w/o prefix
protected:
private:
virtual void PrepareField(
const css::uno::Reference<
css::beans::XPropertySet> & xPropertySet) override;
};
/*** import text input fields (<text:text-input>) */
class XMLTextInputFieldImportContext : public XMLVarFieldImportContext
class XMLTextInputFieldImportContext final : public XMLVarFieldImportContext
{
public:
@ -218,7 +218,7 @@ public:
sal_uInt16 nPrfx, /// namespace prefix
const OUString& sLocalName); /// element name w/o prefix
protected:
private:
virtual void PrepareField(
const css::uno::Reference<
css::beans::XPropertySet> & xPropertySet) override;
@ -272,7 +272,7 @@ protected:
/** import variable set fields (<text:variable-set>) */
class XMLVariableSetFieldImportContext : public XMLSetVarFieldImportContext
class XMLVariableSetFieldImportContext final : public XMLSetVarFieldImportContext
{
public:
@ -282,7 +282,7 @@ public:
sal_uInt16 nPrfx, /// namespace prefix
const OUString& rLocalName); /// element name w/o prefix
protected:
private:
/// prepare XTextField for insertion into document
virtual void PrepareField(
const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
@ -290,7 +290,7 @@ protected:
/** variable input fields (<text:variable-input>) */
class XMLVariableInputFieldImportContext : public XMLSetVarFieldImportContext
class XMLVariableInputFieldImportContext final : public XMLSetVarFieldImportContext
{
public:
@ -301,7 +301,7 @@ public:
sal_uInt16 nPrfx, /// namespace prefix
const OUString& rLocalName); /// element name w/o prefix
protected:
private:
/// prepare XTextField for insertion into document
virtual void PrepareField(
@ -310,7 +310,7 @@ protected:
/** user fields (<text:user-field-get>) */
class XMLUserFieldImportContext : public XMLSetVarFieldImportContext
class XMLUserFieldImportContext final : public XMLSetVarFieldImportContext
{
public:
@ -324,7 +324,7 @@ public:
};
/** user input fields (<text:user-field-input>) */
class XMLUserFieldInputImportContext : public XMLVarFieldImportContext
class XMLUserFieldInputImportContext final : public XMLVarFieldImportContext
{
public:
@ -342,7 +342,7 @@ public:
/** sequence fields (<text:sequence>) */
class XMLSequenceFieldImportContext : public XMLSetVarFieldImportContext
class XMLSequenceFieldImportContext final : public XMLSetVarFieldImportContext
{
OUString sNumFormat;
OUString sNumFormatSync;
@ -359,7 +359,7 @@ public:
sal_uInt16 nPrfx, /// namespace prefix
const OUString& rLocalName); /// element name w/o prefix
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
@ -375,7 +375,7 @@ protected:
* variable declaration container for all variable fields
* (variable-decls, user-field-decls, sequence-decls)
*/
class XMLVariableDeclsImportContext : public SvXMLImportContext
class XMLVariableDeclsImportContext final : public SvXMLImportContext
{
enum VarType const eVarDeclsContextType;
XMLTextImportHelper& rImportHelper;
@ -400,7 +400,7 @@ public:
* variable field declarations
* (variable-decl, user-field-decl, sequence-decl)
*/
class XMLVariableDeclImportContext : public SvXMLImportContext
class XMLVariableDeclImportContext final : public SvXMLImportContext
{
XMLValueImportHelper aValueHelper;
sal_Unicode cSeparationChar;
@ -426,7 +426,7 @@ public:
/** import table formula fields (deprecated; for Writer 2.0 compatibility) */
class XMLTableFormulaImportContext : public XMLTextFieldImportContext
class XMLTableFormulaImportContext final : public XMLTextFieldImportContext
{
XMLValueImportHelper aValueHelper;
@ -440,7 +440,7 @@ public:
sal_uInt16 nPrfx, /// namespace prefix
const OUString& rLocalName); /// element name w/o prefix
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,
@ -453,7 +453,7 @@ protected:
/** import database display fields (<text:database-display>) */
class XMLDatabaseDisplayImportContext : public XMLDatabaseFieldImportContext
class XMLDatabaseDisplayImportContext final : public XMLDatabaseFieldImportContext
{
XMLValueImportHelper aValueHelper;
@ -472,7 +472,7 @@ public:
sal_uInt16 nPrfx, /// namespace prefix
const OUString& rLocalName); /// element name w/o prefix
protected:
private:
/// process attribute values
virtual void ProcessAttribute( sal_uInt16 nAttrToken,

View File

@ -29,7 +29,7 @@ class SvxXMLTabStopContext_Impl;
typedef std::vector<rtl::Reference<SvxXMLTabStopContext_Impl>> SvxXMLTabStopArray_Impl;
class SvxXMLTabStopImportContext : public XMLElementPropertyContext
class SvxXMLTabStopImportContext final : public XMLElementPropertyContext
{
private:
std::unique_ptr<SvxXMLTabStopArray_Impl> mpTabStops;

View File

@ -30,7 +30,7 @@
#include <xmloff/xmlimp.hxx>
#include <xmloff/xmltoken.hxx>
class XMLVersionListExport : public SvXMLExport
class XMLVersionListExport final : public SvXMLExport
{
private:
const css::uno::Sequence < css::util::RevisionTag >& maVersions;
@ -47,13 +47,11 @@ public:
void ExportContent_() override {}
};
class XMLVersionListImport : public SvXMLImport
class XMLVersionListImport final : public SvXMLImport
{
private:
css::uno::Sequence < css::util::RevisionTag >& maVersions;
protected:
virtual SvXMLImportContext *CreateFastContext( sal_Int32 Element,
const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList >& xAttrList ) override;
@ -68,7 +66,7 @@ public:
GetList() { return maVersions; }
};
class XMLVersionListContext : public SvXMLImportContext
class XMLVersionListContext final : public SvXMLImportContext
{
private:
XMLVersionListImport & GetImport() { return static_cast<XMLVersionListImport&>(SvXMLImportContext::GetImport()); }
@ -84,7 +82,7 @@ public:
const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttribs) override;
};
class XMLVersionContext: public SvXMLImportContext
class XMLVersionContext final : public SvXMLImportContext
{
private:
static bool ParseISODateTimeString(
@ -99,7 +97,7 @@ public:
virtual ~XMLVersionContext() override;
};
class XMLVersionListPersistence : public ::cppu::WeakImplHelper< css::document::XDocumentRevisionListPersistence, css::lang::XServiceInfo >
class XMLVersionListPersistence final : public ::cppu::WeakImplHelper< css::document::XDocumentRevisionListPersistence, css::lang::XServiceInfo >
{
public:
virtual css::uno::Sequence< css::util::RevisionTag > SAL_CALL load( const css::uno::Reference< css::embed::XStorage >& Storage ) override;