summaryrefslogtreecommitdiff
path: root/svx/source/form/sqlparserclient.cxx
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2002-09-12 13:15:52 +0000
committerFrank Schönheit <fs@openoffice.org>2002-09-12 13:15:52 +0000
commit5afc5b49d47eac7808decc7e3135c0106f714bd3 (patch)
treef6c9b05d7086f3a9a8f114e03389944b4040c116 /svx/source/form/sqlparserclient.cxx
parent2538f8425e579147bdbe8fcde6e4190317aae844 (diff)
#97420# (on behalf of BerryJia@openoffice.org) lazy construction, to load the dbtools lib only if needed
Diffstat (limited to 'svx/source/form/sqlparserclient.cxx')
-rw-r--r--svx/source/form/sqlparserclient.cxx17
1 files changed, 14 insertions, 3 deletions
diff --git a/svx/source/form/sqlparserclient.cxx b/svx/source/form/sqlparserclient.cxx
index 1925c9240a10..6aa7b0d3ee57 100644
--- a/svx/source/form/sqlparserclient.cxx
+++ b/svx/source/form/sqlparserclient.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sqlparserclient.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: fs $ $Date: 2001-07-25 13:35:31 $
+ * last change: $Author: fs $ $Date: 2002-09-12 14:15:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -77,8 +77,16 @@ namespace svxform
//--------------------------------------------------------------------
OSQLParserClient::OSQLParserClient(const Reference< XMultiServiceFactory >& _rxORB)
{
+ m_xORB = _rxORB;
+ }
+ //--------------------------------------------------------------------
+ //add by BerryJia for fixing Bug97420 Time:2002-9-12-11:00(PRC time)
+ void OSQLParserClient::create() const
+ {
+ if (!getFactory().is())
+ ODbtoolsClient::create();
if (getFactory().is())
- m_xParser = getFactory()->createSQLParser(_rxORB);
+ m_xParser = getFactory()->createSQLParser(m_xORB);
}
//........................................................................
@@ -88,6 +96,9 @@ namespace svxform
/*************************************************************************
* history:
* $Log: not supported by cvs2svn $
+ * Revision 1.1 2001/07/25 13:35:31 fs
+ * initial checkin - base class for load-on-demand usage of the OSQLParser
+ *
*
* Revision 1.0 24.07.01 17:46:21 fs
************************************************************************/