diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-04-14 21:37:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-04-14 21:37:24 +0200 |
commit | 6880e9c97377940a4b967a68f4f936486b58face (patch) | |
tree | f36fbc97fb7fd685921d215300e13367602a44e8 /starmath/source/node.cxx | |
parent | 8f7a1111abb35bbb25daf6ace2add902f98361fc (diff) |
Clean up function declarations and some unused functions
Change-Id: Iace3118a3a8a6d494b89d4476ff3160652e940ba
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r-- | starmath/source/node.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 5b5baab9f462..24319df243f6 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -27,6 +27,7 @@ #include "mathtype.hxx" #include "visitors.hxx" +#include <boost/noncopyable.hpp> #include <comphelper/string.hxx> #include <tools/gen.hxx> #include <tools/fract.hxx> @@ -51,14 +52,10 @@ // Usually a MapMode of 1/100th mm will be used. -class SmTmpDevice +class SmTmpDevice: private boost::noncopyable { OutputDevice &rOutDev; - // disallow use of copy-constructor and assignment-operator - SmTmpDevice(const SmTmpDevice &rTmpDev); - SmTmpDevice & operator = (const SmTmpDevice &rTmpDev); - Color Impl_GetColor( const Color& rColor ); public: @@ -67,10 +64,6 @@ public: void SetFont(const Font &rNewFont); - void SetLineColor( const Color& rColor ) { rOutDev.SetLineColor( Impl_GetColor(rColor) ); } - void SetFillColor( const Color& rColor ) { rOutDev.SetFillColor( Impl_GetColor(rColor) ); } - void SetTextColor( const Color& rColor ) { rOutDev.SetTextColor( Impl_GetColor(rColor) ); } - operator OutputDevice & () { return rOutDev; } }; |