summaryrefslogtreecommitdiff
path: root/include/oox
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-07 12:23:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-07 12:36:00 +0100
commit6a161173803a4ba619a95b9c8da1f00e376819bb (patch)
tree7994105fc88f709a34822681c7dc57471adaf60b /include/oox
parente59c048e1172998efe363f8e51932f15a44c5405 (diff)
loplugin:deletedspecial
Change-Id: I37eb6c976779aeec829d312920ab1d18884c0f2f
Diffstat (limited to 'include/oox')
-rw-r--r--include/oox/core/binarycodec.hxx11
-rw-r--r--include/oox/core/contexthandler.hxx2
-rw-r--r--include/oox/core/contexthandler2.hxx2
-rw-r--r--include/oox/drawingml/chart/chartconverter.hxx4
-rw-r--r--include/oox/dump/dumperbase.hxx16
-rw-r--r--include/oox/helper/binarystreambase.hxx4
-rw-r--r--include/oox/helper/storagebase.hxx4
-rw-r--r--include/oox/ole/olehelper.hxx21
-rw-r--r--include/oox/ole/vbahelper.hxx13
-rw-r--r--include/oox/ole/vbaproject.hxx4
-rw-r--r--include/oox/vml/vmlformatting.hxx23
11 files changed, 42 insertions, 62 deletions
diff --git a/include/oox/core/binarycodec.hxx b/include/oox/core/binarycodec.hxx
index 5fb1682cb63d..b2be50facc83 100644
--- a/include/oox/core/binarycodec.hxx
+++ b/include/oox/core/binarycodec.hxx
@@ -34,16 +34,11 @@ namespace core {
-class OOX_DLLPUBLIC CodecHelper
+namespace CodecHelper
{
-public:
/** Returns the password hash if it is in the required 16-bit limit. */
- static sal_uInt16 getPasswordHash( const AttributeList& rAttribs, sal_Int32 nElement );
-
-private:
- CodecHelper();
- ~CodecHelper();
-};
+ OOX_DLLPUBLIC sal_uInt16 getPasswordHash( const AttributeList& rAttribs, sal_Int32 nElement );
+}
diff --git a/include/oox/core/contexthandler.hxx b/include/oox/core/contexthandler.hxx
index f2479bff352e..20c7c8526719 100644
--- a/include/oox/core/contexthandler.hxx
+++ b/include/oox/core/contexthandler.hxx
@@ -102,7 +102,7 @@ protected:
#endif
private:
- ContextHandler& operator=( const ContextHandler& );
+ ContextHandler& operator=( const ContextHandler& ) SAL_DELETED_FUNCTION;
private:
FragmentBaseDataRef mxBaseData; ///< Base data of the fragment.
diff --git a/include/oox/core/contexthandler2.hxx b/include/oox/core/contexthandler2.hxx
index 4a1b2acb2a22..551e4d4e85a5 100644
--- a/include/oox/core/contexthandler2.hxx
+++ b/include/oox/core/contexthandler2.hxx
@@ -194,7 +194,7 @@ protected:
void implEndRecord( sal_Int32 nRecId );
private:
- ContextHandler2Helper& operator=( const ContextHandler2Helper& );
+ ContextHandler2Helper& operator=( const ContextHandler2Helper& ) SAL_DELETED_FUNCTION;
ElementInfo& pushElementInfo( sal_Int32 nElement );
void popElementInfo();
diff --git a/include/oox/drawingml/chart/chartconverter.hxx b/include/oox/drawingml/chart/chartconverter.hxx
index bbfe0ed4290f..2be69748e99e 100644
--- a/include/oox/drawingml/chart/chartconverter.hxx
+++ b/include/oox/drawingml/chart/chartconverter.hxx
@@ -89,8 +89,8 @@ public:
const DataSequenceModel& rDataSeq, const OUString& rRole );
private:
- ChartConverter( const ChartConverter& );
- ChartConverter& operator=( const ChartConverter& );
+ ChartConverter( const ChartConverter& ) SAL_DELETED_FUNCTION;
+ ChartConverter& operator=( const ChartConverter& ) SAL_DELETED_FUNCTION;
};
diff --git a/include/oox/dump/dumperbase.hxx b/include/oox/dump/dumperbase.hxx
index 7abfbb39c71e..5bdb01f05d02 100644
--- a/include/oox/dump/dumperbase.hxx
+++ b/include/oox/dump/dumperbase.hxx
@@ -1103,8 +1103,8 @@ public:
explicit IndentGuard( const OutputRef& rxOut ) : mrOut( *rxOut ) { mrOut.incIndent(); }
~IndentGuard() { mrOut.decIndent(); }
private:
- IndentGuard( const IndentGuard& );
- IndentGuard& operator=( const IndentGuard& );
+ IndentGuard( const IndentGuard& ) SAL_DELETED_FUNCTION;
+ IndentGuard& operator=( const IndentGuard& ) SAL_DELETED_FUNCTION;
private:
Output& mrOut;
};
@@ -1127,8 +1127,8 @@ public:
void tab() { mrOut.tab(); }
void tab( size_t nCol ) { mrOut.tab( nCol ); }
private:
- TableGuard( const TableGuard& );
- TableGuard& operator=( const TableGuard& );
+ TableGuard( const TableGuard& ) SAL_DELETED_FUNCTION;
+ TableGuard& operator=( const TableGuard& ) SAL_DELETED_FUNCTION;
private:
Output& mrOut;
};
@@ -1143,8 +1143,8 @@ public:
~ItemGuard() { mrOut.endItem(); }
void cont() { mrOut.contItem(); }
private:
- ItemGuard( const ItemGuard& );
- ItemGuard& operator=( const ItemGuard& );
+ ItemGuard( const ItemGuard& ) SAL_DELETED_FUNCTION;
+ ItemGuard& operator=( const ItemGuard& ) SAL_DELETED_FUNCTION;
private:
Output& mrOut;
};
@@ -1157,8 +1157,8 @@ public:
explicit MultiItemsGuard( const OutputRef& rxOut ) : mrOut( *rxOut ) { mrOut.startMultiItems(); }
~MultiItemsGuard() { mrOut.endMultiItems(); }
private:
- MultiItemsGuard( const MultiItemsGuard& );
- MultiItemsGuard& operator=( const MultiItemsGuard& );
+ MultiItemsGuard( const MultiItemsGuard& ) SAL_DELETED_FUNCTION;
+ MultiItemsGuard& operator=( const MultiItemsGuard& ) SAL_DELETED_FUNCTION;
private:
Output& mrOut;
};
diff --git a/include/oox/helper/binarystreambase.hxx b/include/oox/helper/binarystreambase.hxx
index fc7f3c39bc0e..d8f4f0ee35a9 100644
--- a/include/oox/helper/binarystreambase.hxx
+++ b/include/oox/helper/binarystreambase.hxx
@@ -111,8 +111,8 @@ protected:
explicit BinaryStreamBase( bool bSeekable ) : mbEof( false ), mbSeekable( bSeekable ) {}
private:
- BinaryStreamBase( const BinaryStreamBase& );
- BinaryStreamBase& operator=( const BinaryStreamBase& );
+ BinaryStreamBase( const BinaryStreamBase& ) SAL_DELETED_FUNCTION;
+ BinaryStreamBase& operator=( const BinaryStreamBase& ) SAL_DELETED_FUNCTION;
protected:
bool mbEof; ///< End of stream flag.
diff --git a/include/oox/helper/storagebase.hxx b/include/oox/helper/storagebase.hxx
index b46929e57b46..2e3ef05333a9 100644
--- a/include/oox/helper/storagebase.hxx
+++ b/include/oox/helper/storagebase.hxx
@@ -138,8 +138,8 @@ protected:
explicit StorageBase( const StorageBase& rParentStorage, const OUString& rStorageName, bool bReadOnly );
private:
- StorageBase( const StorageBase& );
- StorageBase& operator=( const StorageBase& );
+ StorageBase( const StorageBase& ) SAL_DELETED_FUNCTION;
+ StorageBase& operator=( const StorageBase& ) SAL_DELETED_FUNCTION;
/** Returns true, if the object represents a valid storage. */
virtual bool implIsStorage() const = 0;
diff --git a/include/oox/ole/olehelper.hxx b/include/oox/ole/olehelper.hxx
index 86f3321863b8..167a7d285be0 100644
--- a/include/oox/ole/olehelper.hxx
+++ b/include/oox/ole/olehelper.hxx
@@ -100,34 +100,33 @@ struct StdHlinkInfo
/** Static helper functions for OLE import/export. */
-class OOX_DLLPUBLIC OleHelper
+namespace OleHelper
{
-public:
/** Returns the UNO RGB color from the passed encoded OLE color.
@param bDefaultColorBgr
True = OLE default color type is treated as BGR color.
False = OLE default color type is treated as palette color.
*/
- static sal_Int32 decodeOleColor(
+ OOX_DLLPUBLIC sal_Int32 decodeOleColor(
const GraphicHelper& rGraphicHelper,
sal_uInt32 nOleColor,
bool bDefaultColorBgr = true );
/** Returns the OLE color from the passed UNO RGB color.
*/
- static sal_uInt32 encodeOleColor( sal_Int32 nRgbColor );
+ OOX_DLLPUBLIC sal_uInt32 encodeOleColor( sal_Int32 nRgbColor );
/** Imports a GUID from the passed binary stream and returns its string
representation (in uppercase characters).
*/
- static OUString importGuid( BinaryInputStream& rInStrm );
- static void exportGuid( BinaryOutputStream& rOutStrm, const SvGlobalName& rId );
+ OOX_DLLPUBLIC OUString importGuid( BinaryInputStream& rInStrm );
+ OOX_DLLPUBLIC void exportGuid( BinaryOutputStream& rOutStrm, const SvGlobalName& rId );
/** Imports an OLE StdFont font structure from the current position of the
passed binary stream.
*/
- static bool importStdFont(
+ OOX_DLLPUBLIC bool importStdFont(
StdFontInfo& orFontInfo,
BinaryInputStream& rInStrm,
bool bWithGuid );
@@ -135,15 +134,11 @@ public:
/** Imports an OLE StdPic picture from the current position of the passed
binary stream.
*/
- static bool importStdPic(
+ OOX_DLLPUBLIC bool importStdPic(
StreamDataSequence& orGraphicData,
BinaryInputStream& rInStrm,
bool bWithGuid );
-
-private:
- OleHelper(); // not implemented
- ~OleHelper(); // not implemented
-};
+}
// ideally it would be great to get rid of SvxMSConvertOCXControls
// however msfilter/source/msfilter/svdfppt.cxx still uses
diff --git a/include/oox/ole/vbahelper.hxx b/include/oox/ole/vbahelper.hxx
index 3f9202f5b1cb..75ad1b57e1a9 100644
--- a/include/oox/ole/vbahelper.hxx
+++ b/include/oox/ole/vbahelper.hxx
@@ -52,9 +52,8 @@ const sal_uInt16 VBA_ID_PROJECTVERSION = 0x0009;
/** Static helper functions for the VBA filters. */
-class VbaHelper
+namespace VbaHelper
{
-public:
/** Reads the next record from the VBA directory stream 'dir'.
@param rnRecId (out parameter) The record identifier of the new record.
@@ -64,7 +63,7 @@ public:
@return True = next record successfully read. False on any error, or
if the stream is EOF.
*/
- static bool readDirRecord(
+ bool readDirRecord(
sal_uInt16& rnRecId,
StreamDataSequence& rRecData,
BinaryInputStream& rInStrm );
@@ -78,15 +77,11 @@ public:
@return True = Equality sign separator found, and the returned key and
value are not empty. False otherwise.
*/
- static bool extractKeyValue(
+ bool extractKeyValue(
OUString& rKey,
OUString& rValue,
const OUString& rKeyValue );
-
-private:
- VbaHelper();
- ~VbaHelper();
-};
+}
diff --git a/include/oox/ole/vbaproject.hxx b/include/oox/ole/vbaproject.hxx
index 72a225b55b22..ff2bf71d871e 100644
--- a/include/oox/ole/vbaproject.hxx
+++ b/include/oox/ole/vbaproject.hxx
@@ -155,8 +155,8 @@ protected:
void finalizeImport();
private:
- VbaProject( const VbaProject& );
- VbaProject& operator=( const VbaProject& );
+ VbaProject( const VbaProject& ) SAL_DELETED_FUNCTION;
+ VbaProject& operator=( const VbaProject& ) SAL_DELETED_FUNCTION;
/** Returns the Basic or dialog library container. */
::com::sun::star::uno::Reference< ::com::sun::star::script::XLibraryContainer >
diff --git a/include/oox/vml/vmlformatting.hxx b/include/oox/vml/vmlformatting.hxx
index 070fb2a7e41f..daaaef965cbc 100644
--- a/include/oox/vml/vmlformatting.hxx
+++ b/include/oox/vml/vmlformatting.hxx
@@ -44,19 +44,18 @@ typedef ::std::pair< double, double > DoublePair;
-class OOX_DLLPUBLIC ConversionHelper
+namespace ConversionHelper
{
-public:
/** Returns two values contained in rValue separated by cSep.
*/
- static bool separatePair(
+ OOX_DLLPUBLIC bool separatePair(
OUString& orValue1, OUString& orValue2,
const OUString& rValue, sal_Unicode cSep );
/** Returns the boolean value from the passed string of a VML attribute.
Supported values: 'f', 't', 'false', 'true'. False for anything else.
*/
- static bool decodeBool( const OUString& rValue );
+ OOX_DLLPUBLIC bool decodeBool( const OUString& rValue );
/** Converts the passed VML percentage measure string to a normalized
floating-point value.
@@ -67,7 +66,7 @@ public:
is present, the value will be divided by 100. If the 'f' sign is present,
the value will be divided by 65536.
*/
- static double decodePercent(
+ OOX_DLLPUBLIC double decodePercent(
const OUString& rValue,
double fDefValue );
@@ -89,7 +88,7 @@ public:
@param bDefaultAsPixel Set to true if omitted measure unit means
pixel. Set to false if omitted measure unit means EMU.
*/
- static sal_Int64 decodeMeasureToEmu(
+ OOX_DLLPUBLIC sal_Int64 decodeMeasureToEmu(
const GraphicHelper& rGraphicHelper,
const OUString& rValue,
sal_Int32 nRefValue,
@@ -104,7 +103,7 @@ public:
@param bPixelX See above.
@param bDefaultAsPixel See above.
*/
- static sal_Int32 decodeMeasureToHmm(
+ OOX_DLLPUBLIC sal_Int32 decodeMeasureToHmm(
const GraphicHelper& rGraphicHelper,
const OUString& rValue,
sal_Int32 nRefValue,
@@ -133,7 +132,7 @@ public:
@return The resulting DrawingML color.
*/
- static ::oox::drawingml::Color decodeColor(
+ OOX_DLLPUBLIC ::oox::drawingml::Color decodeColor(
const GraphicHelper& rGraphicHelper,
const OptValue< OUString >& roVmlColor,
const OptValue< double >& roVmlOpacity,
@@ -152,15 +151,11 @@ public:
@param rGraphicHelper See above.
*/
- static void decodeVmlPath(
+ OOX_DLLPUBLIC void decodeVmlPath(
::std::vector< ::std::vector< ::com::sun::star::awt::Point > >& rPoints,
::std::vector< ::std::vector< ::com::sun::star::drawing::PolygonFlags > >& rFlags,
const OUString& rPath );
-
-private:
- ConversionHelper();
- ~ConversionHelper();
-};
+}