Files
libreoffice/dbaccess/source/ui/app/AppView.cxx

638 lines
23 KiB
C++
Raw Normal View History

INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
/*************************************************************************
*
* $RCSfile: AppView.cxx,v $
*
* $Revision: 1.8 $
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
*
* last change: $Author: kz $ $Date: 2005-01-21 17:08:01 $
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the License); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an AS IS basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): Ocke Janssen
*
*
************************************************************************/
#ifndef DBAUI_APPVIEW_HXX
#include "AppView.hxx"
#endif
#ifndef _DBU_APP_HRC_
#include "dbu_app.hrc"
#endif
#ifndef _TOOLS_DEBUG_HXX
#include <tools/debug.hxx>
#endif
#ifndef DBAUI_IAPPELEMENTNOTIFICATION_HXX
#include "IAppElementNotification.hxx"
#endif
#ifndef _DBA_DBACCESS_HELPID_HRC_
#include "dbaccess_helpid.hrc"
#endif
#ifndef _SV_TOOLBOX_HXX
#include <vcl/toolbox.hxx>
#endif
#ifndef _UTL_CONFIGMGR_HXX_
#include <unotools/configmgr.hxx>
#endif
#ifndef _SV_WAITOBJ_HXX
#include <vcl/waitobj.hxx>
#endif
#ifndef _COMPHELPER_TYPES_HXX_
#include <comphelper/types.hxx>
#endif
#ifndef _COM_SUN_STAR_DATATRANSFER_CLIPBOARD_XCLIPBOARD_HPP_
#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
#endif
#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
#include <com/sun/star/beans/XPropertySet.hpp>
#endif
#ifndef _COM_SUN_STAR_FRAME_XCONTROLLER_HPP_
#include <com/sun/star/frame/XController.hpp>
#endif
#ifndef _COM_SUN_STAR_SDBCX_XTABLESSUPPLIER_HPP_
#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
#endif
#ifndef _COM_SUN_STAR_SDB_XQUERIESSUPPLIER_HPP_
#include <com/sun/star/sdb/XQueriesSupplier.hpp>
#endif
#ifndef _ISOLANG_HXX
#include <tools/isolang.hxx>
#endif
#ifndef INCLUDED_SVTOOLS_SYSLOCALE_HXX
#include <svtools/syslocale.hxx>
#endif
#ifndef DBAUI_TOOLS_HXX
#include "UITools.hxx"
#endif
#ifndef DBAUI_APPDETAILVIEW_HXX
#include "AppDetailView.hxx"
#endif
#ifndef _DBAUI_TABLETREE_HXX_
#include "tabletree.hxx"
#endif
#ifndef DBAUI_APPSWAPWINDOW_HXX
#include "AppSwapWindow.hxx"
#endif
#ifndef _SV_SVAPP_HXX //autogen
#include <vcl/svapp.hxx>
#endif
#ifndef DBAUI_APPSWAPWINDOW_HXX
#include "AppSwapWindow.hxx"
#endif
#ifndef DBAUI_TITLE_WINDOW_HXX
#include "AppTitleWindow.hxx"
#endif
#ifndef _DBAUI_DSNTYPES_HXX_
#include "dsntypes.hxx"
#endif
#ifndef DBACCESS_SHARED_DBUSTRINGS_HRC
#include "dbustrings.hrc"
#endif
#ifndef DBAUI_ICONTROLLER_HXX
#include "IController.hxx"
#endif
#ifndef DBACCESS_UI_BROWSER_ID_HXX
#include "browserids.hxx"
#endif
#ifndef INCLUDED_SVTOOLS_PATHOPTIONS_HXX
#include <svtools/pathoptions.hxx>
#endif
using namespace ::dbaui;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::datatransfer::clipboard;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::container;
//==================================================================
// class OAppBorderWindow
//==================================================================
OAppBorderWindow::OAppBorderWindow(OApplicationView* _pParent) : Window(_pParent,WB_DIALOGCONTROL)
,m_pView(_pParent)
,m_pPanel(NULL)
{
SetBorderStyle(WINDOW_BORDER_MONO);
m_pPanel = new OTitleWindow(this,STR_DATABASE,WB_BORDER | WB_DIALOGCONTROL ,FALSE);
m_pPanel->SetBorderStyle(WINDOW_BORDER_MONO);
OApplicationSwapWindow* pSwap = new OApplicationSwapWindow(m_pPanel,this);
pSwap->Show();
pSwap->SetUniqueId(UID_APP_SWAP_VIEW);
m_pPanel->setChildWindow(pSwap);
m_pPanel->SetUniqueId(UID_APP_DATABASE_VIEW);
m_pPanel->Show();
m_pDetailView = new OApplicationDetailView(this);
m_pDetailView->Show();
ImplInitSettings();
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
}
// -----------------------------------------------------------------------------
OAppBorderWindow::~OAppBorderWindow()
{
//////////////////////////////////////////////////////////////////////
// Childs zerstoeren
if ( m_pPanel )
{
m_pPanel->Hide();
::std::auto_ptr<Window> aTemp(m_pPanel);
m_pPanel = NULL;
}
if ( m_pDetailView )
{
m_pDetailView->Hide();
::std::auto_ptr<Window> aTemp(m_pDetailView);
m_pDetailView = NULL;
}
}
// -----------------------------------------------------------------------------
void OAppBorderWindow::GetFocus()
{
if ( m_pPanel )
m_pPanel->GrabFocus();
}
// -----------------------------------------------------------------------------
void OAppBorderWindow::Resize()
{
//////////////////////////////////////////////////////////////////////
// Abmessungen parent window
Size aOutputSize( GetOutputSize() );
long nOutputWidth = aOutputSize.Width();
long nOutputHeight = aOutputSize.Height();
long nX = 0;
Size aFLSize = LogicToPixel( Size( 3, 8 ), MAP_APPFONT );
if ( m_pPanel )
{
OApplicationSwapWindow* pSwap = getPanel();
if ( pSwap )
{
if ( pSwap->GetEntryCount() != 0 )
nX = pSwap->GetBoundingBox( pSwap->GetEntry(0) ).GetWidth() + aFLSize.Height();
}
nX = ::std::max(m_pPanel->GetWidthPixel(),nX);
m_pPanel->SetPosSizePixel(Point(0,0),Size(nX,nOutputHeight));
}
if ( m_pDetailView )
m_pDetailView->SetPosSizePixel(Point(nX + aFLSize.Width(),0),Size(nOutputWidth - nX - aFLSize.Width(),nOutputHeight));
}
// -----------------------------------------------------------------------------
void OAppBorderWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
Window::DataChanged( rDCEvt );
if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) &&
(rDCEvt.GetFlags() & SETTINGS_STYLE) )
{
ImplInitSettings();
Invalidate();
}
}
// -----------------------------------------------------------------------------
void OAppBorderWindow::ImplInitSettings()
{
SetBackground( Wallpaper( Application::GetSettings().GetStyleSettings().GetDialogColor() ) );
SetFillColor( Application::GetSettings().GetStyleSettings().GetDialogColor() );
SetTextFillColor( Application::GetSettings().GetStyleSettings().GetDialogColor() );
}
// -----------------------------------------------------------------------------
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
OApplicationView* OAppBorderWindow::getView() const { return m_pView; }
OApplicationSwapWindow* OAppBorderWindow::getPanel() const { return static_cast<OApplicationSwapWindow*>(m_pPanel->getChildWindow()); }
OApplicationDetailView* OAppBorderWindow::getDetailView() const { return m_pDetailView; }
//==================================================================
// class OApplicationView
//==================================================================
DBG_NAME(OApplicationView);
//------------------------------------------------------------------------------
OApplicationView::OApplicationView( Window* pParent
,const Reference< XMultiServiceFactory >& _rxOrb
,IController* _pIController
,IApplicationElementNotification* _pController
,IControlActionListener* _pActonListener
,IContainerFoundListener* _pContainerListener
,IViewChangeListener* _pViewChangeListener
,const Reference< XController>& _xController
) :
ODataView( pParent ,_pIController,_rxOrb,WB_DIALOGCONTROL )
,m_pElementNotification( _pController )
,m_pActonListener(_pActonListener)
,m_pContainerListener(_pContainerListener)
,m_pViewChangeListener(_pViewChangeListener)
,m_eChildFocus(NONE)
,m_xController(_xController)
{
DBG_CTOR(OApplicationView,NULL);
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
try
{
m_aLocale = SvtSysLocale().GetLocaleData().getLocale();
}
catch(Exception&)
{
}
m_pWin = new OAppBorderWindow(this);
m_pWin->SetUniqueId(UID_APP_VIEW_BORDER_WIN);
m_pWin->Show();
ImplInitSettings();
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
}
//------------------------------------------------------------------------------
OApplicationView::~OApplicationView()
{
DBG_DTOR(OApplicationView,NULL);
{
stopComponentListening(m_xObject);
m_pWin->Hide();
::std::auto_ptr<Window> aTemp(m_pWin);
m_pWin = NULL;
}
m_pElementNotification = NULL;
}
// -----------------------------------------------------------------------------
void OApplicationView::createIconAutoMnemonics()
{
if ( m_pWin && m_pWin->getPanel() )
m_pWin->getPanel()->createIconAutoMnemonics();
}
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
// -----------------------------------------------------------------------------
void OApplicationView::DataChanged( const DataChangedEvent& rDCEvt )
{
ODataView::DataChanged( rDCEvt );
if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) &&
(rDCEvt.GetFlags() & SETTINGS_STYLE) )
{
ImplInitSettings();
Invalidate();
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
}
}
//------------------------------------------------------------------------------
void OApplicationView::resizeDocumentView(Rectangle& _rPlayground)
{
if ( m_pWin && !_rPlayground.IsEmpty() )
{
Size aFLSize = LogicToPixel( Size( 3, 3 ), MAP_APPFONT );
_rPlayground.Move( aFLSize.A(),aFLSize.B() );
Size aOldSize = _rPlayground.GetSize();
_rPlayground.SetSize( Size(aOldSize.A() - 2*aFLSize.A(), aOldSize.B() - 2*aFLSize.B()) );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
m_pWin->SetPosSizePixel(_rPlayground.TopLeft() , _rPlayground.GetSize() );
}
// just for completeness: there is no space left, we occupied it all ...
_rPlayground.SetPos( _rPlayground.BottomRight() );
_rPlayground.SetSize( Size( 0, 0 ) );
}
//------------------------------------------------------------------------------
long OApplicationView::PreNotify( NotifyEvent& rNEvt )
{
switch(rNEvt.GetType())
{
case EVENT_GETFOCUS:
if( m_pWin && getPanel() && getPanel()->HasChildPathFocus() )
m_eChildFocus = PANELSWAP;
else if ( m_pWin && getDetailView() && getDetailView()->HasChildPathFocus() )
m_eChildFocus = DETAIL;
else
m_eChildFocus = NONE;
break;
case EVENT_KEYINPUT:
{
const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
// give the pane the chance to intercept mnemonic accelerators
// #i34790# - 2004-09-30 - fs@openoffice.org
if ( getPanel() && getPanel()->interceptKeyInput( *pKeyEvent ) )
return 1L;
}
break;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
}
return ODataView::PreNotify(rNEvt);
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
}
// -----------------------------------------------------------------------------
IClipboardTest* OApplicationView::getActiveChild() const
{
IClipboardTest* pTest = NULL;
switch(m_eChildFocus)
{
case DETAIL:
pTest = getDetailView();
break;
}
return pTest;
}
// -----------------------------------------------------------------------------
sal_Bool OApplicationView::isCopyAllowed()
{
IClipboardTest* pTest = getActiveChild();
return pTest && pTest->isCopyAllowed();
}
// -----------------------------------------------------------------------------
sal_Bool OApplicationView::isCutAllowed()
{
IClipboardTest* pTest = getActiveChild();
return pTest && pTest->isCutAllowed();
}
// -----------------------------------------------------------------------------
sal_Bool OApplicationView::isPasteAllowed()
{
IClipboardTest* pTest = getActiveChild();
return pTest && pTest->isPasteAllowed();
}
// -----------------------------------------------------------------------------
void OApplicationView::copy()
{
IClipboardTest* pTest = getActiveChild();
if ( pTest )
pTest->copy();
}
// -----------------------------------------------------------------------------
void OApplicationView::cut()
{
IClipboardTest* pTest = getActiveChild();
if ( pTest )
pTest->cut();
}
// -----------------------------------------------------------------------------
void OApplicationView::paste()
{
IClipboardTest* pTest = getActiveChild();
if ( pTest )
pTest->paste();
}
// -----------------------------------------------------------------------------
::rtl::OUString OApplicationView::getQualifiedName(SvLBoxEntry* _pEntry,const Reference< XDatabaseMetaData>& _xMetaData) const
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->getQualifiedName(_pEntry,_xMetaData);
}
// -----------------------------------------------------------------------------
sal_Bool OApplicationView::isLeaf(SvLBoxEntry* _pEntry) const
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->isLeaf(_pEntry);
}
// -----------------------------------------------------------------------------
sal_Bool OApplicationView::isALeafSelected() const
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->isALeafSelected();
}
// -----------------------------------------------------------------------------
void OApplicationView::selectAll()
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
getDetailView()->selectAll();
}
// -----------------------------------------------------------------------------
sal_Bool OApplicationView::isSortUp() const
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->isSortUp();
}
// -----------------------------------------------------------------------------
void OApplicationView::sortDown()
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
getDetailView()->sortDown();
}
// -----------------------------------------------------------------------------
void OApplicationView::sortUp()
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
getDetailView()->sortUp();
}
// -----------------------------------------------------------------------------
sal_Bool OApplicationView::isFilled() const
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->isFilled();
}
// -----------------------------------------------------------------------------
ElementType OApplicationView::getElementType() const
{
OSL_ENSURE(m_pWin && getDetailView() && getPanel(),"Detail view is NULL! -> GPF");
return getDetailView()->HasChildPathFocus() ? getDetailView()->getElementType() : getPanel()->getElementType();
}
// -----------------------------------------------------------------------------
sal_Int32 OApplicationView::getSelectionCount()
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->getSelectionCount();
}
// -----------------------------------------------------------------------------
sal_Int32 OApplicationView::getElementCount()
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->getElementCount();
}
// -----------------------------------------------------------------------------
void OApplicationView::getSelectionElementNames(::std::vector< ::rtl::OUString>& _rNames,const Reference< XDatabaseMetaData>& _xMetaData) const
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
getDetailView()->getSelectionElementNames(_rNames,_xMetaData);
}
// -----------------------------------------------------------------------------
SvLBoxEntry* OApplicationView::elementAdded(ElementType eType,const ::rtl::OUString& _rName, const Any& _rObject, const Reference< XConnection >& _rxConn )
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->elementAdded(eType,_rName,_rObject,_rxConn);
}
// -----------------------------------------------------------------------------
void OApplicationView::elementRemoved(ElementType eType,const ::rtl::OUString& _rName, const Reference< XConnection >& _rxConn )
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
getDetailView()->elementRemoved(eType,_rName,_rxConn);
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
}
// -----------------------------------------------------------------------------
void OApplicationView::elementReplaced(ElementType _eType
,const ::rtl::OUString& _rOldName
,const ::rtl::OUString& _rNewName
,const Reference< XConnection >& _rxConn )
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
getDetailView()->elementReplaced(_eType, _rOldName,_rNewName,_rxConn );
}
// -----------------------------------------------------------------------------
void OApplicationView::clearPages(sal_Bool _bTaskAlso)
{
OSL_ENSURE(m_pWin && getDetailView() && getPanel(),"Detail view is NULL! -> GPF");
getPanel()->clearSelection();
getDetailView()->clearPages(_bTaskAlso);
}
// -----------------------------------------------------------------------------
void OApplicationView::clearSelection()
{
OSL_ENSURE(m_pWin && getPanel(),"Detail view is NULL! -> GPF");
getPanel()->clearSelection();
}
// -----------------------------------------------------------------------------
void OApplicationView::changeContainer(ElementType _eType)
{
OSL_ENSURE(m_pWin && getPanel(),"Detail view is NULL! -> GPF");
WaitObject aWO(this);
getPanel()->changeContainer(_eType);
}
// -----------------------------------------------------------------------------
SvLBoxEntry* OApplicationView::getEntry( const Point& _aPosPixel ) const
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->getEntry(_aPosPixel);
}
// -----------------------------------------------------------------------------
PreviewMode OApplicationView::getPreviewMode()
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->getPreviewMode();
}
// -----------------------------------------------------------------------------
sal_Bool OApplicationView::isPreviewEnabled()
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->isPreviewEnabled();
}
// -----------------------------------------------------------------------------
void OApplicationView::switchPreview()
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
getDetailView()->switchPreview();
}
// -----------------------------------------------------------------------------
void OApplicationView::switchPreview(PreviewMode _eMode)
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
getDetailView()->switchPreview(_eMode);
}
// -----------------------------------------------------------------------------
void OApplicationView::showPreview(const Reference< XContent >& _xContent)
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
stopComponentListening(m_xObject);
m_xObject = NULL;
getDetailView()->showPreview(_xContent);
}
// -----------------------------------------------------------------------------
void OApplicationView::showPreview( const ::rtl::OUString& _sDataSourceName,
const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _xConnection,
const ::rtl::OUString& _sName,
sal_Bool _bTable)
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
if ( isPreviewEnabled() )
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
{
stopComponentListening(m_xObject);
m_xObject = NULL;
try
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
{
Reference<XNameAccess> xNameAccess;
if ( _bTable )
{
Reference<XTablesSupplier> xSup(_xConnection,UNO_QUERY);
if ( xSup.is() )
xNameAccess.set(xSup->getTables(),UNO_QUERY);
}
else
{
Reference<XQueriesSupplier> xSup(_xConnection,UNO_QUERY);
if ( xSup.is() )
xNameAccess.set(xSup->getQueries(),UNO_QUERY);
}
if ( xNameAccess.is() && xNameAccess->hasByName(_sName) )
m_xObject.set(xNameAccess->getByName(_sName),UNO_QUERY);
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
}
catch(Exception)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
{
OSL_ENSURE(0,"Exception caught!");
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
}
if ( m_xObject.is() )
startComponentListening(m_xObject);
getDetailView()->showPreview(_sDataSourceName,_xConnection,_sName,_bTable);
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/05 11:06:15 oj 1.1.2.29: #i30225# remove listener when suspending db app controller 2004/05/17 12:47:55 oj 1.1.2.28: ongoing work 2004/05/13 13:23:24 oj 1.1.2.27: statusbar not correctly filled 2004/05/12 10:44:59 oj 1.1.2.26: ongoing work 2004/05/10 10:55:06 oj 1.1.2.25: hide preview when the table or query is deleting 2004/05/06 06:30:04 oj 1.1.2.24: correct statusbar 2004/05/05 08:58:52 oj 1.1.2.23: adjust the size of the statusbar 2004/04/15 16:31:44 oj 1.1.2.22: read only connection checks 2004/04/01 09:09:25 oj 1.1.2.21: impl disableControls 2004/03/31 06:47:55 oj 1.1.2.20: check if ds is readonly 2004/03/19 07:45:47 oj 1.1.2.19: #111075# ongoing work 2004/03/17 12:51:05 oj 1.1.2.18: #111075# renaming of objects 2004/03/15 12:25:47 oj 1.1.2.17: #111075# ongoing work 2004/03/14 14:44:00 oj 1.1.2.16: ongoing work 2004/02/18 14:47:47 oj 1.1.2.15: #111075# fix rfcount problem 2004/01/22 09:36:59 oj 1.1.2.14: #i24176# add the possiblity to create dbs 2004/01/09 11:12:46 oj 1.1.2.13: #111075# ongoing work 2004/01/07 13:47:38 oj 1.1.2.12: #111075# ongoing work 2003/12/19 08:06:03 oj 1.1.2.11: #111075# ongoing work 2003/12/18 13:53:20 oj 1.1.2.10: #111075# ongoing work 2003/12/17 13:54:51 oj 1.1.2.9: #111075# ongoing work 2003/12/02 08:32:17 oj 1.1.2.8: #111075# ongoing work 2003/11/28 07:04:24 oj 1.1.2.7: #111075# ongoing work 2003/11/26 12:18:31 oj 1.1.2.6: #111075# ongoing work 2003/11/17 09:43:23 oj 1.1.2.5: #111075# ongoning work 2003/10/24 06:38:47 oj 1.1.2.4: #111075# further changes 2003/09/18 05:59:56 oj 1.1.2.3: #111075# ongoing work 2003/08/15 08:53:59 oj 1.1.2.2: #111075# ongoing new dbaapp work 2003/07/29 12:27:25 oj 1.1.2.1: #111075# new classes for the app controller
2004-08-02 14:30:33 +00:00
}
}
// -----------------------------------------------------------------------------
void OApplicationView::GetFocus()
{
if ( m_eChildFocus == NONE && m_pWin )
{
m_pWin->GrabFocus();
}
}
// -----------------------------------------------------------------------------
void OApplicationView::disableControls(sal_Bool _bDisable)
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
getDetailView()->disableControls(_bDisable);
}
// -----------------------------------------------------------------------------
void OApplicationView::_disposing( const ::com::sun::star::lang::EventObject& _rSource )
{
if ( m_pWin && getDetailView() )
showPreview(NULL);
}
// -----------------------------------------------------------------------------
void OApplicationView::ImplInitSettings()
{
SetBackground( Wallpaper( Application::GetSettings().GetStyleSettings().GetDialogColor() ) );
SetFillColor( Application::GetSettings().GetStyleSettings().GetDialogColor() );
SetTextFillColor( Application::GetSettings().GetStyleSettings().GetDialogColor() );
}
//-----------------------------------------------------------------------------