diff options
author | Oliver Bolte <obo@openoffice.org> | 2003-09-04 10:42:00 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2003-09-04 10:42:00 +0000 |
commit | 2eae62561ebcda707c4400fd4bbc7bf65248b718 (patch) | |
tree | a4411cd3d33066a30226a359d3a2ee52f311ff3b /starmath/source/accessibility.hxx | |
parent | 70feb2a5032a67d1d8c0674ad28d4b828682bd87 (diff) |
INTEGRATION: CWS geordi2q04 (1.16.54); FILE MERGED
2003/09/02 09:20:13 rt 1.16.54.1: #111934#: Join CWS sw7pp1.
Diffstat (limited to 'starmath/source/accessibility.hxx')
-rw-r--r-- | starmath/source/accessibility.hxx | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx index 7d17af5bdfbd..603ed6bc5d5e 100644 --- a/starmath/source/accessibility.hxx +++ b/starmath/source/accessibility.hxx @@ -2,9 +2,9 @@ * * $RCSfile: accessibility.hxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: vg $ $Date: 2003-05-22 13:49:44 $ + * last change: $Author: obo $ $Date: 2003-09-04 11:42:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -118,6 +118,10 @@ #include <svx/AccessibleTextHelper.hxx> #endif +#ifndef EDIT_HXX +#include <edit.hxx> +#endif + class Window; class SmGraphicWindow; class SmEditWindow; @@ -234,6 +238,7 @@ public: // classes and helper-classes used for accessibility in the command-window // +class SmEditAccessible; class SmEditSource; class EditEngine; class EditView; @@ -244,14 +249,14 @@ struct ESelection; class SmViewForwarder : public SvxViewForwarder { - EditView & rEditView; + SmEditAccessible & rEditAcc; // disallow copy-ctor and assignment-operator for now SmViewForwarder( const SmViewForwarder & ); SmViewForwarder & operator = ( const SmViewForwarder & ); public: - SmViewForwarder( EditView &rView ); + SmViewForwarder( SmEditAccessible &rAcc ); virtual ~SmViewForwarder(); virtual BOOL IsValid() const; @@ -264,7 +269,7 @@ public: class SmTextForwarder : /* analog to SvxEditEngineForwarder */ public SvxTextForwarder { - EditEngine & rEditEngine; + SmEditAccessible & rEditAcc; SmEditSource & rEditSource; DECL_LINK( NotifyHdl, EENotify * ); @@ -274,7 +279,7 @@ class SmTextForwarder : /* analog to SvxEditEngineForwarder */ SmTextForwarder & operator = ( const SmTextForwarder & ); public: - SmTextForwarder( EditEngine& rEngine, SmEditSource & rSource ); + SmTextForwarder( SmEditAccessible& rAcc, SmEditSource & rSource ); virtual ~SmTextForwarder(); virtual USHORT GetParagraphCount() const; @@ -323,14 +328,14 @@ public: class SmEditViewForwarder : /* analog to SvxEditEngineViewForwarder */ public SvxEditViewForwarder { - EditView & rEditView; + SmEditAccessible& rEditAcc; // disallow copy-ctor and assignment-operator for now SmEditViewForwarder( const SmEditViewForwarder & ); SmEditViewForwarder & operator = ( const SmEditViewForwarder & ); public: - SmEditViewForwarder( EditView& rView ); + SmEditViewForwarder( SmEditAccessible& rAcc ); virtual ~SmEditViewForwarder(); virtual BOOL IsValid() const; @@ -355,15 +360,14 @@ class SmEditSource : SmTextForwarder aTextFwd; SmEditViewForwarder aEditViewFwd; - EditEngine & rEditEngine; - EditView & rEditView; + SmEditAccessible& rEditAcc; // disallow copy-ctor and assignment-operator for now SmEditSource( const SmEditSource &rSrc ); SmEditSource & operator = ( const SmEditSource & ); public: - SmEditSource( SmEditWindow *pWin, EditEngine &rEditEngine, EditView &rEditView ); + SmEditSource( SmEditWindow *pWin, SmEditAccessible &rAcc ); virtual ~SmEditSource(); virtual SvxEditSource* Clone() const; @@ -413,6 +417,11 @@ public: SmEditWindow * GetWin() { return pWin; } void ClearWin(); // to be called when view is destroyed + //! access EditEngine and EditView via the functions in the respective window + //! pointers may be 0 (e.g. during reload) + EditEngine * GetEditEngine() { return pWin ? pWin->GetEditEngine() : 0; } + EditView * GetEditView() { return pWin ? pWin->GetEditView() : 0; } + // XAccessible virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException); |