Tag: cws_src680_hsqlcsv User: fs Date: 2006/09/14 04:52:04 Modified: dba/dbaccess/source/ui/dlg/adtabdlg.cxx
Log: #i69526# outsourced image handling to an ImageProvider class File Changes: Directory: /dba/dbaccess/source/ui/dlg/ ======================================= File [changed]: adtabdlg.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/adtabdlg.cxx?r1=1.24&r2=1.24.46.1 Delta lines: +15 -7 -------------------- --- adtabdlg.cxx 10 Jul 2006 15:25:35 -0000 1.24 +++ adtabdlg.cxx 14 Sep 2006 11:52:02 -0000 1.24.46.1 @@ -4,9 +4,9 @@ * * $RCSfile: adtabdlg.cxx,v $ * - * $Revision: 1.24 $ + * $Revision: 1.24.46.1 $ * - * last change: $Author: obo $ $Date: 2006/07/10 15:25:35 $ + * last change: $Author: fs $ $Date: 2006/09/14 11:52:02 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -92,13 +92,18 @@ #ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_ #include <com/sun/star/container/XNameAccess.hpp> #endif +#ifndef _COM_SUN_STAR_SDB_APPLICATION_DATABASEOBJECT_HPP_ +#include <com/sun/star/sdb/application/DatabaseObject.hpp> +#endif #ifndef DBAUI_TOOLS_HXX #include "UITools.hxx" #endif +#ifndef DBACCESS_IMAGEPROVIDER_HXX +#include "imageprovider.hxx" +#endif #include <algorithm> - // slot ids using namespace dbaui; using namespace ::com::sun::star::uno; @@ -107,6 +112,7 @@ using namespace ::com::sun::star::sdbc; using namespace ::com::sun::star::sdbcx; using namespace dbtools; +namespace DatabaseObject = ::com::sun::star::sdb::application::DatabaseObject; //============================================================================== //= TableObjectListFacade @@ -218,7 +224,7 @@ sViews = Sequence< ::rtl::OUString>(); } - m_rTableList.UpdateTableList( m_xConnection->getMetaData(), sTables, sViews ); + m_rTableList.UpdateTableList( m_xConnection, sTables, sViews ); SvLBoxEntry* pEntry = m_rTableList.First(); while( pEntry && m_rTableList.GetModel()->HasChilds( pEntry ) ) { @@ -267,8 +273,10 @@ m_rQueryList.Clear(); try { - Image aQueryImage( ModuleRes( QUERY_TREE_ICON ) ); - Image aQueryImageHC( ModuleRes( QUERY_TREE_ICON_SCH ) ); + ImageProvider aImageProvider( m_xConnection ); + Image aQueryImage( aImageProvider.getDefaultImage( DatabaseObject::QUERY, false ) ); + Image aQueryImageHC( aImageProvider.getDefaultImage( DatabaseObject::QUERY, true ) ); + m_rQueryList.SetDefaultExpandedEntryBmp( aQueryImage, BMP_COLOR_NORMAL ); m_rQueryList.SetDefaultCollapsedEntryBmp( aQueryImage, BMP_COLOR_NORMAL ); m_rQueryList.SetDefaultExpandedEntryBmp( aQueryImageHC, BMP_COLOR_HIGHCONTRAST ); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
