summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hollmichel <mh@openoffice.org>2001-10-17 15:49:17 +0000
committerMartin Hollmichel <mh@openoffice.org>2001-10-17 15:49:17 +0000
commit080efed5b762f7d294c3a5e991f4b8aac0382219 (patch)
tree5d1c5a51b5eb00d35c36496246ad5fced0a7a1e8
parent1912b2c4123c81e11285897cded0fdd90054e9cf (diff)
del: old segmentc.h
-rw-r--r--svtools/source/undo/undo.cxx257
1 files changed, 2 insertions, 255 deletions
diff --git a/svtools/source/undo/undo.cxx b/svtools/source/undo/undo.cxx
index e027d383a758..320ae7fe5124 100644
--- a/svtools/source/undo/undo.cxx
+++ b/svtools/source/undo/undo.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: undo.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: thb $ $Date: 2001-08-01 13:22:46 $
+ * last change: $Author: mh $ $Date: 2001-10-17 16:49:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -69,8 +69,6 @@
#include "undo.hxx"
#include "svarray.hxx"
-#include "segmentc.hxx"
-
//========================================================================
SV_DECL_PTRARR( SfxUndoActions, SfxUndoAction*, 20, 8 )
@@ -133,8 +131,6 @@ class SfxListUndoAction : public SfxUndoAction, public SfxUndoArray
DBG_NAME(SfxUndoAction);
-SEG_EOFGLOBALS()
-
//========================================================================
TYPEINIT0(SfxUndoAction);
@@ -144,16 +140,12 @@ TYPEINIT0(SfxRepeatTarget);
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_01)
-
SfxRepeatTarget::~SfxRepeatTarget()
{
}
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_34)
-
BOOL SfxUndoAction::IsLinked()
{
return bLinked;
@@ -161,8 +153,6 @@ BOOL SfxUndoAction::IsLinked()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_35)
-
void SfxUndoAction::SetLinked( BOOL bIsLinked )
{
bLinked = bIsLinked;
@@ -170,8 +160,6 @@ void SfxUndoAction::SetLinked( BOOL bIsLinked )
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_36)
-
SfxUndoAction::~SfxUndoAction()
{
DBG_DTOR(SfxUndoAction, 0);
@@ -179,8 +167,6 @@ SfxUndoAction::~SfxUndoAction()
}
-#pragma SEG_FUNCDEF(undo_02)
-
SfxUndoAction::SfxUndoAction()
{
DBG_CTOR(SfxUndoAction, 0);
@@ -189,8 +175,6 @@ SfxUndoAction::SfxUndoAction()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_03)
-
BOOL SfxUndoAction::Merge( SfxUndoAction * )
{
DBG_CHKTHIS(SfxUndoAction, 0);
@@ -199,8 +183,6 @@ BOOL SfxUndoAction::Merge( SfxUndoAction * )
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_04)
-
XubString SfxUndoAction::GetComment() const
{
DBG_CHKTHIS(SfxUndoAction, 0);
@@ -210,8 +192,6 @@ XubString SfxUndoAction::GetComment() const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_05)
-
USHORT SfxUndoAction::GetId() const
{
DBG_CHKTHIS(SfxUndoAction, 0);
@@ -220,8 +200,6 @@ USHORT SfxUndoAction::GetId() const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_06)
-
XubString SfxUndoAction::GetRepeatComment(SfxRepeatTarget&) const
{
DBG_CHKTHIS(SfxUndoAction, 0);
@@ -231,8 +209,6 @@ XubString SfxUndoAction::GetRepeatComment(SfxRepeatTarget&) const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_07)
-
void SfxUndoAction::Undo()
{
// die sind nur konzeptuell pure virtual
@@ -241,8 +217,6 @@ void SfxUndoAction::Undo()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_08)
-
void SfxUndoAction::Redo()
{
// die sind nur konzeptuell pure virtual
@@ -251,8 +225,6 @@ void SfxUndoAction::Redo()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_09)
-
void SfxUndoAction::Repeat(SfxRepeatTarget&)
{
// die sind nur konzeptuell pure virtual
@@ -261,7 +233,6 @@ void SfxUndoAction::Repeat(SfxRepeatTarget&)
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_0A)
BOOL SfxUndoAction::CanRepeat(SfxRepeatTarget&) const
{
@@ -270,7 +241,6 @@ BOOL SfxUndoAction::CanRepeat(SfxRepeatTarget&) const
//========================================================================
-#pragma SEG_FUNCDEF(undo_0B)
SfxUndoManager::SfxUndoManager( USHORT nMaxUndoActionCount )
: pFatherUndoArray(0)
@@ -282,7 +252,6 @@ SfxUndoManager::SfxUndoManager( USHORT nMaxUndoActionCount )
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_0C)
SfxUndoManager::~SfxUndoManager()
{
@@ -292,7 +261,6 @@ SfxUndoManager::~SfxUndoManager()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_0D)
void SfxUndoManager::SetMaxUndoActionCount( USHORT nMaxUndoActionCount )
{
@@ -320,8 +288,6 @@ void SfxUndoManager::SetMaxUndoActionCount( USHORT nMaxUndoActionCount )
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_0E)
-
USHORT SfxUndoManager::GetMaxUndoActionCount() const
{
return pActUndoArray->nMaxUndoActions;
@@ -329,8 +295,6 @@ USHORT SfxUndoManager::GetMaxUndoActionCount() const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_0F)
-
void SfxUndoManager::Clear()
{
while ( pActUndoArray->aUndoActions.Count() )
@@ -359,8 +323,6 @@ void SfxUndoManager::ClearRedo()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_10)
-
void SfxUndoManager::AddUndoAction( SfxUndoAction *pAction, BOOL bTryMerge )
{
// Redo-Actions loeschen
@@ -403,8 +365,6 @@ void SfxUndoManager::AddUndoAction( SfxUndoAction *pAction, BOOL bTryMerge )
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_11)
-
USHORT SfxUndoManager::GetUndoActionCount() const
{
return pActUndoArray->nCurUndoAction;
@@ -412,8 +372,6 @@ USHORT SfxUndoManager::GetUndoActionCount() const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_12)
-
XubString SfxUndoManager::GetUndoActionComment( USHORT nNo ) const
{
return pActUndoArray->aUndoActions[pActUndoArray->nCurUndoAction-1-nNo]->GetComment(); //!
@@ -421,8 +379,6 @@ XubString SfxUndoManager::GetUndoActionComment( USHORT nNo ) const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_13)
-
USHORT SfxUndoManager::GetUndoActionId( USHORT nNo ) const
{
return pActUndoArray->aUndoActions[pActUndoArray->nCurUndoAction-1-nNo]->GetId(); //!
@@ -430,8 +386,6 @@ USHORT SfxUndoManager::GetUndoActionId( USHORT nNo ) const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_14)
-
BOOL SfxUndoManager::Undo( USHORT nCount )
{
if ( pActUndoArray->nCurUndoAction )
@@ -444,8 +398,6 @@ BOOL SfxUndoManager::Undo( USHORT nCount )
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_15)
-
void SfxUndoManager::Undo( SfxUndoAction &rAction )
{
rAction.Undo();
@@ -453,8 +405,6 @@ void SfxUndoManager::Undo( SfxUndoAction &rAction )
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_16)
-
USHORT SfxUndoManager::GetRedoActionCount() const
{
return pActUndoArray->aUndoActions.Count() - pActUndoArray->nCurUndoAction; //!
@@ -462,8 +412,6 @@ USHORT SfxUndoManager::GetRedoActionCount() const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_17)
-
XubString SfxUndoManager::GetRedoActionComment( USHORT nNo ) const
{
return pActUndoArray->aUndoActions[pActUndoArray->nCurUndoAction+nNo]->GetComment(); //!
@@ -471,8 +419,6 @@ XubString SfxUndoManager::GetRedoActionComment( USHORT nNo ) const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_18)
-
USHORT SfxUndoManager::GetRedoActionId( USHORT nNo ) const
{
return pActUndoArray->aUndoActions[pActUndoArray->nCurUndoAction+nNo]->GetId(); //!
@@ -480,8 +426,6 @@ USHORT SfxUndoManager::GetRedoActionId( USHORT nNo ) const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_19)
-
BOOL SfxUndoManager::Redo( USHORT nNumber )
{
if ( pActUndoArray->aUndoActions.Count() > pActUndoArray->nCurUndoAction )
@@ -495,8 +439,6 @@ BOOL SfxUndoManager::Redo( USHORT nNumber )
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_1A)
-
void SfxUndoManager::Redo( SfxUndoAction &rAction )
{
rAction.Redo();
@@ -504,8 +446,6 @@ void SfxUndoManager::Redo( SfxUndoAction &rAction )
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_1B)
-
USHORT SfxUndoManager::GetRepeatActionCount() const
{
return pActUndoArray->aUndoActions.Count();
@@ -513,8 +453,6 @@ USHORT SfxUndoManager::GetRepeatActionCount() const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_1C)
-
XubString SfxUndoManager::GetRepeatActionComment( SfxRepeatTarget &rTarget, USHORT nNo ) const
{
return pActUndoArray->aUndoActions[ pActUndoArray->aUndoActions.Count() - 1 - nNo ]
@@ -523,8 +461,6 @@ XubString SfxUndoManager::GetRepeatActionComment( SfxRepeatTarget &rTarget, USHO
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_1D)
-
BOOL SfxUndoManager::Repeat( SfxRepeatTarget &rTarget, USHORT nFrom, USHORT nCount )
{
if ( pActUndoArray->aUndoActions.Count() )
@@ -538,8 +474,6 @@ BOOL SfxUndoManager::Repeat( SfxRepeatTarget &rTarget, USHORT nFrom, USHORT nCou
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_1E)
-
void SfxUndoManager::Repeat( SfxRepeatTarget &rTarget, SfxUndoAction &rAction )
{
if ( rAction.CanRepeat(rTarget) )
@@ -548,8 +482,6 @@ void SfxUndoManager::Repeat( SfxRepeatTarget &rTarget, SfxUndoAction &rAction )
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_1F)
-
BOOL SfxUndoManager::CanRepeat( SfxRepeatTarget &rTarget, SfxUndoAction &rAction ) const
{
return rAction.CanRepeat(rTarget);
@@ -557,8 +489,6 @@ BOOL SfxUndoManager::CanRepeat( SfxRepeatTarget &rTarget, SfxUndoAction &rAction
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_20)
-
BOOL SfxUndoManager::CanRepeat( SfxRepeatTarget &rTarget, USHORT nNo ) const
{
if ( pActUndoArray->aUndoActions.Count() > nNo )
@@ -572,8 +502,6 @@ BOOL SfxUndoManager::CanRepeat( SfxRepeatTarget &rTarget, USHORT nNo ) const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_21)
-
void SfxUndoManager::EnterListAction(
const XubString& rComment, const XubString &rRepeatComment, USHORT nId )
@@ -595,8 +523,6 @@ void SfxUndoManager::EnterListAction(
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_22)
-
void SfxUndoManager::LeaveListAction()
/* [Beschreibung]
@@ -625,8 +551,6 @@ void SfxUndoManager::LeaveListAction()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_23)
-
USHORT SfxListUndoAction::GetId() const
{
return nId;
@@ -634,8 +558,6 @@ USHORT SfxListUndoAction::GetId() const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_24)
-
XubString SfxListUndoAction::GetComment() const
{
return aComment;
@@ -643,8 +565,6 @@ XubString SfxListUndoAction::GetComment() const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_25)
-
XubString SfxListUndoAction::GetRepeatComment(SfxRepeatTarget &r) const
{
return aRepeatComment;
@@ -653,8 +573,6 @@ XubString SfxListUndoAction::GetRepeatComment(SfxRepeatTarget &r) const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_26)
-
SfxListUndoAction::SfxListUndoAction
(
const XubString &rComment,
@@ -670,8 +588,6 @@ SfxListUndoAction::SfxListUndoAction
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_27)
-
void SfxListUndoAction::Undo()
{
for(INT16 i=nCurUndoAction-1;i>=0;i--)
@@ -681,8 +597,6 @@ void SfxListUndoAction::Undo()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_28)
-
void SfxListUndoAction::Redo()
{
for(USHORT i=nCurUndoAction;i<aUndoActions.Count();i++)
@@ -692,8 +606,6 @@ void SfxListUndoAction::Redo()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_29)
-
void SfxListUndoAction::Repeat(SfxRepeatTarget&rTarget)
{
for(USHORT i=0;i<nCurUndoAction;i++)
@@ -702,8 +614,6 @@ void SfxListUndoAction::Repeat(SfxRepeatTarget&rTarget)
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_2A)
-
BOOL SfxListUndoAction::CanRepeat(SfxRepeatTarget&r) const
{
for(USHORT i=0;i<nCurUndoAction;i++)
@@ -714,8 +624,6 @@ BOOL SfxListUndoAction::CanRepeat(SfxRepeatTarget&r) const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_2B)
-
SfxLinkUndoAction::SfxLinkUndoAction(SfxUndoManager *pManager)
/* [Beschreibung]
@@ -738,8 +646,6 @@ SfxLinkUndoAction::SfxLinkUndoAction(SfxUndoManager *pManager)
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_2C)
-
void SfxLinkUndoAction::Undo()
{
if ( pAction )
@@ -748,8 +654,6 @@ void SfxLinkUndoAction::Undo()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_2D)
-
void SfxLinkUndoAction::Redo()
{
if ( pAction )
@@ -758,7 +662,6 @@ void SfxLinkUndoAction::Redo()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_2E)
BOOL SfxLinkUndoAction::CanRepeat(SfxRepeatTarget& r) const
{
@@ -768,7 +671,6 @@ BOOL SfxLinkUndoAction::CanRepeat(SfxRepeatTarget& r) const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_2F)
void SfxLinkUndoAction::Repeat(SfxRepeatTarget&r)
{
@@ -779,8 +681,6 @@ void SfxLinkUndoAction::Repeat(SfxRepeatTarget&r)
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_30)
-
XubString SfxLinkUndoAction::GetComment() const
{
if ( pAction )
@@ -792,8 +692,6 @@ XubString SfxLinkUndoAction::GetComment() const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_31)
-
XubString SfxLinkUndoAction::GetRepeatComment(SfxRepeatTarget&r) const
{
if ( pAction )
@@ -804,8 +702,6 @@ XubString SfxLinkUndoAction::GetRepeatComment(SfxRepeatTarget&r) const
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_37)
-
SfxLinkUndoAction::~SfxLinkUndoAction()
{
if( pAction )
@@ -815,15 +711,6 @@ SfxLinkUndoAction::~SfxLinkUndoAction()
//------------------------------------------------------------------------
-#pragma SEG_FUNCDEF(undo_32)
-
-USHORT SfxLinkUndoAction::GetId() const
-{
- return pAction ? pAction->GetId() : 0;
-}
-
-#pragma SEG_FUNCDEF(undo_33)
-
SfxUndoArray::~SfxUndoArray()
{
while ( aUndoActions.Count() )
@@ -835,143 +722,3 @@ SfxUndoArray::~SfxUndoArray()
}
}
-
-
-/*------------------------------------------------------------------------
-
- $Log: not supported by cvs2svn $
- Revision 1.1.1.1 2000/09/18 16:59:06 hr
- initial import
-
- Revision 1.44 2000/09/18 14:13:48 willem.vandorp
- OpenOffice header added.
-
- Revision 1.43 2000/08/31 13:53:28 willem.vandorp
- Header and footer replaced
-
- Revision 1.42 2000/02/09 16:29:42 hr
- #70473# changes for unicode ( patched by automated patchtool )
-
- Revision 1.41 1998/01/20 09:08:18 MH
- chg: header
-
-
- Rev 1.40 20 Jan 1998 10:08:18 MH
- chg: header
-
- Rev 1.39 07 Aug 1997 16:32:38 TJ
- include
-
- Rev 1.38 01 Oct 1996 13:29:00 MI
- ClearRedo()
-
- Rev 1.37 13 Jun 1996 10:47:00 MI
- weniger Compiler-Keys
-
- Rev 1.36 21 Mar 1996 14:56:34 MI
- alte C_VErSION
-
- Rev 1.35 19 Mar 1996 12:05:34 TLX
- #25200# noch vorsichtiger mit gelinten Actions
-
- Rev 1.34 14 Mar 1996 17:42:58 MH
- del: S_VERSION
-
- Rev 1.33 09 Feb 1996 18:43:38 TLX
- #25200# Bei Remove von Undoactions Linking beachten
-
- Rev 1.32 01 Dec 1995 17:40:34 TLX
- Loesche gemergte Actions
-
- Rev 1.31 29 Nov 1995 12:09:28 TLX
- Destruktor fuer UndoArrays
-
- Rev 1.30 23 Nov 1995 16:39:42 AB
- Unicode-Anpassung
-
- Rev 1.29 13 Nov 1995 10:48:38 TLX
- SetMaxUndoCount loescht nur noch ueberzaehlige Actions
-
- Rev 1.27 06 Nov 1995 16:18:18 MI
- Bugfix Absturz bei ListActions und zu kleinem MaxCount
-
- Rev 1.26 04 Oct 1995 16:28:10 MI
- CanRepeat-Syntax-Fehler in 257
-
- Rev 1.25 29 Sep 1995 08:30:08 MI
- neue Methode SfxUndoManager::CanRepeat() mit Index
-
- Rev 1.24 07 Aug 1995 19:49:42 TLX
- Auschneiden gibt keinen gpf mehr
-
- Rev 1.23 31 Jul 1995 14:28:26 MT
- Undo/Redo in ListUndoAction behoben (nCurPos)
-
- Rev 1.22 31 Jul 1995 13:09:04 PB
-
- Rev 1.21 31 Jul 1995 12:50:36 PB
-
- Rev 1.20 31 Jul 1995 12:46:14 PB
-
- Rev 1.19 31 Jul 1995 12:38:54 PB
-
- Rev 1.18 31 Jul 1995 11:22:20 TLX
-
- Rev 1.17 05 Jul 1995 16:10:48 TLX
- Neue Undofeatures
-
- Rev 1.16 06 Jun 1995 18:48:26 TRI
- ~SfxRepeatTarget impl.
-
- Rev 1.15 06 Jun 1995 13:26:54 MI
- SfxRepeatTarget -- INKOMPATIBEL
-
- Rev 1.14 02 May 1995 18:40:36 TRI
- WATCOM Anpassung
-
- Rev 1.13 18 Apr 1995 19:03:50 MI
- neue Methode Clear() -- kompatibel
-
- Rev 1.12 29 Mar 1995 17:30:48 MI
- Bugfix: AddUndoAction
-
- Rev 1.11 23 Mar 1995 18:45:20 MI
- Begrenzung implementiert
-
- Rev 1.10 15 Dec 1994 09:32:38 MI
- svmem
-
- Rev 1.9 31 Oct 1994 11:22:54 MI
- CanRepeat
-
- Rev 1.8 25 Oct 1994 12:00:48 VB
- hdrstop
-
- Rev 1.7 20 Oct 1994 17:10:54 MI
- Jobsetup
-
- Rev 1.6 28 Sep 1994 19:29:30 MI
- pch-Probleme und Printing
-
- Rev 1.5 23 Sep 1994 09:43:14 MI
- Bugfix: Syntaxfehler
-
- Rev 1.4 23 Sep 1994 09:10:56 MI
- repeat dummy ersetzt
-
- Rev 1.3 23 Sep 1994 09:01:52 MI
- repeat-dummy
-
- Rev 1.2 22 Sep 1994 17:37:02 MI
- Undo und ItemSet immer mit Pool
-
- Rev 1.1 21 Sep 1994 10:49:04 MI
- pch
-
- Rev 1.0 19 Sep 1994 17:04:18 MI
- Initial revision.
-
-------------------------------------------------------------------------*/
-
-#pragma SEG_EOFMODULE
-