LibreOffice Module sw (master) 1
Classes | Functions | Variables
dbinsdlg.cxx File Reference
#include <dbinsdlg.hxx>
#include <float.h>
#include <hintids.hxx>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/sdbc/XDataSource.hpp>
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
#include <com/sun/star/sdbcx/XRowLocate.hpp>
#include <com/sun/star/sdb/XQueriesSupplier.hpp>
#include <com/sun/star/sdb/XColumn.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/util/NumberFormatter.hpp>
#include <com/sun/star/util/XNumberFormatTypes.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/types.hxx>
#include <svl/numuno.hxx>
#include <svl/numformat.hxx>
#include <svl/stritem.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <utility>
#include <vcl/mnemonic.hxx>
#include <svl/style.hxx>
#include <svl/zformat.hxx>
#include <sfx2/htmlmode.hxx>
#include <svl/itemset.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/boxitem.hxx>
#include <unotools/collatorwrapper.hxx>
#include <fmtclds.hxx>
#include <tabcol.hxx>
#include <uiitems.hxx>
#include <viewopt.hxx>
#include <wrtsh.hxx>
#include <view.hxx>
#include <docsh.hxx>
#include <dbmgr.hxx>
#include <tblafmt.hxx>
#include <cellatr.hxx>
#include <swtablerep.hxx>
#include <dbfld.hxx>
#include <fmtcol.hxx>
#include <swwait.hxx>
#include <modcfg.hxx>
#include <swmodule.hxx>
#include <poolfmt.hxx>
#include <connectivity/dbtools.hxx>
#include <cmdid.h>
#include <SwStyleNameMapper.hxx>
#include <tabsh.hxx>
#include <swabstdlg.hxx>
#include <strings.hrc>
#include <IDocumentMarkAccess.hxx>
#include <o3tl/any.hxx>
#include <memory>
#include <string_view>
#include <swuiexp.hxx>
Include dependency graph for dbinsdlg.cxx:

Go to the source code of this file.

Classes

struct  DB_Column
 

Functions

 IMPL_LINK (SwInsertDBColAutoPilot, PageHdl, weld::Toggleable &, rButton, void)
 
 IMPL_LINK (SwInsertDBColAutoPilot, DBFormatHdl, weld::Toggleable &, rButton, void)
 
 IMPL_LINK (SwInsertDBColAutoPilot, TableToFromHdl, weld::Button &, rButton, void)
 
 IMPL_LINK (SwInsertDBColAutoPilot, DblClickHdl, weld::TreeView &, rBox, bool)
 
 IMPL_LINK_NOARG (SwInsertDBColAutoPilot, TableFormatHdl, weld::Button &, void)
 
 IMPL_LINK_NOARG (SwInsertDBColAutoPilot, AutoFormatHdl, weld::Button &, void)
 
 IMPL_LINK (SwInsertDBColAutoPilot, TVSelectHdl, weld::TreeView &, rBox, void)
 
 IMPL_LINK_NOARG (SwInsertDBColAutoPilot, CBSelectHdl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (SwInsertDBColAutoPilot, HeaderHdl, weld::Toggleable &, void)
 
static void lcl_InsTextInArr (std::u16string_view aText, DB_Columns &rColArr)
 
static Sequence< OUString > lcl_createSourceNames (std::u16string_view rNodeName)
 
static Sequence< OUString > lcl_CreateSubNames (std::u16string_view rSubNodeName)
 
static OUString lcl_CreateUniqueName (const Sequence< OUString > &aNames)
 

Variables

const char cDBFieldStart = '<'
 
const char cDBFieldEnd = '>'
 

Function Documentation

◆ IMPL_LINK() [1/5]

IMPL_LINK ( SwInsertDBColAutoPilot  ,
DBFormatHdl  ,
weld::Toggleable ,
rButton  ,
void   
)

Definition at line 427 of file dbinsdlg.cxx.

References weld::TreeView::get_selected_text().

◆ IMPL_LINK() [2/5]

IMPL_LINK ( SwInsertDBColAutoPilot  ,
DblClickHdl  ,
weld::TreeView ,
rBox  ,
bool   
)

Definition at line 599 of file dbinsdlg.cxx.

◆ IMPL_LINK() [3/5]

IMPL_LINK ( SwInsertDBColAutoPilot  ,
PageHdl  ,
weld::Toggleable ,
rButton  ,
void   
)

◆ IMPL_LINK() [4/5]

IMPL_LINK ( SwInsertDBColAutoPilot  ,
TableToFromHdl  ,
weld::Button ,
rButton  ,
void   
)

Definition at line 446 of file dbinsdlg.cxx.

References aStr, cDBFieldEnd, cDBFieldStart, min(), n, nPos, SwInsDBColumn::sColumn, and u.

◆ IMPL_LINK() [5/5]

IMPL_LINK ( SwInsertDBColAutoPilot  ,
TVSelectHdl  ,
weld::TreeView ,
rBox  ,
void   
)

Definition at line 741 of file dbinsdlg.cxx.

References weld::TreeView::get_selected_text(), and SwInsDBColumn::sColumn.

◆ IMPL_LINK_NOARG() [1/4]

IMPL_LINK_NOARG ( SwInsertDBColAutoPilot  ,
AutoFormatHdl  ,
weld::Button ,
void   
)

◆ IMPL_LINK_NOARG() [2/4]

IMPL_LINK_NOARG ( SwInsertDBColAutoPilot  ,
CBSelectHdl  ,
weld::ComboBox ,
void   
)

Definition at line 789 of file dbinsdlg.cxx.

References weld::TreeView::get_selected_text(), and SwInsDBColumn::sColumn.

◆ IMPL_LINK_NOARG() [3/4]

IMPL_LINK_NOARG ( SwInsertDBColAutoPilot  ,
HeaderHdl  ,
weld::Toggleable ,
void   
)

Definition at line 807 of file dbinsdlg.cxx.

◆ IMPL_LINK_NOARG() [4/4]

IMPL_LINK_NOARG ( SwInsertDBColAutoPilot  ,
TableFormatHdl  ,
weld::Button ,
void   
)

◆ lcl_createSourceNames()

static Sequence< OUString > lcl_createSourceNames ( std::u16string_view  rNodeName)
static

◆ lcl_CreateSubNames()

static Sequence< OUString > lcl_CreateSubNames ( std::u16string_view  rSubNodeName)
static

◆ lcl_CreateUniqueName()

static OUString lcl_CreateUniqueName ( const Sequence< OUString > &  aNames)
static

Definition at line 1457 of file dbinsdlg.cxx.

References comphelper::findValue().

Referenced by SwInsertDBColAutoPilot::ImplCommit().

◆ lcl_InsTextInArr()

static void lcl_InsTextInArr ( std::u16string_view  aText,
DB_Columns rColArr 
)
static

Definition at line 814 of file dbinsdlg.cxx.

Referenced by SwInsertDBColAutoPilot::SplitTextToColArr().

Variable Documentation

◆ cDBFieldEnd

const char cDBFieldEnd = '>'

Definition at line 96 of file dbinsdlg.cxx.

Referenced by IMPL_LINK(), and SwInsertDBColAutoPilot::SplitTextToColArr().

◆ cDBFieldStart

const char cDBFieldStart = '<'

Definition at line 95 of file dbinsdlg.cxx.

Referenced by IMPL_LINK(), and SwInsertDBColAutoPilot::SplitTextToColArr().