summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2001-03-08 08:17:59 +0000
committerThomas Lange <tl@openoffice.org>2001-03-08 08:17:59 +0000
commit69ed114e336d11908371d740466c2934c0198c81 (patch)
treeb7a1b0afa186bd0183e10acf8443ec1b3b584966 /starmath
parentb7d6c2e0356d0a19d9daebadaa9cb34335f9f746 (diff)
#82063# SmEditAction removed
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/action.hxx18
-rw-r--r--starmath/source/action.cxx33
2 files changed, 4 insertions, 47 deletions
diff --git a/starmath/inc/action.hxx b/starmath/inc/action.hxx
index 1482372779d2..d6ed7215c08a 100644
--- a/starmath/inc/action.hxx
+++ b/starmath/inc/action.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: action.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:57:24 $
+ * last change: $Author: tl $ $Date: 2001-03-08 09:17:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -71,20 +71,6 @@
class SmDocShell;
-class SmEditAction: public SfxUndoAction
-{
- SmDocShell *pDoc;
- String aOldText;
- String aNewText;
-
-public:
- SmEditAction(SmDocShell *pDocSh, const String& rOldText, const String& rNewText);
-
- virtual void Undo();
- virtual void Redo();
- virtual void Repeat(SmDocShell *pDocSh);
- virtual String GetComment() const;
-};
class SmFormatAction: public SfxUndoAction
{
diff --git a/starmath/source/action.cxx b/starmath/source/action.cxx
index 15b052264e66..499f5680974a 100644
--- a/starmath/source/action.cxx
+++ b/starmath/source/action.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: action.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:57:26 $
+ * last change: $Author: tl $ $Date: 2001-03-08 09:17:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -66,35 +66,6 @@
#include "document.hxx"
#include "starmath.hrc"
-SmEditAction::SmEditAction(SmDocShell *pDocSh,
- const String& rOldText,
- const String& rNewText) :
- pDoc( pDocSh ),
- aOldText( rOldText ),
- aNewText( rNewText )
-{
-}
-
-void SmEditAction::Undo()
-{
- pDoc->SetText(aOldText);
-}
-
-void SmEditAction::Redo()
-{
- pDoc->SetText(aNewText);
-}
-
-void SmEditAction::Repeat(SmDocShell *pDocSh)
-{
- pDocSh->SetText(aNewText);
-}
-
-String SmEditAction::GetComment() const
-{
- return (SmResId(RID_UNDOEDITNAME));
-}
-
SmFormatAction::SmFormatAction(SmDocShell *pDocSh,
const SmFormat& rOldFormat,