summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx
index 953cab5fa552..21c4d3aad0f4 100644
--- a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx
+++ b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,23 +39,23 @@
using namespace dbaui;
-DBG_NAME(OQueryDesignFieldUndoAct)
-OQueryDesignFieldUndoAct::OQueryDesignFieldUndoAct(OSelectionBrowseBox* pSelBrwBox, USHORT nCommentID)
+DBG_NAME(OQueryDesignFieldUndoAct)
+OQueryDesignFieldUndoAct::OQueryDesignFieldUndoAct(OSelectionBrowseBox* pSelBrwBox, USHORT nCommentID)
: OCommentUndoAction(nCommentID)
, pOwner(pSelBrwBox)
- , m_nColumnPostion(BROWSER_INVALIDID)
-{
+ , m_nColumnPostion(BROWSER_INVALIDID)
+{
DBG_CTOR(OQueryDesignFieldUndoAct,NULL);
}
// -----------------------------------------------------------------------------
-OQueryDesignFieldUndoAct::~OQueryDesignFieldUndoAct()
-{
+OQueryDesignFieldUndoAct::~OQueryDesignFieldUndoAct()
+{
DBG_DTOR(OQueryDesignFieldUndoAct,NULL);
- pOwner = NULL;
+ pOwner = NULL;
}
// -----------------------------------------------------------------------------
-DBG_NAME(OQueryTabWinUndoAct )
+DBG_NAME(OQueryTabWinUndoAct )
// ------------------------------------------------------------------------------------------------
OQueryTabWinUndoAct::OQueryTabWinUndoAct(OQueryTableView* pOwner, USHORT nCommentID)
:OQueryDesignUndoAction(pOwner, nCommentID)
@@ -66,9 +66,9 @@ OQueryTabWinUndoAct::OQueryTabWinUndoAct(OQueryTableView* pOwner, USHORT nCommen
//==============================================================================
OQueryTabWinUndoAct::~OQueryTabWinUndoAct()
{
- DBG_DTOR(OQueryTabWinUndoAct ,NULL);
+ DBG_DTOR(OQueryTabWinUndoAct ,NULL);
if (m_bOwnerOfObjects)
- { // wenn ich der alleinige Owner des Fenster bin, muss ich dafuer sorgen, dass es geloescht wird
+ { // wenn ich der alleinige Owner des Fenster bin, muss ich dafuer sorgen, dass es geloescht wird
OSL_ENSURE(m_pTabWin != NULL, "OQueryTabWinUndoAct::~OQueryTabWinUndoAct() : m_pTabWin sollte nicht NULL sein");
OSL_ENSURE(!m_pTabWin->IsVisible(), "OQueryTabWinUndoAct::~OQueryTabWinUndoAct() : *m_pTabWin sollte nicht sichtbar sein");
@@ -118,8 +118,8 @@ void OTabFieldSizedUndoAct::Undo()
pOwner->LeaveUndoMode();
}
// -----------------------------------------------------------------------------
-void OTabFieldMovedUndoAct::Undo()
-{
+void OTabFieldMovedUndoAct::Undo()
+{
pOwner->EnterUndoMode();
OSL_ENSURE(m_nColumnPostion != BROWSER_INVALIDID,"Column position was not set add the undo action!");
if ( m_nColumnPostion != BROWSER_INVALIDID )
@@ -127,7 +127,7 @@ void OTabFieldMovedUndoAct::Undo()
sal_uInt16 nId = pDescr->GetColumnId();
USHORT nOldPos = pOwner->GetColumnPos(nId);
pOwner->SetColumnPos(nId,m_nColumnPostion);
- pOwner->ColumnMoved(nId,FALSE);
+ pOwner->ColumnMoved(nId,FALSE);
m_nColumnPostion = nOldPos;
}
pOwner->LeaveUndoMode();