diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-10-23 16:20:23 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-23 16:20:23 +0100 |
commit | 46a1843255067dfcda58d1a00913a5d26627cd04 (patch) | |
tree | 28ca6e4d88b790cd9c7fa0afad2a453a507cf6f9 /starmath/inc/view.hxx | |
parent | 88b663b7317ef1c6239c9e5ca52b1a9ec14f1993 (diff) | |
parent | befebfbf3690989e0eb08dab34b0e8505850760d (diff) |
Merge branch 'formula' into intformulae
Conflicts:
starmath/inc/node.hxx
starmath/source/edit.cxx
starmath/source/node.cxx
starmath/source/view.cxx
Diffstat (limited to 'starmath/inc/view.hxx')
-rw-r--r-- | starmath/inc/view.hxx | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index 0cacffc76387..d1ad4a933750 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -52,7 +52,6 @@ class SmPrintUIOptions; class SmGraphicWindow : public ScrollableWindow { Point aFormulaDrawPos; - Rectangle aCursorRect; ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > xAccessible; @@ -61,14 +60,9 @@ class SmGraphicWindow : public ScrollableWindow SmViewShell *pViewShell; USHORT nZoom; short nModifyCount; - BOOL bIsCursorVisible; protected: void SetFormulaDrawPos(const Point &rPos) { aFormulaDrawPos = rPos; } - void SetIsCursorVisible(BOOL bVis) { bIsCursorVisible = bVis; } - using Window::SetCursor; - void SetCursor(const SmNode *pNode); - void SetCursor(const Rectangle &rRect); virtual void DataChanged( const DataChangedEvent& ); virtual void Paint(const Rectangle&); @@ -99,10 +93,6 @@ public: using ScrollableWindow::SetTotalSize; void SetTotalSize(); - BOOL IsCursorVisible() const { return bIsCursorVisible; } - void ShowCursor(BOOL bShow); - const SmNode * SetCursorPos(USHORT nRow, USHORT nCol); - void ApplyColorConfigValues( const svtools::ColorConfig &rColorCfg ); // for Accessibility @@ -230,6 +220,11 @@ class SmViewShell: public SfxViewShell DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper* ); virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + /** Used to determine whether insertions using SID_INSERTSYMBOL and SID_INSERTCOMMAND + * should be inserted into SmEditWindow or directly into the SmDocShell as done if the + * visual editor was last to have focus. + */ + BOOL bInsertIntoEditWindow; protected: Size GetTextLineSize(OutputDevice& rDevice, @@ -293,6 +288,16 @@ public: void Impl_Print( OutputDevice &rOutDev, const SmPrintUIOptions &rPrintUIOptions, Rectangle aOutRect, Point aZeroPoint ); + + /** Set bInsertIntoEditWindow so we know where to insert + * + * This method is called whenever SmGraphicWindow or SmEditWindow gets focus, + * so that when text is inserted from catalog or elsewhere we know whether to + * insert for the visual editor, or the text editor. + */ + void SetInsertIntoEditWindow(BOOL bEditWindowHadFocusLast = TRUE){ + bInsertIntoEditWindow = bEditWindowHadFocusLast; + } }; #endif |