diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-01 13:59:17 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-01 13:59:17 +0000 |
commit | 852774663f34dffb8885aafeef621eddd40e181c (patch) | |
tree | b27d92b9546a10af375a6f0e7059bcbdc9223788 /svx/source/form/sqlparserclient.cxx | |
parent | 9fe831abb40546f8deb0fd594fdd6b965ca4ad94 (diff) |
INTEGRATION: CWS dba24b (1.6.480); FILE MERGED
2007/09/04 21:44:21 fs 1.6.480.1: during #i73237#: slight refactoring
Diffstat (limited to 'svx/source/form/sqlparserclient.cxx')
-rw-r--r-- | svx/source/form/sqlparserclient.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/svx/source/form/sqlparserclient.cxx b/svx/source/form/sqlparserclient.cxx index b3c89e70e529..e8acfa7ae4c1 100644 --- a/svx/source/form/sqlparserclient.cxx +++ b/svx/source/form/sqlparserclient.cxx @@ -4,9 +4,9 @@ * * $RCSfile: sqlparserclient.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: obo $ $Date: 2006-09-17 05:13:37 $ + * last change: $Author: hr $ $Date: 2007-11-01 14:59:17 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -58,13 +58,12 @@ namespace svxform m_xORB = _rxORB; } //-------------------------------------------------------------------- - //add by BerryJia for fixing Bug97420 Time:2002-9-12-11:00(PRC time) - void OSQLParserClient::create() const + bool OSQLParserClient::ensureLoaded() const { - if (!getFactory().is()) - ODbtoolsClient::create(); - if (getFactory().is()) - m_xParser = getFactory()->createSQLParser(m_xORB,getParseContext()); + if ( !ODbtoolsClient::ensureLoaded() ) + return false; + m_xParser = getFactory()->createSQLParser(m_xORB,getParseContext()); + return m_xParser.is(); } //........................................................................ |