summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-03-19 11:22:35 +0000
committerOliver Bolte <obo@openoffice.org>2004-03-19 11:22:35 +0000
commitf5084c6520408d35e65332fad215b283b25405ec (patch)
tree7b5a97e2a75766b7aa377f5600a976c13e479f69
parent1678d490776e8356d06227c170870364202df934 (diff)
INTEGRATION: CWS formdesign01 (1.5.340); FILE MERGED
2003/12/05 11:55:55 fs 1.5.340.1: #109061# corrected undo handling for container actions (insertions/removals)
-rw-r--r--svx/source/inc/fmundo.hxx28
1 files changed, 18 insertions, 10 deletions
diff --git a/svx/source/inc/fmundo.hxx b/svx/source/inc/fmundo.hxx
index ace4783b2e09..5c52fbbd61e4 100644
--- a/svx/source/inc/fmundo.hxx
+++ b/svx/source/inc/fmundo.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fmundo.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: hr $ $Date: 2003-03-27 15:03:17 $
+ * last change: $Author: obo $ $Date: 2004-03-19 12:22:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -148,11 +148,15 @@ public:
//==================================================================
class FmUndoContainerAction: public SdrUndoAction
{
- ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer> xContainer;
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> xElement;
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> xOwnElement; // Object das der Action gehoert
- sal_Int32 nIndex;
- ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor > aEvts; // events des Objects
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer >
+ m_xContainer; // container which the action applies to
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
+ m_xElement; // object not owned by the action
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
+ m_xOwnElement; // object owned by the action
+ sal_Int32 m_nIndex; // index of the object within it's container
+ ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >
+ m_aEvents; // events of the object
public:
enum Action
@@ -162,18 +166,22 @@ public:
};
private:
- Action eAction;
+ Action m_eAction;
public:
FmUndoContainerAction(FmFormModel& rMod,
Action _eAction,
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer>& xCont,
- const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& xElem,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer >& xCont,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xElem,
sal_Int32 nIdx = -1);
~FmUndoContainerAction();
virtual void Undo();
virtual void Redo();
+
+protected:
+ void implReInsert( ) SAL_THROW( ( ::com::sun::star::uno::Exception ) );
+ void implReRemove( ) SAL_THROW( ( ::com::sun::star::uno::Exception ) );
};
//==================================================================