Tag: cws_src680_reportdesign02 User: oj Date: 2007-12-20 07:49:05+0000 Modified: dba/connectivity/inc/connectivity/dbtools.hxx
Log: RESYNC: (1.32-1.33); FILE MERGED File Changes: Directory: /dba/connectivity/inc/connectivity/ ============================================== File [changed]: dbtools.hxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/inc/connectivity/dbtools.hxx?r1=1.32.114.1&r2=1.32.114.2 Delta lines: +40 -12 --------------------- --- dbtools.hxx 2007-10-26 11:04:12+0000 1.32.114.1 +++ dbtools.hxx 2007-12-20 07:48:48+0000 1.32.114.2 @@ -95,6 +95,11 @@ } } } +namespace rtl +{ + class OUStringBuffer; +} + //......................................................................... namespace dbtools { @@ -112,10 +117,6 @@ //========================================================================= // date conversion -// extern ::com::sun::star::util::Date STANDARD_DB_DATE; -// double ToStandardDbDate(const ::com::sun::star::util::Date& rNullDate, double rVal); -// double ToNullDate(const ::com::sun::star::util::Date& rNullDate, double rVal); - // calculates the default numberformat for a given datatype and a give language sal_Int32 getDefaultNumberFormat(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _xColumn, const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatTypes >& _xTypes, @@ -232,7 +233,10 @@ /** returns the columns of the named table of the given connection */ - ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> getTableFields(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _rxConn, const ::rtl::OUString& _rName); + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> getTableFields( + const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _rxConn, + const ::rtl::OUString& _rName + ); /** get fields for a result set given by a "command descriptor" @@ -342,7 +346,10 @@ @param _pAsciiSettingName the ASCII name of the setting */ - bool getBooleanDataSourceSetting( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection, const sal_Char* _pAsciiSettingName ); + bool getBooleanDataSourceSetting( + const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection, + const sal_Char* _pAsciiSettingName + ); /** check if a specific property is enabled in the info sequence @deprecated @@ -689,6 +696,9 @@ const ::rtl::OUString& _sSchema, const ::rtl::OUString& _sTable); + typedef ::std::pair<sal_Bool,sal_Bool> TBoolPair; + typedef ::std::pair< TBoolPair,sal_Int32 > ColumnInformation; + typedef ::std::multimap< ::rtl::OUString, ColumnInformation, ::comphelper::UStringMixLess> ColumnInformationMap; /** collects the information about auto increment, currency and data type for the given column name. The column must be quoted, * is also valid. @param _xConnection @@ -700,13 +710,31 @@ @param _rInfo The information about the column(s). */ - typedef ::std::pair<sal_Bool,sal_Bool> TBoolPair; - typedef ::std::pair< TBoolPair,sal_Int32 > ColumnInformation; - typedef ::std::multimap< ::rtl::OUString, ColumnInformation, ::comphelper::UStringMixLess> ColumnInformationMap; void collectColumnInformation( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _xConnection, const ::rtl::OUString& _sComposedTableName, const ::rtl::OUString& _rName, ColumnInformationMap& _rInfo); + + + /** adds a boolean comparison clause to the given SQL predicate + + @param _rExpression + the expression which is to be compared with a boolean value + @param _bValue + the boolean value which the expression is to be compared with + @param _nBooleanComparisonMode + the boolean comparison mode to be used. Usually obtained from + a css.sdb.DataSource's Settings member. + @param _out_rSQLPredicate + the buffer to which the comparison predicate will be appended + */ + void getBoleanComparisonPredicate( + const ::rtl::OUString& _rExpression, + const sal_Bool _bValue, + const sal_Int32 _nBooleanComparisonMode, + ::rtl::OUStringBuffer& _out_rSQLPredicate + ); + //......................................................................... } // namespace dbtools //......................................................................... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
