diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-01-08 23:08:34 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-01-09 00:00:47 +0100 |
commit | 2f69e16c723aab48ad59d17397d8946ec0a48138 (patch) | |
tree | f59943e7a27ad60eda30cab8cdc3e8e716401db2 /include/xmloff | |
parent | d7bebc89c19d70344a8d71c729bbcb3a59004114 (diff) |
override the overloading of "overload" to decrease cognitive (over-)load
Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
Diffstat (limited to 'include/xmloff')
-rw-r--r-- | include/xmloff/prstylei.hxx | 4 | ||||
-rw-r--r-- | include/xmloff/txtstyli.hxx | 2 | ||||
-rw-r--r-- | include/xmloff/xmlexp.hxx | 28 | ||||
-rw-r--r-- | include/xmloff/xmlmultiimagehelper.hxx | 2 | ||||
-rw-r--r-- | include/xmloff/xmlnume.hxx | 3 | ||||
-rw-r--r-- | include/xmloff/xmlstyle.hxx | 2 |
6 files changed, 19 insertions, 22 deletions
diff --git a/include/xmloff/prstylei.hxx b/include/xmloff/prstylei.hxx index 6f85fb1af756..185e6bff21ad 100644 --- a/include/xmloff/prstylei.hxx +++ b/include/xmloff/prstylei.hxx @@ -89,9 +89,9 @@ protected: SvXMLStylesContext *GetStyles() { return static_cast<SvXMLStylesContext *>(&mxStyles); } ::std::vector< XMLPropertyState > & GetProperties() { return maProperties; } - // This methos my be overloaded to create a new style. Its called by + // Override this method to create a new style. It's called by // CreateInsert to create a style if a style with the requested family and - // name couldn't be found. The st + // name couldn't be found. virtual ::com::sun::star::uno::Reference < ::com::sun::star::style::XStyle > Create(); diff --git a/include/xmloff/txtstyli.hxx b/include/xmloff/txtstyli.hxx index d38a09064f4d..4c06d711972e 100644 --- a/include/xmloff/txtstyli.hxx +++ b/include/xmloff/txtstyli.hxx @@ -96,7 +96,7 @@ public: virtual void Finish( bool bOverwrite ) SAL_OVERRIDE; virtual void SetDefaults() SAL_OVERRIDE; - // overload FillPropertySet, so we can get at the combined characters + // override FillPropertySet, so we can get at the combined characters virtual void FillPropertySet( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & rPropSet ) SAL_OVERRIDE; diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx index 747594250fa0..111fcae5345f 100644 --- a/include/xmloff/xmlexp.hxx +++ b/include/xmloff/xmlexp.hxx @@ -191,33 +191,31 @@ protected: // get a new namespave map (used in starmath to have a default namespace) void ResetNamespaceMap(); - // This method can be overloaded to export the content of <office:meta>. - // There is a default implementation. + /// Override this method to export the content of <office:meta>. + /// There is a default implementation. virtual void _ExportMeta(); - // This method can be overloaded to export the content of <office:scripts>. - // There is a default implementation. + /// Override this method to export the content of <office:scripts>. + /// There is a default implementation. virtual void _ExportScripts(); - // This method can be overloaded to export the font declarations - // The default implementation will export the contents of the - // XMLFontAutoStylePool if it has been created. + /// Override this method to export the font declarations + /// The default implementation will export the contents of the + /// XMLFontAutoStylePool if it has been created. virtual void _ExportFontDecls(); - // This method should be overloaded to export the content of <style:styles>. - // If bUsed is set, used styles should be exported only. - // Overloaded Methods must call this method ! + /// Override this method to export the content of <style:styles>. + /// If bUsed is set, used styles should be exported only. + /// Overriding Methods must call this method ! virtual void _ExportStyles( bool bUsed ); - // This method must be overloaded to export the contents of - // <style:auto-styles> + /// Override this method to export the contents of <style:auto-styles>. virtual void _ExportAutoStyles() = 0; - // This method must be overloaded to export the contents of - // <style:master-styles> + /// Override this method to export the contents of <style:master-styles>. virtual void _ExportMasterStyles() = 0; - // This method must be overloaded to export the content of <office:body>. + /// Override this method to export the content of <office:body>. virtual void _ExportContent() = 0; OUString GetSourceShellID() const; diff --git a/include/xmloff/xmlmultiimagehelper.hxx b/include/xmloff/xmlmultiimagehelper.hxx index d97a7038fe36..c15bdbd33bf5 100644 --- a/include/xmloff/xmlmultiimagehelper.hxx +++ b/include/xmloff/xmlmultiimagehelper.hxx @@ -32,7 +32,7 @@ private: bool mbSupportsMultipleContents; protected: - /// helper to get the created xShape instance, needs to be overloaded + /// helper to get the created xShape instance, override this virtual OUString getGraphicURLFromImportContext(const SvXMLImportContext& rContext) const = 0; virtual void removeGraphicFromImportContext(const SvXMLImportContext& rContext) const = 0; diff --git a/include/xmloff/xmlnume.hxx b/include/xmloff/xmlnume.hxx index 761872cbd5e6..2301e00df6ed 100644 --- a/include/xmloff/xmlnume.hxx +++ b/include/xmloff/xmlnume.hxx @@ -57,8 +57,7 @@ class XMLOFF_DLLPUBLIC SvxXMLNumRuleExport protected: - // This method may be overloaded to add attributes to the <list-style> - // element. + /// Override this to add attributes to the <list-style> element. SAL_DLLPRIVATE virtual void AddListStyleAttributes(); SAL_DLLPRIVATE bool exportStyle( const ::com::sun::star::uno::Reference< diff --git a/include/xmloff/xmlstyle.hxx b/include/xmloff/xmlstyle.hxx index 1d757b8145fc..7b8a356aa2a1 100644 --- a/include/xmloff/xmlstyle.hxx +++ b/include/xmloff/xmlstyle.hxx @@ -230,7 +230,7 @@ public: const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList ) SAL_OVERRIDE; - // This method must be overloaded to insert styles into the document. + // Override this method to insert styles into the document. virtual void EndElement() SAL_OVERRIDE; // This allows to add an SvXMLStyleContext to this context from extern |