diff options
author | Ocke Janssen <oj@openoffice.org> | 2002-07-08 10:47:17 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2002-07-08 10:47:17 +0000 |
commit | 3870d7ec3f38810f83518eae6fd8e16f28c566ff (patch) | |
tree | 83035d4a3bb85eedd34739c29e21fbf3e9f6f009 /dbaccess/source/ui/querydesign/QueryViewSwitch.cxx | |
parent | 7d3bb2c5c2a488dbea1de68a54814ba7235a7d27 (diff) |
#99596# remember previous state of add table dialog
Diffstat (limited to 'dbaccess/source/ui/querydesign/QueryViewSwitch.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryViewSwitch.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx index 08b0510dd91b..df0f6cd70aca 100644 --- a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx +++ b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx @@ -2,9 +2,9 @@ * * $RCSfile: QueryViewSwitch.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: oj $ $Date: 2002-05-29 08:31:08 $ + * last change: $Author: oj $ $Date: 2002-07-08 11:47:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -118,6 +118,7 @@ namespace } DBG_NAME(OQueryViewSwitch); OQueryViewSwitch::OQueryViewSwitch(OQueryContainerWindow* _pParent, OQueryController* _pController,const Reference< XMultiServiceFactory >& _rFactory) +: m_bAddTableDialogWasVisible(sal_False) { DBG_CTOR(OQueryViewSwitch,NULL); @@ -284,7 +285,10 @@ sal_Bool OQueryViewSwitch::switchView() sal_Bool bGraphicalDesign = static_cast<OQueryController*>(m_pDesignView->getController())->isDesignMode(); if ( !bGraphicalDesign ) // we have to hide the add table dialog + { + m_bAddTableDialogWasVisible = getAddTableDialog()->IsVisible(); m_pDesignView->getAddTableDialog()->Hide(); + } OQueryContainerWindow* pContainer = getContainer(); ToolBox* pToolBox = pContainer ? pContainer->getToolBox() : NULL; @@ -316,6 +320,8 @@ sal_Bool OQueryViewSwitch::switchView() m_pTextView->Show ( !bGraphicalDesign ); m_pDesignView->Show ( bGraphicalDesign ); + if ( bGraphicalDesign && m_bAddTableDialogWasVisible ) + getAddTableDialog()->Show(); } if ( pContainer ) |