summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/control/sqledit.cxx
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-08-23 13:47:34 +0000
committerFrank Schönheit <fs@openoffice.org>2001-08-23 13:47:34 +0000
commit7e8c248d39d5ee90226e1568d1301786896e28b4 (patch)
tree2c094fb9b0efbc2cd78a394d0b495c615d9734ca /dbaccess/source/ui/control/sqledit.cxx
parent#88637# do not build all files with exceptions (diff)
downloadcore-7e8c248d39d5ee90226e1568d1301786896e28b4.tar.gz
core-7e8c248d39d5ee90226e1568d1301786896e28b4.zip
#88637# some method renamings
Diffstat (limited to 'dbaccess/source/ui/control/sqledit.cxx')
-rw-r--r--dbaccess/source/ui/control/sqledit.cxx31
1 files changed, 17 insertions, 14 deletions
diff --git a/dbaccess/source/ui/control/sqledit.cxx b/dbaccess/source/ui/control/sqledit.cxx
index fbed966ec700..a8519ca18a01 100644
--- a/dbaccess/source/ui/control/sqledit.cxx
+++ b/dbaccess/source/ui/control/sqledit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sqledit.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: oj $ $Date: 2001-07-16 07:44:54 $
+ * last change: $Author: fs $ $Date: 2001-08-23 14:47:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -64,6 +64,9 @@
#ifndef DBAUI_QUERYVIEW_TEXT_HXX
#include "QueryTextView.hxx"
#endif
+#ifndef DBAUI_QUERYCONTAINERWINDOW_HXX
+#include "querycontainerwindow.hxx"
+#endif
#ifndef _TOOLS_DEBUG_HXX
#include <tools/debug.hxx>
#endif
@@ -115,8 +118,8 @@ OSqlEdit::~OSqlEdit()
void OSqlEdit::KeyInput( const KeyEvent& rKEvt )
{
DBG_CHKTHIS(OSqlEdit,NULL);
- static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->InvalidateFeature(SID_CUT);
- static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->InvalidateFeature(SID_COPY);
+ m_pView->getContainerWindow()->getDesignView()->getController()->InvalidateFeature(SID_CUT);
+ m_pView->getContainerWindow()->getDesignView()->getController()->InvalidateFeature(SID_COPY);
// Ist dies ein Cut, Copy, Paste Event?
KeyFuncType aKeyFunc = rKEvt.GetKeyCode().GetFunction();
@@ -155,14 +158,14 @@ IMPL_LINK(OSqlEdit, OnUndoActionTimer, void*, EMPTYARG)
String aText = GetText();
if(aText != m_strOrigText)
{
- SfxUndoManager* pUndoMgr = static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->getUndoMgr();
+ SfxUndoManager* pUndoMgr = m_pView->getContainerWindow()->getDesignView()->getController()->getUndoMgr();
OSqlEditUndoAct* pUndoAct = new OSqlEditUndoAct( this );
pUndoAct->SetOriginalText( m_strOrigText );
pUndoMgr->AddUndoAction( pUndoAct );
- static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->InvalidateFeature(SID_UNDO);
- static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->InvalidateFeature(SID_REDO);
+ m_pView->getContainerWindow()->getDesignView()->getController()->InvalidateFeature(SID_UNDO);
+ m_pView->getContainerWindow()->getDesignView()->getController()->InvalidateFeature(SID_REDO);
m_strOrigText = aText;
}
@@ -172,8 +175,8 @@ IMPL_LINK(OSqlEdit, OnUndoActionTimer, void*, EMPTYARG)
//------------------------------------------------------------------------------
IMPL_LINK(OSqlEdit, OnInvalidateTimer, void*, EMPTYARG)
{
- static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->InvalidateFeature(SID_CUT);
- static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->InvalidateFeature(SID_COPY);
+ m_pView->getContainerWindow()->getDesignView()->getController()->InvalidateFeature(SID_CUT);
+ m_pView->getContainerWindow()->getDesignView()->getController()->InvalidateFeature(SID_COPY);
if(!m_bStopTimer)
m_timerInvalidate.Start();
return 0L;
@@ -185,12 +188,12 @@ IMPL_LINK(OSqlEdit, ModifyHdl, void*, EMPTYTAG)
m_timerUndoActionCreation.Stop();
m_timerUndoActionCreation.Start();
- if (!static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->isModified())
- static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->setModified( sal_True );
+ if (!m_pView->getContainerWindow()->getDesignView()->getController()->isModified())
+ m_pView->getContainerWindow()->getDesignView()->getController()->setModified( sal_True );
- static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->InvalidateFeature(SID_SBA_QRY_EXECUTE);
- static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->InvalidateFeature(SID_CUT);
- static_cast<OQueryContainerWindow*>(m_pView->GetParent())->getView()->getRealView()->getController()->InvalidateFeature(SID_COPY);
+ m_pView->getContainerWindow()->getDesignView()->getController()->InvalidateFeature(SID_SBA_QRY_EXECUTE);
+ m_pView->getContainerWindow()->getDesignView()->getController()->InvalidateFeature(SID_CUT);
+ m_pView->getContainerWindow()->getDesignView()->getController()->InvalidateFeature(SID_COPY);
m_lnkTextModifyHdl.Call(NULL);
return 0;