summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/xihelper.hxx
diff options
context:
space:
mode:
authorNigel Hawkins <n.hawkins@gmx.com>2010-11-12 09:06:11 -0500
committerKohei Yoshida <kyoshida@novell.com>2010-11-12 09:07:54 -0500
commitbe0177fe4f91c2ea8022f931d99c6359f043043f (patch)
tree4d5e04c7be05adead562da57c2768a746a268c3c /sc/source/filter/inc/xihelper.hxx
parente4980a90c67e84d498b71cbeb17ad7571157813b (diff)
Replace ScfNoInstance with boost::noncopyable and private constructor.
Diffstat (limited to 'sc/source/filter/inc/xihelper.hxx')
-rw-r--r--sc/source/filter/inc/xihelper.hxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/sc/source/filter/inc/xihelper.hxx b/sc/source/filter/inc/xihelper.hxx
index eeb12e8691c7..f57145f370d9 100644
--- a/sc/source/filter/inc/xihelper.hxx
+++ b/sc/source/filter/inc/xihelper.hxx
@@ -112,7 +112,7 @@ class EditTextObject;
/** This class provides methods to convert an XclImpString.
@The string can be converted to an edit engine text object or directly
to a Calc edit cell. */
-class XclImpStringHelper : ScfNoInstance
+class XclImpStringHelper : boost::noncopyable
{
public:
/** Returns a new edit engine text object.
@@ -127,6 +127,11 @@ public:
const XclImpRoot& rRoot,
const XclImpString& rString,
sal_uInt16 nXFIndex = 0 );
+private:
+ /** We don't want anybody to instantiate this class, since it is just a
+ collection of static methods. To enforce this, the default constructor
+ is made private */
+ XclImpStringHelper();
};
// Header/footer conversion ===================================================
@@ -251,7 +256,7 @@ private:
/** This class contains static methods to decode an URL stored in an Excel file.
@descr Excel URLs can contain a sheet name, for instance: path\[test.xls]Sheet1
This sheet name will be extracted automatically. */
-class XclImpUrlHelper : ScfNoInstance
+class XclImpUrlHelper : boost::noncopyable
{
public:
/** Decodes an encoded external document URL with optional sheet name.
@@ -281,6 +286,12 @@ public:
For OLE object links: Decodes to class name and document URL.
@return true = decoding was successful, returned strings are valid (not empty). */
static bool DecodeLink( String& rApplic, String& rTopic, const String rEncUrl );
+
+private:
+ /** We don't want anybody to instantiate this class, since it is just a
+ collection of static methods. To enforce this, the default constructor
+ is made private */
+ XclImpUrlHelper();
};
// Cached values ==============================================================