LibreOffice Module extensions (master) 1
Functions | Variables
datman.cxx File Reference
#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>
Include dependency graph for datman.cxx:

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"
 

Function Documentation

◆ getColumns()

static Reference< XNameAccess > getColumns ( const Reference< XForm > &  _rxForm)
static

◆ getConnection() [1/2]

static Reference< XConnection > getConnection ( const OUString &  _rURL)
static

◆ getConnection() [2/2]

static Reference< XConnection > getConnection ( const Reference< XInterface > &  xRowSet)
static

Definition at line 120 of file datman.cxx.

References Exception, SAL_INFO, and TOOLS_WARN_EXCEPTION.

◆ gGridName()

constexpr OUStringLiteral gGridName ( u"theGrid"  )
constexpr

◆ IMPL_LINK()

IMPL_LINK ( MappingDialog_Impl  ,
ListBoxSelectHdl  ,
weld::ComboBox ,
rListBox  ,
void   
)

Definition at line 362 of file datman.cxx.

◆ IMPL_LINK_NOARG() [1/2]

IMPL_LINK_NOARG ( DBChangeDialog_Impl  ,
DoubleClickHdl  ,
weld::TreeView ,
bool   
)

Definition at line 444 of file datman.cxx.

References m_xDialog, and RET_OK.

◆ IMPL_LINK_NOARG() [2/2]

IMPL_LINK_NOARG ( MappingDialog_Impl  ,
OkHdl  ,
weld::Button ,
void   
)

◆ lcl_FindLogicalName()

static sal_uInt16 lcl_FindLogicalName ( BibConfig const *  pConfig,
std::u16string_view  rLogicalColumnName 
)
static

Definition at line 234 of file datman.cxx.

References COLUMN_COUNT, BibConfig::GetDefColumnName(), and i.

Variable Documentation

◆ FM_PROP_CONTROLSOURCE

constexpr OUStringLiteral FM_PROP_CONTROLSOURCE = u"DataField"
constexpr

Definition at line 76 of file datman.cxx.

Referenced by BibDataManager::InsertFields(), and BibDataManager::loadControlModel().

◆ FM_PROP_LABEL

constexpr OUStringLiteral FM_PROP_LABEL = u"Label"
constexpr

Definition at line 75 of file datman.cxx.

Referenced by BibDataManager::InsertFields().

◆ FM_PROP_NAME

constexpr OUStringLiteral FM_PROP_NAME = u"Name"
constexpr

Definition at line 77 of file datman.cxx.

Referenced by BibDataManager::loadControlModel().