summaryrefslogtreecommitdiff
path: root/starmath/source/node.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r--starmath/source/node.cxx11
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; }
};