User: kz Date: 05/01/21 09:17:31 Modified: /dba/dbaccess/source/ui/inc/ UITools.hxx
Log: INTEGRATION: CWS dba22 (1.25.4); FILE MERGED 2005/01/11 15:46:27 fs 1.25.4.2: #i39187# +getDataSourceByName_displayError 2005/01/03 12:51:23 oj 1.25.4.1: #i39146# renable DnD in beamer File Changes: Directory: /dba/dbaccess/source/ui/inc/ ======================================= File [changed]: UITools.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/UITools.hxx?r1=1.25&r2=1.26 Delta lines: +40 -0 -------------------- --- UITools.hxx 17 Nov 2004 14:50:33 -0000 1.25 +++ UITools.hxx 21 Jan 2005 17:17:28 -0000 1.26 @@ -111,6 +111,10 @@ struct URL; class XNumberFormatter; } + namespace frame + { + class XModel; + } namespace ucb { class XContent; } }}} @@ -138,6 +142,7 @@ /** creates a new connection and appends the eventlistener @param _rsDataSourceName name of the datasource @param _xDatabaseContext the database context + @param _rMF the multi service factory @param _rEvtLst the eventlistener which will be added to the new created connection @param _rOUTConnection this parameter will be filled with the new created connection @return SQLExceptionInfo contains a SQLException, SQLContext or a SQLWarning when they araised else .isValid() will return false @@ -150,6 +155,7 @@ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _rOUTConnection ); /** creates a new connection and appends the eventlistener @param _xDataSource the datasource + @param _rMF the multi service factory @param _rEvtLst the eventlistener which will be added to the new created connection @param _rOUTConnection this parameter will be filled with the new created connection @return SQLExceptionInfo contains a SQLException, SQLContext or a SQLWarning when they araised else .isValid() will return false @@ -212,6 +218,33 @@ */ sal_Int32 mapTextAllign(const SvxCellHorJustify& _eAlignment); + /** retrieves a data source given by name or URL, and displays an error if this fails + + Any <type scope="com::sun::star::sdbc">SQLException</type>s which occur will be displayed. + Additionally, and Exceptions which indicate a data source name pointing to a non-existent database + URL will also be denoted. Yet more additionally, and other exceptions will be forwarded to + a <type scope="com::sun::star::sdb">InteractionHandler</type>. + + @param _rxDBContext + The database context. Must not be <NULL/> + @param _rDataSourceName + the URL of the database document, or the name of a registered data source + @param _pErrorMessageParent + the window to use as parent for error messages + @param _rxORB + a service factory to use for components to be created + @param _bDisplayError + determines whether the method should display an error, when it happens, or simply absorb it + */ + ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > + getDataSourceByName_displayError( + const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxDBContext, + const ::rtl::OUString& _rDataSourceName, + Window* _pErrorMessageParent, + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > _rxORB, + bool _bDisplayError + ); + /** maps com::sun::star::awt::TextAlign to SvxCellHorJustify @param com::sun::star::awt::TextAlign& _nAlignment @return the corresponding SvxCellHorJustify @@ -496,6 +529,13 @@ ,const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent>& _xContent = ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent>() ,sal_Bool _bMove = sal_False); + /** creates a number formatter + @param _rxConnection + The connection is needed to create the formatter + @param _rMF + The multi service factory + */ + ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > getNumberFormatter(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rMF ); // ......................................................................... } // ......................................................................... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
