LibreOffice Module extensions (master) 1
|
#include <sal/config.h>
#include <o3tl/any.hxx>
#include <sal/log.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/sdbc/ResultSetType.hpp>
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
#include <com/sun/star/sdbcx/XRowLocate.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp>
#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
#include <com/sun/star/sdbc/XDataSource.hpp>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/sdb/DatabaseContext.hpp>
#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
#include <com/sun/star/sdbc/XConnection.hpp>
#include <com/sun/star/sdb/XCompletedConnection.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
#include <com/sun/star/form/ListSourceType.hpp>
#include <com/sun/star/form/XLoadable.hpp>
#include <com/sun/star/form/runtime/FormController.hpp>
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
#include <com/sun/star/form/XGridColumnFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <tools/debug.hxx>
#include <tools/urlobj.hxx>
#include <vcl/weld.hxx>
#include "datman.hxx"
#include "bibresid.hxx"
#include "bibmod.hxx"
#include "bibview.hxx"
#include "toolbar.hxx"
#include "bibconfig.hxx"
#include "bibbeam.hxx"
#include "general.hxx"
#include <strings.hrc>
#include <helpids.h>
#include <connectivity/dbtools.hxx>
#include <memory>
Go to the source code of this file.
Functions | |
static Reference< XConnection > | getConnection (const OUString &_rURL) |
static Reference< XConnection > | getConnection (const Reference< XInterface > &xRowSet) |
static Reference< XNameAccess > | getColumns (const Reference< XForm > &_rxForm) |
static sal_uInt16 | lcl_FindLogicalName (BibConfig const *pConfig, std::u16string_view rLogicalColumnName) |
IMPL_LINK (MappingDialog_Impl, ListBoxSelectHdl, weld::ComboBox &, rListBox, void) | |
IMPL_LINK_NOARG (MappingDialog_Impl, OkHdl, weld::Button &, void) | |
IMPL_LINK_NOARG (DBChangeDialog_Impl, DoubleClickHdl, weld::TreeView &, bool) | |
constexpr OUStringLiteral | gGridName (u"theGrid") |
Variables | |
constexpr OUStringLiteral | FM_PROP_LABEL = u"Label" |
constexpr OUStringLiteral | FM_PROP_CONTROLSOURCE = u"DataField" |
constexpr OUStringLiteral | FM_PROP_NAME = u"Name" |
|
static |
Definition at line 143 of file datman.cxx.
References DBG_ASSERT, Exception, getConnection(), and TOOLS_WARN_EXCEPTION.
Referenced by BibDataManager::getQueryFields(), BibDataManager::InsertFields(), and BibDataManager::loadControlModel().
|
static |
Definition at line 79 of file datman.cxx.
References DBG_ASSERT, Exception, comphelper::getProcessComponentContext(), and TOOLS_WARN_EXCEPTION.
Referenced by BibDataManager::createDatabaseForm(), getColumns(), BibDataManager::getDataSources(), BibDataManager::HasActiveConnection(), BibDataManager::setActiveDataSource(), and BibDataManager::setActiveDataTable().
|
static |
Definition at line 120 of file datman.cxx.
References Exception, SAL_INFO, and TOOLS_WARN_EXCEPTION.
|
constexpr |
IMPL_LINK | ( | MappingDialog_Impl | , |
ListBoxSelectHdl | , | ||
weld::ComboBox & | , | ||
rListBox | , | ||
void | |||
) |
Definition at line 362 of file datman.cxx.
IMPL_LINK_NOARG | ( | DBChangeDialog_Impl | , |
DoubleClickHdl | , | ||
weld::TreeView & | , | ||
bool | |||
) |
Definition at line 444 of file datman.cxx.
IMPL_LINK_NOARG | ( | MappingDialog_Impl | , |
OkHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 376 of file datman.cxx.
References Mapping::aColumnPairs, COLUMN_COUNT, BibModul::GetConfig(), BibConfig::GetDefColumnName(), m_xDialog, BibDBDescriptor::nCommandType, RET_CANCEL, RET_OK, BibDBDescriptor::sDataSource, BibConfig::SetMapping(), StringPair::sLogicalColumnName, sNone, StringPair::sRealColumnName, Mapping::sTableName, BibDBDescriptor::sTableOrQuery, and Mapping::sURL.
|
static |
Definition at line 234 of file datman.cxx.
References COLUMN_COUNT, BibConfig::GetDefColumnName(), and i.
|
constexpr |
Definition at line 76 of file datman.cxx.
Referenced by BibDataManager::InsertFields(), and BibDataManager::loadControlModel().
|
constexpr |
Definition at line 75 of file datman.cxx.
Referenced by BibDataManager::InsertFields().
|
constexpr |
Definition at line 77 of file datman.cxx.
Referenced by BibDataManager::loadControlModel().