LibreOffice Module dbaccess (master) 1
Namespaces | Functions
UITools.cxx File Reference
#include <UITools.hxx>
#include <sfx2/docfilt.hxx>
#include <core_resource.hxx>
#include <dlgsave.hxx>
#include <defaultobjectnamecheck.hxx>
#include <strings.hxx>
#include <comphelper/extract.hxx>
#include <com/sun/star/sdb/DatabaseContext.hpp>
#include <com/sun/star/sdb/XSingleSelectQueryAnalyzer.hpp>
#include <com/sun/star/sdb/XCompletedConnection.hpp>
#include <com/sun/star/sdbc/XDataSource.hpp>
#include <com/sun/star/sdb/SQLContext.hpp>
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
#include <com/sun/star/sdbcx/XViewsSupplier.hpp>
#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
#include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
#include <com/sun/star/sdbcx/XAppend.hpp>
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
#include <com/sun/star/sdbc/XResultSetMetaData.hpp>
#include <com/sun/star/sdbc/ColumnValue.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
#include <com/sun/star/ucb/XContent.hpp>
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/ucb/InteractiveIOException.hpp>
#include <com/sun/star/sdb/XDocumentDataSource.hpp>
#include <com/sun/star/ucb/IOErrorCode.hpp>
#include <vcl/syswin.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XHierarchicalNameContainer.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/awt/TextAlign.hpp>
#include <TypeInfo.hxx>
#include <FieldDescriptions.hxx>
#include <comphelper/stl_types.hxx>
#include <comphelper/types.hxx>
#include <comphelper/propertysequence.hxx>
#include <svx/svxids.hrc>
#include <sal/log.hxx>
#include <svl/numformat.hxx>
#include <svl/itempool.hxx>
#include <helpids.h>
#include <svl/itemset.hxx>
#include <sbagrid.hrc>
#include <svl/rngitem.hxx>
#include <svl/intitem.hxx>
#include <svx/numinf.hxx>
#include <svl/zforlist.hxx>
#include <dlgattr.hxx>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/util/NumberFormatter.hpp>
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/util/XNumberFormatter.hpp>
#include <strings.hrc>
#include <sqlmessage.hxx>
#include <dlgsize.hxx>
#include <svtools/editbrowsebox.hxx>
#include <tools/urlobj.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <svl/numuno.hxx>
#include <svl/filenotation.hxx>
#include <connectivity/FValue.hxx>
#include <editeng/justifyitem.hxx>
#include <memory>
Include dependency graph for UITools.cxx:

Go to the source code of this file.

Namespaces

namespace  dbaui
 

Functions

SQLExceptionInfo dbaui::createConnection (const OUString &_rsDataSourceName, const Reference< css::container::XNameAccess > &_xDatabaseContext, const Reference< css::uno::XComponentContext > &_rxContext, Reference< css::lang::XEventListener > const &_rEvtLst, Reference< css::sdbc::XConnection > &_rOUTConnection)
 
SQLExceptionInfo dbaui::createConnection (const Reference< css::beans::XPropertySet > &_xDataSource, const Reference< css::uno::XComponentContext > &_rxContext, Reference< css::lang::XEventListener > const &_rEvtLst, Reference< css::sdbc::XConnection > &_rOUTConnection)
 
Reference< XDataSource > dbaui::getDataSourceByName (const OUString &_rDataSourceName, weld::Window *_pErrorMessageParent, const Reference< XComponentContext > &_rxContext, ::dbtools::SQLExceptionInfo *_pErrorInfo)
 
Reference< XInterfacedbaui::getDataSourceOrModel (const Reference< XInterface > &_xObject)
 
TOTypeInfoSP dbaui::getTypeInfoFromType (const OTypeInfoMap &_rTypeInfo, sal_Int32 _nType, const OUString &_sTypeName, const OUString &_sCreateParams, sal_Int32 _nPrecision, sal_Int32 _nScale, bool _bAutoIncrement, bool &_brForceToType)
 return the most suitable typeinfo for a requested type More...
 
void dbaui::fillTypeInfo (const Reference< css::sdbc::XConnection > &_rxConnection, std::u16string_view _rsTypeNames, OTypeInfoMap &_rTypeInfoMap, std::vector< OTypeInfoMap::iterator > &_rTypeInfoIters)
 
void dbaui::setColumnProperties (const Reference< XPropertySet > &_rxColumn, const OFieldDescription *_pFieldDesc)
 
OUString dbaui::createDefaultName (const Reference< XDatabaseMetaData > &_xMetaData, const Reference< XNameAccess > &_xTables, const OUString &_sName)
 
bool dbaui::checkDataSourceAvailable (const OUString &_sDataSourceName, const Reference< css::uno::XComponentContext > &_xContext)
 
sal_Int32 dbaui::mapTextAlign (const SvxCellHorJustify &_eAlignment)
 maps SvxCellHorJustify to css::awt::TextAlign More...
 
SvxCellHorJustify dbaui::mapTextJustify (sal_Int32 _nAlignment)
 maps css::awt::TextAlign to SvxCellHorJustify More...
 
void dbaui::callColumnFormatDialog (const Reference< XPropertySet > &xAffectedCol, const Reference< XPropertySet > &xField, SvNumberFormatter *_pFormatter, weld::Widget *_pParent)
 
bool dbaui::callColumnFormatDialog (weld::Widget *_pParent, SvNumberFormatter *_pFormatter, sal_Int32 _nDataType, sal_Int32 &_nFormatKey, SvxCellHorJustify &_eJustify, bool _bHasFormat)
 second variant of the function before More...
 
std::shared_ptr< const SfxFilterdbaui::getStandardDatabaseFilter ()
 returns the standard database filter More...
 
bool dbaui::appendToFilter (const Reference< XConnection > &_xConnection, const OUString &_sName, const Reference< XComponentContext > &_rxContext, weld::Window *pParent)
 
void dbaui::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 _pWindow. More...
 
void dbaui::adjustBrowseBoxColumnWidth (::svt::EditBrowseBox *_pBox, sal_uInt16 _nColId)
 
bool dbaui::isSQL92CheckEnabled (const Reference< XConnection > &_xConnection)
 
bool dbaui::isAppendTableAliasEnabled (const Reference< XConnection > &_xConnection)
 
bool dbaui::generateAsBeforeTableAlias (const Reference< XConnection > &_xConnection)
 
void dbaui::fillAutoIncrementValue (const Reference< XPropertySet > &_xDatasource, bool &_rAutoIncrementValueEnabled, OUString &_rsAutoIncrementValue)
 
void dbaui::fillAutoIncrementValue (const Reference< XConnection > &_xConnection, bool &_rAutoIncrementValueEnabled, OUString &_rsAutoIncrementValue)
 
OUString dbaui::getStrippedDatabaseName (const Reference< XPropertySet > &_xDataSource, OUString &_rsDatabaseName)
 
void dbaui::setEvalDateFormatForFormatter (Reference< css::util::XNumberFormatter > const &_rxFormatter)
 
TOTypeInfoSP dbaui::queryPrimaryKeyType (const OTypeInfoMap &_rTypeInfo)
 query for a type info which can be used to create a primary key column More...
 
TOTypeInfoSP dbaui::queryTypeInfoByType (sal_Int32 _nDataType, const OTypeInfoMap &_rTypeInfo)
 query for a specific type. More...
 
sal_Int32 dbaui::askForUserAction (weld::Window *pParent, TranslateId pTitle, TranslateId pText, bool bAll, std::u16string_view rName)
 returns the configuration node name of user defined drivers. More...
 
Reference< XPropertySetdbaui::createView (const OUString &_rName, const Reference< XConnection > &_rxConnection, const OUString &_rCommand)
 
Reference< XPropertySetdbaui::createView (const OUString &_rName, const Reference< XConnection > &_rxConnection, const Reference< XPropertySet > &_rxSourceObject)
 
bool dbaui::insertHierarchyElement (weld::Window *pParent, const Reference< XComponentContext > &_rxContext, const Reference< XHierarchicalNameContainer > &_xNames, const OUString &_sParentFolder, bool _bForm, bool _bCollection, const Reference< XContent > &_xContent, bool _bMove)
 
Reference< XNumberFormatter > dbaui::getNumberFormatter (const Reference< XConnection > &_rxConnection, const Reference< css::uno::XComponentContext > &_rxContext)