diff options
author | Frank Schönheit <fs@openoffice.org> | 2002-09-12 13:15:52 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2002-09-12 13:15:52 +0000 |
commit | 5afc5b49d47eac7808decc7e3135c0106f714bd3 (patch) | |
tree | f6c9b05d7086f3a9a8f114e03389944b4040c116 /svx/source/inc/dbcharsethelper.hxx | |
parent | 2538f8425e579147bdbe8fcde6e4190317aae844 (diff) |
#97420# (on behalf of BerryJia@openoffice.org) lazy construction, to load the dbtools lib only if needed
Diffstat (limited to 'svx/source/inc/dbcharsethelper.hxx')
-rw-r--r-- | svx/source/inc/dbcharsethelper.hxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/svx/source/inc/dbcharsethelper.hxx b/svx/source/inc/dbcharsethelper.hxx index 329ad4754ec2..7e0ed63a6bc4 100644 --- a/svx/source/inc/dbcharsethelper.hxx +++ b/svx/source/inc/dbcharsethelper.hxx @@ -2,9 +2,9 @@ * * $RCSfile: dbcharsethelper.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: fs $ $Date: 2001-08-13 15:05:20 $ + * last change: $Author: fs $ $Date: 2002-09-12 14:15:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -77,13 +77,16 @@ namespace svxform class ODataAccessCharsetHelper : public ODbtoolsClient { protected: - ::rtl::Reference< ::connectivity::simple::IDataAccessCharSet > m_xCharsetHelper; - + mutable ::rtl::Reference< ::connectivity::simple::IDataAccessCharSet > m_xCharsetHelper; + //add by BerryJia for fixing Bug97420 Time:2002-9-12-11:00(PRC time) + void create() const; public: ODataAccessCharsetHelper( ); inline sal_Int32 getSupportedTextEncodings( ::std::vector< rtl_TextEncoding >& _rEncs ) const { + if ( !m_xCharsetHelper.is() ) + create(); if ( m_xCharsetHelper.is() ) return m_xCharsetHelper->getSupportedTextEncodings( _rEncs ); return 0; @@ -99,6 +102,9 @@ namespace svxform /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.1 2001/08/13 15:05:20 fs + * initial checkin - wrapper for accessing the dbcharset functionality without linking against dbtools + * * * Revision 1.0 13.08.01 16:58:49 fs ************************************************************************/ |