diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-11-27 11:35:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-11-27 11:35:24 +0100 |
commit | 0ee2cddfbd9cc710371048df560e397d6881d69b (patch) | |
tree | d4bee1f9214a3f12c98debb45750f042fa6061f0 /include/svtools/textwindowpeer.hxx | |
parent | Improve test output (diff) | |
download | core-0ee2cddfbd9cc710371048df560e397d6881d69b.tar.gz core-0ee2cddfbd9cc710371048df560e397d6881d69b.zip |
Properly encapsulate svt::TextWindowPeer
Change-Id: Iffa67c345a03852ad7872031b4c5a87e223ffcad
Diffstat (limited to 'include/svtools/textwindowpeer.hxx')
-rw-r--r-- | include/svtools/textwindowpeer.hxx | 43 |
1 files changed, 11 insertions, 32 deletions
diff --git a/include/svtools/textwindowpeer.hxx b/include/svtools/textwindowpeer.hxx index 14ef753c3f5a..7da6b83d2ef6 100644 --- a/include/svtools/textwindowpeer.hxx +++ b/include/svtools/textwindowpeer.hxx @@ -20,45 +20,24 @@ #ifndef INCLUDED_SVTOOLS_TEXTWINDOWPEER_HXX #define INCLUDED_SVTOOLS_TEXTWINDOWPEER_HXX -#include <svtools/svtdllapi.h> -#include <toolkit/awt/vclxwindow.hxx> +#include <sal/config.h> -#include <memory> +#include <com/sun/star/uno/Reference.hxx> +#include <sal/types.h> +#include <svtools/svtdllapi.h> -class TextEngine; +namespace com { namespace sun { namespace star { namespace awt { + class XWindowPeer; +} } } } class TextView; -namespace svt -{ - class AccessibleFactoryAccess ; - -class TextWindowPeer: public ::VCLXWindow -{ -public: - SVT_DLLPUBLIC TextWindowPeer(::TextView & rView); - - virtual ~TextWindowPeer(); - -private: - // VCLXWindow inherits funny copy constructor and assignment operator from - // ::cppu::OWeakObject, so override them here: - - TextWindowPeer(TextWindowPeer &); // not implemented - - void operator =(TextWindowPeer); // not implemented - - virtual ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessibleContext > - CreateAccessibleContext(); - - ::TextEngine & m_rEngine; - ::TextView & m_rView; +namespace svt { - ::std::auto_ptr< ::svt::AccessibleFactoryAccess > m_pFactoryAccess; -}; +css::uno::Reference<css::awt::XWindowPeer> SVT_DLLPUBLIC createTextWindowPeer( + TextView & view); } -#endif // INCLUDED_SVTOOLS_TEXTWINDOWPEER_HXX +#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |