summaryrefslogtreecommitdiffstats
path: root/starmath/inc/document.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2010-10-23 16:20:23 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-23 16:20:23 +0100
commit46a1843255067dfcda58d1a00913a5d26627cd04 (patch)
tree28ca6e4d88b790cd9c7fa0afad2a453a507cf6f9 /starmath/inc/document.hxx
parent#i114366# fix tables in page styles (diff)
parentFixed issue with moving in/out of binom and stack. (diff)
downloadcore-46a1843255067dfcda58d1a00913a5d26627cd04.tar.gz
core-46a1843255067dfcda58d1a00913a5d26627cd04.zip
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/document.hxx')
-rw-r--r--starmath/inc/document.hxx19
1 files changed, 18 insertions, 1 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index fc3bc13b66c4..6f73e2244009 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -48,6 +48,7 @@ class SmNode;
class SfxMenuBarManager;
class SfxPrinter;
class Printer;
+class SmCursor;
#define HINT_DATACHANGED 1004
@@ -108,6 +109,7 @@ class SmDocShell : public SfxObjectShell, public SfxListener
{
friend class SmPrinterAccess;
friend class SmModel;
+ friend class SmCursor;
String aText;
SmFormat aFormat;
@@ -125,6 +127,7 @@ class SmDocShell : public SfxObjectShell, public SfxListener
nBottomBorder;
USHORT nModifyCount;
BOOL bIsFormulaArranged;
+ SmCursor *pCursor;
@@ -164,6 +167,11 @@ class SmDocShell : public SfxObjectShell, public SfxListener
virtual BOOL ConvertFrom(SfxMedium &rMedium);
+ /** Called whenever the formula is changed
+ * Deletes the current cursor
+ */
+ void InvalidateCursor();
+
public:
TYPEINFO();
SFX_DECL_INTERFACE(SFX_INTERFACE_SMA_START+1)
@@ -207,7 +215,7 @@ public:
EditEngine & GetEditEngine();
SfxItemPool & GetEditEngineItemPool();
- void Draw(OutputDevice &rDev, Point &rPosition);
+ void DrawFormula(OutputDevice &rDev, Point &rPosition, BOOL bDrawSelection = FALSE);
Size GetSize();
void Repaint();
@@ -221,6 +229,15 @@ public:
virtual void SetVisArea (const Rectangle & rVisArea);
virtual void SetModified(BOOL bModified);
+
+ /** Get a cursor for modifying this document
+ * @remarks Don't store this reference, a new cursor may be made...
+ */
+ SmCursor& GetCursor();
+ /** True, if cursor have previously been requested and thus
+ * has some sort of position.
+ */
+ BOOL HasCursor() { return pCursor != NULL; }
};
#endif