summaryrefslogtreecommitdiff
path: root/cppcanvas/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-04-17 23:52:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-04-18 13:03:21 +0100
commitfc435133c36760f741eb62641fb6834faaf34032 (patch)
tree4734079f91f74d15efefe8a78cedde5749d9ce36 /cppcanvas/source
parentf0ae0d8403acc86d8f72fb12fc6d1ce82c080662 (diff)
ImplText never instantiated
Diffstat (limited to 'cppcanvas/source')
-rw-r--r--cppcanvas/source/wrapper/basegfxfactory.cxx10
-rw-r--r--cppcanvas/source/wrapper/impltext.cxx96
-rw-r--r--cppcanvas/source/wrapper/impltext.hxx73
-rw-r--r--cppcanvas/source/wrapper/vclfactory.cxx1
4 files changed, 8 insertions, 172 deletions
diff --git a/cppcanvas/source/wrapper/basegfxfactory.cxx b/cppcanvas/source/wrapper/basegfxfactory.cxx
index 28f9dcf45319..97d42f905496 100644
--- a/cppcanvas/source/wrapper/basegfxfactory.cxx
+++ b/cppcanvas/source/wrapper/basegfxfactory.cxx
@@ -39,10 +39,16 @@
#include <cppcanvas/basegfxfactory.hxx>
+#include <com/sun/star/rendering/RenderState.hpp>
+#include <com/sun/star/rendering/StringContext.hpp>
+#include <com/sun/star/rendering/XCanvas.hpp>
+#include <com/sun/star/rendering/XCanvasFont.hpp>
+
+#include <cppcanvas/text.hxx>
+#include <canvasgraphichelper.hxx>
+
#include "implpolypolygon.hxx"
#include "implbitmap.hxx"
-#include "impltext.hxx"
-
using namespace ::com::sun::star;
diff --git a/cppcanvas/source/wrapper/impltext.cxx b/cppcanvas/source/wrapper/impltext.cxx
deleted file mode 100644
index 3be1b2f8d1ec..000000000000
--- a/cppcanvas/source/wrapper/impltext.cxx
+++ /dev/null
@@ -1,96 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-
-#include <impltext.hxx>
-#include <canvas/canvastools.hxx>
-
-#include <com/sun/star/rendering/TextDirection.hpp>
-#include <com/sun/star/rendering/XCanvas.hpp>
-#include <com/sun/star/rendering/StringContext.hpp>
-#include <rtl/ustring.hxx>
-#include <basegfx/matrix/b2dhommatrix.hxx>
-
-
-using namespace ::com::sun::star;
-
-namespace cppcanvas
-{
- namespace internal
- {
-
- ImplText::ImplText( const CanvasSharedPtr& rParentCanvas,
- const ::rtl::OUString& rText ) :
- CanvasGraphicHelper( rParentCanvas ),
- mpFont(),
- maText(rText)
- {
- }
-
- ImplText::~ImplText()
- {
- }
-
- bool ImplText::draw() const
- {
- CanvasSharedPtr pCanvas( getCanvas() );
-
- OSL_ENSURE( pCanvas.get() != NULL &&
- pCanvas->getUNOCanvas().is(),
- "ImplBitmap::draw: invalid canvas" );
-
- rendering::StringContext aText;
- aText.Text = maText;
- aText.StartPosition = 0;
- aText.Length = maText.getLength();
-
- // TODO(P1): implement caching
- // TODO(F2): where to get current BiDi status?
- sal_Int8 nBidiOption = rendering::TextDirection::WEAK_LEFT_TO_RIGHT;
- pCanvas->getUNOCanvas()->drawText( aText,
- mpFont->getUNOFont(),
- pCanvas->getViewState(),
- getRenderState(),
- nBidiOption );
-
- return true;
- }
-
- void ImplText::setFont( const FontSharedPtr& rFont )
- {
- mpFont = rFont;
- }
-
- FontSharedPtr ImplText::getFont()
- {
- return mpFont;
- }
- }
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cppcanvas/source/wrapper/impltext.hxx b/cppcanvas/source/wrapper/impltext.hxx
deleted file mode 100644
index a45e7dab2114..000000000000
--- a/cppcanvas/source/wrapper/impltext.hxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CANVAS_IMPLTEXT_HXX
-#define _CANVAS_IMPLTEXT_HXX
-
-#include <com/sun/star/rendering/RenderState.hpp>
-#include <com/sun/star/rendering/StringContext.hpp>
-#include <com/sun/star/rendering/XCanvas.hpp>
-#include <com/sun/star/rendering/XCanvasFont.hpp>
-
-#include <cppcanvas/text.hxx>
-#include <canvasgraphichelper.hxx>
-
-
-namespace cppcanvas
-{
- namespace internal
- {
-
- class ImplText : public virtual ::cppcanvas::Text, protected CanvasGraphicHelper
- {
- public:
-
- ImplText( const CanvasSharedPtr& rParentCanvas,
- const ::rtl::OUString& rText );
-
- virtual ~ImplText();
-
- virtual bool draw() const;
-
- virtual void setFont( const FontSharedPtr& );
- virtual FontSharedPtr getFont();
-
- private:
- // default: disabled copy/assignment
- ImplText(const ImplText&);
- ImplText& operator= ( const ImplText& );
-
- FontSharedPtr mpFont;
- ::rtl::OUString maText;
- };
- }
-}
-
-#endif /* _CANVAS_IMPLTEXT_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cppcanvas/source/wrapper/vclfactory.cxx b/cppcanvas/source/wrapper/vclfactory.cxx
index 7a01fa25386f..e404c31bbf91 100644
--- a/cppcanvas/source/wrapper/vclfactory.cxx
+++ b/cppcanvas/source/wrapper/vclfactory.cxx
@@ -42,7 +42,6 @@
#include <implpolypolygon.hxx>
#include <implbitmap.hxx>
#include <implrenderer.hxx>
-#include <impltext.hxx>
#include <implsprite.hxx>
using namespace ::com::sun::star;