summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/querycontroller.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-07-06 07:40:51 +0000
committerRüdiger Timm <rt@openoffice.org>2007-07-06 07:40:51 +0000
commit5fc7d19d68d1a18876bef3ee07492c711a6c3759 (patch)
tree66b75dbb15dc4e54852819adfec66ccf542a0e2c /dbaccess/source/ui/querydesign/querycontroller.cxx
parent3fbd54a4f8217fc94d9ff159698c34b41e687075 (diff)
INTEGRATION: CWS oj14 (1.102.4); FILE MERGED
2007/06/04 18:57:13 oj 1.102.4.8: RESYNC: (1.108-1.109); FILE MERGED 2007/02/20 20:44:17 oj 1.102.4.7: mere conflict 2007/02/20 15:51:45 oj 1.102.4.6: RESYNC: (1.107-1.108); FILE MERGED 2006/12/21 12:30:03 oj 1.102.4.5: impl selectionSupplier 2006/12/18 16:24:53 oj 1.102.4.4: RESYNC: (1.106-1.107); FILE MERGED 2006/11/07 09:46:54 oj 1.102.4.3: RESYNC: (1.104-1.106); FILE MERGED 2006/07/04 08:21:10 oj 1.102.4.2: RESYNC: (1.102-1.104); FILE MERGED 2006/01/03 07:49:25 oj 1.102.4.1: changed module client
Diffstat (limited to 'dbaccess/source/ui/querydesign/querycontroller.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx27
1 files changed, 7 insertions, 20 deletions
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx
index 5b3ae1f87503..5d4216921303 100644
--- a/dbaccess/source/ui/querydesign/querycontroller.cxx
+++ b/dbaccess/source/ui/querydesign/querycontroller.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: querycontroller.cxx,v $
*
- * $Revision: 1.109 $
+ * $Revision: 1.110 $
*
- * last change: $Author: rt $ $Date: 2007-04-26 08:02:57 $
+ * last change: $Author: rt $ $Date: 2007-07-06 08:40:51 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -461,6 +461,8 @@ void OQueryController::deleteIterator()
// -----------------------------------------------------------------------------
void OQueryController::disposing()
{
+ OQueryController_PBase::disposing();
+
deleteIterator();
delete m_pParseContext;
@@ -816,11 +818,7 @@ void OQueryController::impl_initialize()
m_bDesign = sal_False;
if(m_bCreateView)
{
- {
- String aMessage(ModuleRes(RID_STR_CONNECTION_LOST));
- ODataView* pWindow = getView();
- InfoBox(pWindow, aMessage).Execute();
- }
+ connectionLostMessage();
throw SQLException();
}
}
@@ -854,18 +852,6 @@ void OQueryController::impl_initialize()
try
{
- if(!m_xFormatter.is() && haveDataSource())
- {
- Reference< XNumberFormatsSupplier> xSupplier;
- ::cppu::extractInterface(xSupplier, getDataSource()->getPropertyValue(PROPERTY_NUMBERFORMATSSUPPLIER));
- if(xSupplier.is())
- {
- m_xFormatter = Reference< ::com::sun::star::util::XNumberFormatter >(getORB()
- ->createInstance(::rtl::OUString::createFromAscii("com.sun.star.util.NumberFormatter")), UNO_QUERY);
- m_xFormatter->attachNumberFormatsSupplier(xSupplier);
- }
- OSL_ENSURE(m_xFormatter.is(),"No NumberFormatter!");
- }
getContainer()->initialize();
resetImpl();
switchDesignModeImpl(this,getContainer(),m_bDesign);
@@ -955,7 +941,7 @@ sal_Bool OQueryController::Construct(Window* pParent)
{
// TODO: we have to check if we should create the text- or the design- view
- m_pView = new OQueryContainerWindow(pParent,this,m_xMultiServiceFacatory);
+ m_pView = new OQueryContainerWindow(pParent,this,getORB());
return OJoinController::Construct(pParent);
}
@@ -1684,6 +1670,7 @@ bool OQueryController::allowQueries() const
}
// -----------------------------------------------------------------------------
+// -----------------------------------------------------------------------------
} // namespace dbaui
// -----------------------------------------------------------------------------