41 class XHierarchicalNameContainer;
49 struct FontDescriptor;
54 class XDatabaseMetaData;
60 class XNumberFormatter;
62 namespace ucb {
class XContent; }
63 namespace uno {
class XComponentContext; }
93 const OUString& _rsDataSourceName,
94 const css::uno::Reference< css::container::XNameAccess >& _xDatabaseContext,
95 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
96 css::uno::Reference< css::lang::XEventListener>
const & _rEvtLst,
97 css::uno::Reference< css::sdbc::XConnection>& _rOUTConnection );
106 const css::uno::Reference< css::beans::XPropertySet >& _xDataSource,
107 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
108 css::uno::Reference< css::lang::XEventListener>
const & _rEvtLst,
109 css::uno::Reference< css::sdbc::XConnection>& _rOUTConnection );
117 void fillTypeInfo(
const css::uno::Reference< css::sdbc::XConnection>& _rxConnection,
118 std::u16string_view _rsTypeNames,
120 std::vector<OTypeInfoMap::iterator>& _rTypeInfoIters);
130 OUString
createDefaultName(
const css::uno::Reference< css::sdbc::XDatabaseMetaData>& _xMetaData,
131 const css::uno::Reference< css::container::XNameAccess>& _xTables,
132 const OUString& _sName);
137 const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
161 css::uno::Reference< css::sdbc::XDataSource >
163 const OUString& _rDataSourceName,
165 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
173 css::uno::Reference< css::uno::XInterface >
getDataSourceOrModel(
const css::uno::Reference< css::uno::XInterface >& _xObject);
186 const css::uno::Reference< css::beans::XPropertySet>& _xField,
194 sal_Int32 _nDataType,
195 sal_Int32& _nFormatKey,
205 bool appendToFilter(
const css::uno::Reference< css::sdbc::XConnection>& xConnection,
206 const OUString& rName,
207 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
223 const ::comphelper::mem_fun1_t<TaskPaneList,vcl::Window*>& _rMemFunc);
256 ,
bool& _rAutoIncrementValueEnabled
257 ,OUString& _rsAutoIncrementValue);
268 ,
bool& _rAutoIncrementValueEnabled
269 ,OUString& _rsAutoIncrementValue);
326 css::uno::Reference< css::beans::XPropertySet>
createView(
const OUString& _sName
327 ,
const css::uno::Reference< css::sdbc::XConnection >& _xConnection
328 ,
const css::uno::Reference< css::beans::XPropertySet>& _xSourceObject);
333 const OUString& _rName,
334 const css::uno::Reference< css::sdbc::XConnection >& _xConnection,
335 const OUString& _rCommand
347 ,OUString& _rsDatabaseName);
377 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
378 const css::uno::Reference< css::container::XHierarchicalNameContainer>& _xNames,
379 const OUString& _sParentFolder,
381 bool _bCollection =
true,
382 const css::uno::Reference< css::ucb::XContent>& _xContent =
nullptr,
392 css::uno::Reference< css::util::XNumberFormatter >
getNumberFormatter(
const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
const css::uno::Reference< css::uno::XComponentContext >& _rxContext );
class SAL_NO_VTABLE XPropertySet
void fillTypeInfo(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, std::u16string_view _rsTypeNames, OTypeInfoMap &_rTypeInfoMap, std::vector< OTypeInfoMap::iterator > &_rTypeInfoIters)
fills a map and a vector with localized type names
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 new view from a query or table
void adjustBrowseBoxColumnWidth(::svt::EditBrowseBox *_pBox, sal_uInt16 _nColId)
void callColumnFormatDialog(const css::uno::Reference< css::beans::XPropertySet > &_xAffectedCol, const css::uno::Reference< css::beans::XPropertySet > &_xField, SvNumberFormatter *_pFormatter, weld::Widget *_pParent)
call the format dialog and set the selected format at the column
css::uno::Reference< css::sdbc::XDataSource > getDataSourceByName(const OUString &_rDataSourceName, weld::Window *_pErrorMessageParent, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, ::dbtools::SQLExceptionInfo *_pErrorInfo)
retrieves a data source given by name or URL, and displays an error if this fails
TOTypeInfoSP queryPrimaryKeyType(const OTypeInfoMap &_rTypeInfo)
query for a type info which can be used to create a primary key column
::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
bool generateAsBeforeTableAlias(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
determines whether when generating SQL statements, AS should be placed before a table alias
css::uno::Reference< css::util::XNumberFormatter > getNumberFormatter(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
creates a number formatter
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
bool isAppendTableAliasEnabled(const css::uno::Reference< css::sdbc::XConnection > &_xConnection)
check if the alias name of the table should be added at select statements
void notifySystemWindow(vcl::Window const *_pWindow, vcl::Window *_pToRegister, const ::comphelper::mem_fun1_t< TaskPaneList, vcl::Window * > &_rMemFunc)
notifySystemWindow adds or remove the given window _pToRegister at the Systemwindow found when search...
std::multimap< sal_Int32, TOTypeInfoSP > OTypeInfoMap
TOTypeInfoSP queryTypeInfoByType(sal_Int32 _nDataType, const OTypeInfoMap &_rTypeInfo)
query for a specific type.
void setColumnProperties(const css::uno::Reference< css::beans::XPropertySet > &_rxColumn, const OFieldDescription *_pFieldDesc)
SvxCellHorJustify mapTextJustify(sal_Int32 _nAlignment)
maps css::awt::TextAlign to SvxCellHorJustify
void setEvalDateFormatForFormatter(css::uno::Reference< css::util::XNumberFormatter > const &_rxFormatter)
set the evaluation flag at the number formatter
std::shared_ptr< OTypeInfo > TOTypeInfoSP
OUString createDefaultName(const css::uno::Reference< css::sdbc::XDatabaseMetaData > &_xMetaData, const css::uno::Reference< css::container::XNameAccess > &_xTables, const OUString &_sName)
css::uno::Reference< css::uno::XInterface > getDataSourceOrModel(const css::uno::Reference< css::uno::XInterface > &_xObject)
returns either the model when data source is given as parameter, or returns a data source when a mode...
sal_Int32 askForUserAction(weld::Window *pParent, TranslateId pTitle, TranslateId pText, bool bAll, std::u16string_view rName)
returns the configuration node name of user defined drivers.
bool isSQL92CheckEnabled(const css::uno::Reference< css::sdbc::XConnection > &_xConnection)
check if SQL92 name checking is enabled
std::shared_ptr< const SfxFilter > getStandardDatabaseFilter()
returns the standard database filter
sal_Int32 mapTextAlign(const SvxCellHorJustify &_eAlignment)
maps SvxCellHorJustify to css::awt::TextAlign
bool checkDataSourceAvailable(const OUString &_sDataSourceName, const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
checks if the given name exists in the database context
bool appendToFilter(const css::uno::Reference< css::sdbc::XConnection > &xConnection, const OUString &rName, const css::uno::Reference< css::uno::XComponentContext > &rxContext, weld::Window *pParent)
append a name to tablefilter of a datasource
OUString getStrippedDatabaseName(const css::uno::Reference< css::beans::XPropertySet > &_xDataSource, OUString &_rsDatabaseName)
returns the stripped database name.
bool insertHierarchyElement(weld::Window *pParent, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const css::uno::Reference< css::container::XHierarchicalNameContainer > &_xNames, const OUString &_sParentFolder, bool _bForm, bool _bCollection=true, const css::uno::Reference< css::ucb::XContent > &_xContent=nullptr, bool _bMove=false)
opens a save dialog to store a form or report folder in the current hierarchy.