diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-11-02 12:05:56 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-11-02 12:05:56 +0000 |
commit | 628820c311a9e36f3d77dc9dcc9da11d4b1fccb2 (patch) | |
tree | ab39873ba851fdb2fcce98bd504ece6ed9101be7 /canvas/source/vcl | |
parent | 77c27e95bc9615fbc4d335750bdf89ecbae933f4 (diff) |
INTEGRATION: CWS canvas02 (1.3.10); FILE MERGED
2005/10/08 12:57:28 thb 1.3.10.3: RESYNC: (1.3-1.4); FILE MERGED
2005/08/04 21:43:57 thb 1.3.10.2: #i48939# Corrected sprite repaint (opaqueUpdate() don't need to clip, area is guaranteed to cover all full sprites within bound rect); removed plain <long> from textlayout
2005/06/17 23:49:53 thb 1.3.10.1: #i48939# Huge refactoring of canvas; as much functionality as possible is now common in a bunch of shared base classes (input checking, locking, sprite redraw, etc.); added scroll update optimization, transparently to all canvas implementations
Diffstat (limited to 'canvas/source/vcl')
-rw-r--r-- | canvas/source/vcl/textlayout.hxx | 58 |
1 files changed, 23 insertions, 35 deletions
diff --git a/canvas/source/vcl/textlayout.hxx b/canvas/source/vcl/textlayout.hxx index c5549993baaa..c59bdfc0b724 100644 --- a/canvas/source/vcl/textlayout.hxx +++ b/canvas/source/vcl/textlayout.hxx @@ -4,9 +4,9 @@ * * $RCSfile: textlayout.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-07 23:24:24 $ + * last change: $Author: kz $ $Date: 2005-11-02 13:05:56 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -33,30 +33,23 @@ * ************************************************************************/ -#ifndef _TEXTLAYOUT_HXX -#define _TEXTLAYOUT_HXX +#ifndef _VCLCANVAS_TEXTLAYOUT_HXX +#define _VCLCANVAS_TEXTLAYOUT_HXX -#ifndef _CPPUHELPER_COMPBASE2_HXX_ #include <cppuhelper/compbase2.hxx> -#endif -#ifndef _COMPHELPER_BROADCASTHELPER_HXX_ #include <comphelper/broadcasthelper.hxx> -#endif -#ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_ #include <com/sun/star/lang/XServiceInfo.hpp> -#endif -#ifndef _COM_SUN_STAR_RENDERING_XTEXTLAYOUT_HPP_ +#include <com/sun/star/rendering/StringContext.hpp> #include <com/sun/star/rendering/XTextLayout.hpp> -#endif #include <canvas/vclwrapper.hxx> #include "canvasfont.hxx" #include "impltools.hxx" +#include <boost/utility.hpp> -#define TEXTLAYOUT_IMPLEMENTATION_NAME "VCLCanvas::TextLayout" /* Definition of TextLayout class */ @@ -65,14 +58,16 @@ namespace vclcanvas typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XTextLayout, ::com::sun::star::lang::XServiceInfo > TextLayout_Base; - class TextLayout : public ::comphelper::OBaseMutex, public TextLayout_Base + class TextLayout : public ::comphelper::OBaseMutex, + public TextLayout_Base, + private ::boost::noncopyable { public: TextLayout( const ::com::sun::star::rendering::StringContext& aText, - sal_Int8 nDirection, - sal_Int64 nRandomSeed, - const CanvasFont::ImplRef& rFont, - const OutDevProviderSharedPtr& rRefDevice ); + sal_Int8 nDirection, + sal_Int64 nRandomSeed, + const CanvasFont::Reference& rFont, + const DeviceRef& rRefDevice ); /// Dispose all internal references virtual void SAL_CALL disposing(); @@ -101,31 +96,24 @@ namespace vclcanvas virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException ); virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException ); - bool draw( OutputDevice& rOutDev, - const Point& rOutpos, + bool draw( OutputDevice& rOutDev, + const Point& rOutpos, const ::com::sun::star::rendering::ViewState& viewState, const ::com::sun::star::rendering::RenderState& renderState ) const; - protected: - ~TextLayout(); // we're a ref-counted UNO class. _We_ destroy ourselves. - private: - // default: disabled copy/assignment - TextLayout(const TextLayout&); - TextLayout& operator=( const TextLayout& ); - - void setupTextOffsets( long* outputOffsets, - const ::com::sun::star::uno::Sequence< double >& inputOffsets, + void setupTextOffsets( sal_Int32* outputOffsets, + const ::com::sun::star::uno::Sequence< double >& inputOffsets, const ::com::sun::star::rendering::ViewState& viewState, const ::com::sun::star::rendering::RenderState& renderState ) const; - ::com::sun::star::rendering::StringContext maText; - ::com::sun::star::uno::Sequence< double > maLogicalAdvancements; - CanvasFont::ImplRef mpFont; - OutDevProviderSharedPtr mpRefDevice; - sal_Int8 mnTextDirection; + ::com::sun::star::rendering::StringContext maText; + ::com::sun::star::uno::Sequence< double > maLogicalAdvancements; + CanvasFont::Reference mpFont; + DeviceRef mpRefDevice; + sal_Int8 mnTextDirection; }; } -#endif /* _TEXTLAYOUT_HXX */ +#endif /* _VCLCANVAS_TEXTLAYOUT_HXX */ |