diff options
Diffstat (limited to 'dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx index a4b43398690b..debf95ff7d39 100644 --- a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx +++ b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx @@ -1,7 +1,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 @@ -54,23 +54,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) @@ -81,9 +81,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"); @@ -133,8 +133,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 ) @@ -142,7 +142,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(); |