summaryrefslogtreecommitdiffstats
path: root/include/svtools/textwindowpeer.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-11-27 11:35:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-11-27 11:35:24 +0100
commit0ee2cddfbd9cc710371048df560e397d6881d69b (patch)
treed4bee1f9214a3f12c98debb45750f042fa6061f0 /include/svtools/textwindowpeer.hxx
parentImprove test output (diff)
downloadcore-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.hxx43
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: */