// we only need forward decl here namespace com::sun::star {
namespace beans { class XPropertySet;} namespace container
{ class XNameAccess; class XHierarchicalNameContainer;
} namespace lang
{ class XEventListener;
} namespace sdbc
{ class XDatabaseMetaData; class XConnection;
} namespace util
{ class XNumberFormatter;
} namespace ucb { class XContent; } namespace uno { class XComponentContext; }
}
namespace svt
{ class EditBrowseBox;
}
namespace vcl { class Window; } namespace weld { class Widget; class Window;
} class SvNumberFormatter; class SfxFilter;
namespace dbaui
{
/** creates a new connection and appends the eventlistener @param_rsDataSourceNamenameofthedatasource @param_xDatabaseContextthedatabasecontext @param_rxContexttheUNOcomponentcontext @param_rEvtLsttheeventlistenerwhichwillbeaddedtothenewcreatedconnection @param_rOUTConnectionthisparameterwillbefilledwiththenewcreatedconnection @returnSQLExceptionInfocontainsaSQLException,SQLContextoraSQLWarningwhentheyaraisedelse.isValid()willreturnfalse
*/
::dbtools::SQLExceptionInfo createConnection( const OUString& _rsDataSourceName, const css::uno::Reference< css::container::XNameAccess >& _xDatabaseContext, const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
css::uno::Reference< css::lang::XEventListener> const & _rEvtLst,
css::uno::Reference< css::sdbc::XConnection>& _rOUTConnection ); /** creates a new connection and appends the eventlistener @param_xDataSourcethedatasource @param_rxContexttheUNOcomponentcontext @param_rEvtLsttheeventlistenerwhichwillbeaddedtothenewcreatedconnection @param_rOUTConnectionthisparameterwillbefilledwiththenewcreatedconnection @returnSQLExceptionInfocontainsaSQLException,SQLContextoraSQLWarningwhentheyaraisedelse.isValid()willreturnfalse
*/
::dbtools::SQLExceptionInfo createConnection( const css::uno::Reference< css::beans::XPropertySet >& _xDataSource, const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
css::uno::Reference< css::lang::XEventListener> const & _rEvtLst,
css::uno::Reference< css::sdbc::XConnection>& _rOUTConnection );
/** fills a map and a vector with localized type names @param_rxConnectiontheconnectiontoaccessthemetadata @param_rsTypeNamesalistoflocalizedtypenamesseparatedwith';' @param_rTypeInfoMapthefilledmapwiththetypenames @param_rTypeInfoItersthevectorfilledwithmapiterators
*/ void fillTypeInfo( const css::uno::Reference< css::sdbc::XConnection>& _rxConnection,
std::u16string_view _rsTypeNames,
OTypeInfoMap& _rTypeInfoMap,
std::vector<OTypeInfoMap::iterator>& _rTypeInfoIters);
/** fill a column with data of a field description @param_rxColumnthecolumnwhichshouldbefilled @param_pFieldDescthesourceofthedata
*/ class OFieldDescription; void setColumnProperties( const css::uno::Reference< css::beans::XPropertySet>& _rxColumn, const OFieldDescription* _pFieldDesc);
/** checks if the given name exists in the database context
*/ bool checkDataSourceAvailable( const OUString& _sDataSourceName, const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
/** returns either the model when data source is given as parameter, orreturnsadatasourcewhenamodelisgiven. @param_xObjectEitheradatasourceoramodel.
*/
css::uno::Reference< css::uno::XInterface > getDataSourceOrModel(const css::uno::Reference< css::uno::XInterface >& _xObject);
/** call the format dialog and set the selected format at the column @param_xAffectedColFonttobeconverted @param_xFieldFonttobeconverted
*/ void callColumnFormatDialog(const css::uno::Reference< css::beans::XPropertySet>& _xAffectedCol, const css::uno::Reference< css::beans::XPropertySet>& _xField,
SvNumberFormatter* _pFormatter,
weld::Widget* _pParent);
/** second variant of the function before
*/ bool callColumnFormatDialog(weld::Widget* _pParent,
SvNumberFormatter* _pFormatter,
sal_Int32 _nDataType,
sal_Int32& _nFormatKey,
SvxCellHorJustify& _eJustify, bool _bHasFormat); /** append a name to tablefilter of a datasource @paramxConnectiontheconnectionisneedtogetthedatasource @paramrNamethenamewhichshouldbeappended @paramrxContextneededtocheckifdatasourceisavailable @parampParentneededwhenanerrormustbeshown @returnfalsewhendatsourceisnotavailableotherwisetrue
*/ bool appendToFilter(const css::uno::Reference< css::sdbc::XConnection>& xConnection, const OUString& rName, const css::uno::Reference< css::uno::XComponentContext >& rxContext,
weld::Window* pParent);
/** notifySystemWindow adds or remove the given window _pToRegister at the Systemwindow found when search _pWindow. @param_pWindow ThewindowwhichisusedtosearchfortheSystemWindow. @param_pToRegister ThewindowwhichshouldbeaddedorremovedontheTaskPaneList. @param_rMemFunc ThememberfunctionwhichshouldbecalledattheSystemWindowwhenfound. Possiblevaluesare: ::comphelper::mem_fun(&TaskPaneList::AddWindow) ::comphelper::mem_fun(&TaskPaneList::RemoveWindow)
*/ void notifySystemWindow(vcl::Window const * _pWindow,
vcl::Window* _pToRegister, const ::comphelper::mem_fun1_t<TaskPaneList,vcl::Window*>& _rMemFunc);
/** check if SQL92 name checking is enabled @param_xConnection Usedtogetthedatasourceasparentfromtheconnection. @return <TRUE/>ifsootherwise<FALSE/>
*/ bool isSQL92CheckEnabled(const css::uno::Reference< css::sdbc::XConnection>& _xConnection);
/** check if the alias name of the table should be added at select statements @param_xConnection Usedtogetthedatasourceasparentfromtheconnection. @return <TRUE/>ifsootherwise<FALSE/>
*/ bool isAppendTableAliasEnabled(const css::uno::Reference< css::sdbc::XConnection>& _xConnection);
/** determines whether when generating SQL statements, AS should be placed before a table alias
*/ bool generateAsBeforeTableAlias( const css::uno::Reference< css::sdbc::XConnection>& _rxConnection );
/** fills the bool and string value with information out of the datasource info property @param_xDatasource Askedfortheproperties. @param_rAutoIncrementValueEnabled <OUT/>Settosal_Truewhenthepropertywassetinthedatasource. @param_rsAutoIncrementValue <OUT/>Settothevaluewhenthepropertywassetinthedatasource.
*/ void fillAutoIncrementValue(const css::uno::Reference< css::beans::XPropertySet>& _xDatasource
,bool& _rAutoIncrementValueEnabled
,OUString& _rsAutoIncrementValue);
/** fills the bool and string value with information out of the datasource info property @param_xConnection Usedtogetthedatasourceasparentfromtheconnection. @param_rAutoIncrementValueEnabled <OUT/>Settosal_Truewhenthepropertywassetinthedatasource. @param_rsAutoIncrementValue <OUT/>Settothevaluewhenthepropertywassetinthedatasource.
*/ void fillAutoIncrementValue(const css::uno::Reference< css::sdbc::XConnection>& _xConnection
,bool& _rAutoIncrementValueEnabled
,OUString& _rsAutoIncrementValue);
/** set the evaluation flag at the number formatter @param_rxFormatter
*/ void setEvalDateFormatForFormatter(css::uno::Reference< css::util::XNumberFormatter > const & _rxFormatter);
/** query for a type info which can be used to create a primary key column @param_rTypeInfo Themapwhichcontainsallavailabletypes. @return Thetypeinfowhichcanbeusedtocreateaprimarykeycolumn.
*/
TOTypeInfoSP queryPrimaryKeyType(const OTypeInfoMap& _rTypeInfo);
/** query for a specific type. @param_nDataType Thetypewearesearching. @param_rTypeInfo Themapwhichcontainsallavailabletypes. @return Thetypeor<NULL/>ifwecan'tfindit.
*/
TOTypeInfoSP queryTypeInfoByType(sal_Int32 _nDataType,const OTypeInfoMap& _rTypeInfo);
/** returns the configuration node name of user defined drivers. @return theconfigurationnodenameofuserdefineddrivers.
*/
/** returns the result of the user action when view the query dialog. @parampParent Theparentofthedialog @parampTitle Astringresourceidforthetextwhichwillbedisplayedastitle. @parampText Astringresourceidforthetextwhichwillbedisplayedabovethebuttons. Whenthestringcontainsa#1.Thiswillbereplacedbythename. @parambAll Whensetto<TRUE/>,theallbuttonwillbeappended. @paramrName Thenameoftheobjecttoaskfor. @return RET_YES,RET_NO,RET_ALL
*/
sal_Int32 askForUserAction(weld::Window* pParent, TranslateId pTitle, TranslateId pText, bool bAll, std::u16string_view rName);
/** creates a new view from a query or table @param_sName Thenameoftheviewtobecreated. @param_xConnection Thesourceconnection. @param_xSourceObject Theobjectforwhichaviewshouldbecreated. @return Thecreatedview.
*/
css::uno::Reference< css::beans::XPropertySet> createView( const OUString& _sName
,const css::uno::Reference< css::sdbc::XConnection >& _xConnection
,const css::uno::Reference< css::beans::XPropertySet>& _xSourceObject);
/** creates a view with the given command
*/
css::uno::Reference< css::beans::XPropertySet> createView( const OUString& _rName, const css::uno::Reference< css::sdbc::XConnection >& _xConnection, const OUString& _rCommand
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.