User: kz Date: 05/01/21 09:19:23 Modified: /dba/dbaccess/source/ui/inc/ tabletree.hxx
Log: INTEGRATION: CWS dba22 (1.12.8); FILE MERGED 2004/12/13 12:29:45 oj 1.12.8.1: #i38529# check if a table is in real a view File Changes: Directory: /dba/dbaccess/source/ui/inc/ ======================================= File [changed]: tabletree.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/tabletree.hxx?r1=1.12&r2=1.13 Delta lines: +20 -5 -------------------- --- tabletree.hxx 9 Nov 2004 12:35:33 -0000 1.12 +++ tabletree.hxx 21 Jan 2005 17:19:20 -0000 1.13 @@ -105,6 +105,9 @@ OTableTreeListBox( Window* pParent ,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB , const ResId& rResId,sal_Bool _bHiContrast,sal_Bool _bVirtualRoot=sal_True ); + + typedef ::std::pair< ::rtl::OUString,sal_Bool> TTableViewName; + typedef ::std::vector< TTableViewName > TNames; /** call when HiContrast change. */ virtual void notifyHiContrastChanged(); @@ -120,16 +123,17 @@ const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection ) throw(::com::sun::star::sdbc::SQLException); - /** fill the table list with the tables and views determined by the two given containers + /** fill the table list with the tables and views determined by the two given containers. + The views sequence is used to determine which table is of type view. @param _rxConnMetaData meta data describing the connection where you got the object names from. Must not be NULL. Used to split the full qualified names into it's parts. - @param _rxTables table container. May be NULL. - @param _rxView view container. May be NULL. + @param _rTables table/view sequence + @param _rViews view sequence */ void UpdateTableList( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& _rxConnMetaData, - const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rTables, - const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rViews + const ::com::sun::star::uno::Sequence< ::rtl::OUString>& _rTables, + const ::com::sun::star::uno::Sequence< ::rtl::OUString>& _rViews ); /** to be used if a foreign instance added a table @@ -183,6 +187,17 @@ ); sal_Bool haveVirtualRoot() const { return m_bVirtualRoot; } + + /** fill the table list with the tables and views determined by the two given containers + @param _rxConnMetaData meta data describing the connection where you got the object names from. Must not be NULL. + Used to split the full qualified names into it's parts. + @param _rTables table/view sequence, the second argument is <TRUE/> if it is a table, otherwise it is a view. + */ + void UpdateTableList( + const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& _rxConnMetaData, + const TNames& _rTables + ); + }; //......................................................................... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
