summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/xehelper.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/xehelper.hxx
parente4980a90c67e84d498b71cbeb17ad7571157813b (diff)
Replace ScfNoInstance with boost::noncopyable and private constructor.
Diffstat (limited to 'sc/source/filter/inc/xehelper.hxx')
-rw-r--r--sc/source/filter/inc/xehelper.hxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/sc/source/filter/inc/xehelper.hxx b/sc/source/filter/inc/xehelper.hxx
index 69259e3c50f6..3df5374cb5ce 100644
--- a/sc/source/filter/inc/xehelper.hxx
+++ b/sc/source/filter/inc/xehelper.hxx
@@ -220,7 +220,7 @@ class ScPatternAttr;
/** This class provides methods to create an XclExpString.
@descr The string can be created from an edit engine text object or
directly from a Calc edit cell. */
-class XclExpStringHelper : ScfNoInstance
+class XclExpStringHelper : boost::noncopyable
{
public:
/** Creates a new unformatted string from the passed string.
@@ -330,6 +330,12 @@ public:
/** Returns the script type first text portion different to WEAK, or the system
default script type, if there is only weak script in the passed string. */
static sal_Int16 GetLeadingScriptType( const XclExpRoot& rRoot, const String& rString );
+
+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 */
+ XclExpStringHelper();
};
// Header/footer conversion ===================================================
@@ -398,7 +404,7 @@ private:
/** This class contains static methods to encode a file URL.
@descr Excel stores URLs in a format that contains special control characters,
i.e. for directory separators or volume names. */
-class XclExpUrlHelper : ScfNoInstance
+class XclExpUrlHelper : boost::noncopyable
{
public:
/** Encodes and returns the URL passed in rAbsUrl to an Excel like URL.
@@ -406,6 +412,12 @@ public:
static String EncodeUrl( const XclExpRoot& rRoot, const String& rAbsUrl, const String* pTableName = 0 );
/** Encodes and returns the passed DDE link to an Excel like DDE link. */
static String EncodeDde( const String& rApplic, const String rTopic );
+
+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 */
+ XclExpUrlHelper();
};
// ----------------------------------------------------------------------------