LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwInsertDBColAutoPilot Class Referencefinal

#include <dbinsdlg.hxx>

Inheritance diagram for SwInsertDBColAutoPilot:
[legend]
Collaboration diagram for SwInsertDBColAutoPilot:
[legend]

Public Member Functions

 SwInsertDBColAutoPilot (SwView &rView, css::uno::Reference< css::sdbc::XDataSource > const &rxSource, css::uno::Reference< css::sdbcx::XColumnsSupplier > const &xColSupp, SwDBData aData)
 
virtual ~SwInsertDBColAutoPilot () override
 
void DataToDoc (const css::uno::Sequence< css::uno::Any > &rSelection, css::uno::Reference< css::sdbc::XDataSource > const &rxSource, css::uno::Reference< css::sdbc::XConnection > const &xConnection, css::uno::Reference< css::sdbc::XResultSet > const &xResultSet)
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 
- Public Member Functions inherited from utl::ConfigItem
virtual ~ConfigItem () override
 
 ConfigItem (ConfigItem const &)=default
 
 ConfigItem (ConfigItem &&)=default
 
ConfigItemoperator= (ConfigItem const &)=delete
 
ConfigItemoperator= (ConfigItem &&)=delete
 
virtual void Notify (const css::uno::Sequence< OUString > &aPropertyNames)=0
 
const OUString & GetSubTreeName () const
 
bool IsModified () const
 
void Commit ()
 
ConfigItemMode GetMode () const
 
- Public Member Functions inherited from utl::ConfigurationBroadcaster
void AddListener (utl::ConfigurationListener *pListener)
 
void RemoveListener (utl::ConfigurationListener const *pListener)
 
void NotifyListeners (ConfigurationHints nHint)
 
 ConfigurationBroadcaster ()
 
 ConfigurationBroadcaster (ConfigurationBroadcaster const &)
 
virtual ~ConfigurationBroadcaster ()
 
ConfigurationBroadcasteroperator= (ConfigurationBroadcaster const &other)
 
virtual void BlockBroadcasts (bool bBlock)
 

Private Member Functions

 DECL_LINK (PageHdl, weld::Toggleable &, void)
 
 DECL_LINK (AutoFormatHdl, weld::Button &, void)
 
 DECL_LINK (TableFormatHdl, weld::Button &, void)
 
 DECL_LINK (DBFormatHdl, weld::Toggleable &, void)
 
 DECL_LINK (TableToFromHdl, weld::Button &, void)
 
 DECL_LINK (TVSelectHdl, weld::TreeView &, void)
 
 DECL_LINK (CBSelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (DblClickHdl, weld::TreeView &, bool)
 
 DECL_LINK (HeaderHdl, weld::Toggleable &, void)
 
bool SplitTextToColArr (const OUString &rText, DB_Columns &rColArr, bool bInsField)
 
virtual void Notify (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual void ImplCommit () override
 
void Load ()
 
void SetTabSet ()
 

Private Attributes

SwInsDBColumns m_aDBColumns
 
const SwDBData m_aDBData
 
OUString m_sNoTmpl
 
SwViewm_pView
 
std::unique_ptr< SwTableAutoFormatm_xTAutoFormat
 
std::unique_ptr< SfxItemSetm_pTableSet
 
std::unique_ptr< SwTableRepm_pRep
 
sal_Int32 m_nGBFormatLen
 
std::unique_ptr< weld::RadioButtonm_xRbAsTable
 
std::unique_ptr< weld::RadioButtonm_xRbAsField
 
std::unique_ptr< weld::RadioButtonm_xRbAsText
 
std::unique_ptr< weld::Framem_xHeadFrame
 
std::unique_ptr< weld::TreeViewm_xLbTableDbColumn
 
std::unique_ptr< weld::TreeViewm_xLbTextDbColumn
 
std::unique_ptr< weld::Framem_xFormatFrame
 
std::unique_ptr< weld::RadioButtonm_xRbDbFormatFromDb
 
std::unique_ptr< weld::RadioButtonm_xRbDbFormatFromUsr
 
std::unique_ptr< NumFormatListBoxm_xLbDbFormatFromUsr
 
std::unique_ptr< weld::Buttonm_xIbDbcolToEdit
 
std::unique_ptr< weld::TextViewm_xEdDbText
 
std::unique_ptr< weld::Labelm_xFtDbParaColl
 
std::unique_ptr< weld::ComboBoxm_xLbDbParaColl
 
std::unique_ptr< weld::Buttonm_xIbDbcolAllTo
 
std::unique_ptr< weld::Buttonm_xIbDbcolOneTo
 
std::unique_ptr< weld::Buttonm_xIbDbcolOneFrom
 
std::unique_ptr< weld::Buttonm_xIbDbcolAllFrom
 
std::unique_ptr< weld::Labelm_xFtTableCol
 
std::unique_ptr< weld::TreeViewm_xLbTableCol
 
std::unique_ptr< weld::CheckButtonm_xCbTableHeadon
 
std::unique_ptr< weld::RadioButtonm_xRbHeadlColnms
 
std::unique_ptr< weld::RadioButtonm_xRbHeadlEmpty
 
std::unique_ptr< weld::Buttonm_xPbTableFormat
 
std::unique_ptr< weld::Buttonm_xPbTableAutofmt
 

Additional Inherited Members

- Static Public Member Functions inherited from utl::ConfigItem
static css::uno::Sequence< OUString > GetNodeNames (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, ConfigNameFormat eFormat)
 
static css::uno::Sequence< css::uno::Any > GetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales)
 
static bool PutProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales)
 
static bool ClearNodeSet (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode)
 
static bool ReplaceSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues, bool bAllLocales)
 
static bool SetSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
- Protected Member Functions inherited from utl::ConfigItem
 ConfigItem (OUString aSubTree, ConfigItemMode nMode=ConfigItemMode::NONE)
 
void SetModified ()
 
void ClearModified ()
 
css::uno::Sequence< css::uno::Any > GetProperties (const css::uno::Sequence< OUString > &rNames)
 
css::uno::Sequence< sal_BoolGetReadOnlyStates (const css::uno::Sequence< OUString > &rNames)
 
bool PutProperties (const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues)
 
bool EnableNotification (const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false)
 
void DisableNotification ()
 
css::uno::Sequence< OUString > GetNodeNames (const OUString &rNode)
 
css::uno::Sequence< OUString > GetNodeNames (const OUString &rNode, ConfigNameFormat eFormat)
 
bool ClearNodeSet (const OUString &rNode)
 
bool ClearNodeElements (const OUString &rNode, css::uno::Sequence< OUString > const &rElements)
 
bool SetSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool ReplaceSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool AddNode (const OUString &rNode, const OUString &rNewNode)
 

Detailed Description

Definition at line 80 of file dbinsdlg.hxx.

Constructor & Destructor Documentation

◆ SwInsertDBColAutoPilot()

SwInsertDBColAutoPilot::SwInsertDBColAutoPilot ( SwView rView,
css::uno::Reference< css::sdbc::XDataSource > const &  rxSource,
css::uno::Reference< css::sdbcx::XColumnsSupplier > const &  xColSupp,
SwDBData  aData 
)

◆ ~SwInsertDBColAutoPilot()

SwInsertDBColAutoPilot::~SwInsertDBColAutoPilot ( )
overridevirtual

Definition at line 388 of file dbinsdlg.cxx.

Member Function Documentation

◆ DataToDoc()

void SwInsertDBColAutoPilot::DataToDoc ( const css::uno::Sequence< css::uno::Any > &  rSelection,
css::uno::Reference< css::sdbc::XDataSource > const &  rxSource,
css::uno::Reference< css::sdbc::XConnection > const &  xConnection,
css::uno::Reference< css::sdbc::XResultSet > const &  xResultSet 
)

Definition at line 910 of file dbinsdlg.cxx.

References SwDBFormatData::aLocale, SwDBFormatData::aNullDate, Any, SwEditShell::AppendUndoForInsertFromDB(), SwInsDBColumn::bHasFormat, SwInsDBColumn::bIsDBFormat, Chars, SfxItemSet::ClearItem(), SwCursorShell::ClearMark(), DB_Column::COL_FIELD, DB_Column::COL_TEXT, utl::ConfigItem::Commit(), SwField::CopyField(), SwDBManager::createCursor(), DbNextSet, IDocumentMarkAccess::deleteMark(), SwWrtShell::DelRight(), SwEditShell::DoesUndo(), SwEditShell::DoUndo(), DB_Column::eColType, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), SwEditShell::EndAllAction(), SwEditShell::EndUndo(), Exception, DB_Column::FILLTEXT, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SwEditShell::FindTextFormatCollByName(), fnParaEnd, fnParaStart, fnTableStart, SwViewShell::GetAttrPool(), SwEditShell::GetCurLang(), SwDBManager::GetDBField(), SwView::GetDocShell(), GetHtmlMode(), SwViewShell::getIDocumentMarkAccess(), SwModuleOptions::GetInsTableFlags(), LanguageTag::getLocale(), SwTextFormatColl::GetNextTextFormatColl(), SvNumberFormatter::GetNullDate(), SwEditShell::GetNumberFormatter(), SvNumberFormatter::GetOutputString(), SwStyleNameMapper::GetPoolIdFromUIName(), SwEditShell::GetTextCollFromPool(), SvNumberFormatter::GetType(), CntUInt32Item::GetValue(), SwView::GetWrtShell(), GoCurrPara(), SwCursorShell::GoNextCell(), GotoCurrTable(), SwWrtShell::GotoMark(), GotoPrevTable(), SwWrtShell::HasSelection(), HTMLMODE_ON, i, SwWrtShell::Insert(), SwWrtShell::InsertField2(), SwEditShell::InsertTable(), SwCursorShell::IsAutoUpdateCells(), SwCursorShell::IsEndPara(), SwCursorShell::IsSttPara(), m_aDBColumns, m_aDBData, m_pTableSet, m_pView, m_sNoTmpl, m_xCbTableHeadon, m_xEdDbText, m_xLbDbParaColl, m_xLbTableCol, m_xRbAsField, m_xRbAsTable, m_xRbHeadlColnms, m_xTAutoFormat, SwEditShell::MakeTextFormatColl(), SwCursorShell::MoveTable(), n, SwDBData::nCommandType, SwInsDBColumn::nDBNumFormat, DB_Column::nFormat, nId, SwInsDBColumn::nUsrNumFormat, nValue, DB_Column::pColInfo, DB_Column::pField, DB_Column::pText, SfxItemSet::Put(), RES_BOXATR_VALUE(), SwInsDBColumn::sColumn, SwDBData::sCommand, SwDBData::sDataSource, SwCursorShell::SetAutoUpdateCells(), SwCursorShell::SetBookmark(), SwCursorShell::SetMark(), SwFEShell::SetRowsToRepeat(), SwEditShell::SetTableBoxFormulaAttrs(), SwFEShell::SetTableStyle(), SetTabSet(), SwEditShell::SetTextFormatColl(), SwWrtShell::SplitNode(), DB_Column::SPLITPARA, SplitTextToColArr(), SwEditShell::StartAllAction(), SwEditShell::StartUndo(), SW_MOD, TOOLS_WARN_EXCEPTION, TxtColl, IDocumentMarkAccess::UNO_BOOKMARK, xColumn, and SwDBFormatData::xFormatter.

◆ DECL_LINK() [1/9]

SwInsertDBColAutoPilot::DECL_LINK ( AutoFormatHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/9]

SwInsertDBColAutoPilot::DECL_LINK ( CBSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [3/9]

SwInsertDBColAutoPilot::DECL_LINK ( DBFormatHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [4/9]

SwInsertDBColAutoPilot::DECL_LINK ( DblClickHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [5/9]

SwInsertDBColAutoPilot::DECL_LINK ( HeaderHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [6/9]

SwInsertDBColAutoPilot::DECL_LINK ( PageHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [7/9]

SwInsertDBColAutoPilot::DECL_LINK ( TableFormatHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [8/9]

SwInsertDBColAutoPilot::DECL_LINK ( TableToFromHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [9/9]

SwInsertDBColAutoPilot::DECL_LINK ( TVSelectHdl  ,
weld::TreeView ,
void   
)
private

◆ ImplCommit()

void SwInsertDBColAutoPilot::ImplCommit ( )
overrideprivatevirtual

◆ Load()

void SwInsertDBColAutoPilot::Load ( )
private

◆ Notify()

void SwInsertDBColAutoPilot::Notify ( const css::uno::Sequence< OUString > &  aPropertyNames)
overrideprivatevirtual

Implements utl::ConfigItem.

Definition at line 1468 of file dbinsdlg.cxx.

◆ SetTabSet()

void SwInsertDBColAutoPilot::SetTabSet ( )
private

◆ SplitTextToColArr()

bool SwInsertDBColAutoPilot::SplitTextToColArr ( const OUString &  rText,
DB_Columns rColArr,
bool  bInsField 
)
private

Member Data Documentation

◆ m_aDBColumns

SwInsDBColumns SwInsertDBColAutoPilot::m_aDBColumns
private

Definition at line 82 of file dbinsdlg.hxx.

Referenced by DataToDoc(), ImplCommit(), Load(), SplitTextToColArr(), and SwInsertDBColAutoPilot().

◆ m_aDBData

const SwDBData SwInsertDBColAutoPilot::m_aDBData
private

Definition at line 83 of file dbinsdlg.hxx.

Referenced by DataToDoc(), ImplCommit(), Load(), and SplitTextToColArr().

◆ m_nGBFormatLen

sal_Int32 SwInsertDBColAutoPilot::m_nGBFormatLen
private

Definition at line 92 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

◆ m_pRep

std::unique_ptr<SwTableRep> SwInsertDBColAutoPilot::m_pRep
private

Definition at line 91 of file dbinsdlg.hxx.

◆ m_pTableSet

std::unique_ptr<SfxItemSet> SwInsertDBColAutoPilot::m_pTableSet
private

Definition at line 90 of file dbinsdlg.hxx.

Referenced by DataToDoc(), and SetTabSet().

◆ m_pView

SwView* SwInsertDBColAutoPilot::m_pView
private

◆ m_sNoTmpl

OUString SwInsertDBColAutoPilot::m_sNoTmpl
private

Definition at line 85 of file dbinsdlg.hxx.

Referenced by DataToDoc(), ImplCommit(), and SwInsertDBColAutoPilot().

◆ m_xCbTableHeadon

std::unique_ptr<weld::CheckButton> SwInsertDBColAutoPilot::m_xCbTableHeadon
private

Definition at line 121 of file dbinsdlg.hxx.

Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().

◆ m_xEdDbText

std::unique_ptr<weld::TextView> SwInsertDBColAutoPilot::m_xEdDbText
private

Definition at line 110 of file dbinsdlg.hxx.

Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().

◆ m_xFormatFrame

std::unique_ptr<weld::Frame> SwInsertDBColAutoPilot::m_xFormatFrame
private

Definition at line 103 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

◆ m_xFtDbParaColl

std::unique_ptr<weld::Label> SwInsertDBColAutoPilot::m_xFtDbParaColl
private

Definition at line 111 of file dbinsdlg.hxx.

◆ m_xFtTableCol

std::unique_ptr<weld::Label> SwInsertDBColAutoPilot::m_xFtTableCol
private

Definition at line 119 of file dbinsdlg.hxx.

◆ m_xHeadFrame

std::unique_ptr<weld::Frame> SwInsertDBColAutoPilot::m_xHeadFrame
private

Definition at line 98 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

◆ m_xIbDbcolAllFrom

std::unique_ptr<weld::Button> SwInsertDBColAutoPilot::m_xIbDbcolAllFrom
private

Definition at line 118 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

◆ m_xIbDbcolAllTo

std::unique_ptr<weld::Button> SwInsertDBColAutoPilot::m_xIbDbcolAllTo
private

Definition at line 115 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

◆ m_xIbDbcolOneFrom

std::unique_ptr<weld::Button> SwInsertDBColAutoPilot::m_xIbDbcolOneFrom
private

Definition at line 117 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

◆ m_xIbDbcolOneTo

std::unique_ptr<weld::Button> SwInsertDBColAutoPilot::m_xIbDbcolOneTo
private

Definition at line 116 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

◆ m_xIbDbcolToEdit

std::unique_ptr<weld::Button> SwInsertDBColAutoPilot::m_xIbDbcolToEdit
private

Definition at line 109 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

◆ m_xLbDbFormatFromUsr

std::unique_ptr<NumFormatListBox> SwInsertDBColAutoPilot::m_xLbDbFormatFromUsr
private

Definition at line 106 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

◆ m_xLbDbParaColl

std::unique_ptr<weld::ComboBox> SwInsertDBColAutoPilot::m_xLbDbParaColl
private

Definition at line 112 of file dbinsdlg.hxx.

Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().

◆ m_xLbTableCol

std::unique_ptr<weld::TreeView> SwInsertDBColAutoPilot::m_xLbTableCol
private

Definition at line 120 of file dbinsdlg.hxx.

Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().

◆ m_xLbTableDbColumn

std::unique_ptr<weld::TreeView> SwInsertDBColAutoPilot::m_xLbTableDbColumn
private

Definition at line 100 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

◆ m_xLbTextDbColumn

std::unique_ptr<weld::TreeView> SwInsertDBColAutoPilot::m_xLbTextDbColumn
private

Definition at line 101 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

◆ m_xPbTableAutofmt

std::unique_ptr<weld::Button> SwInsertDBColAutoPilot::m_xPbTableAutofmt
private

Definition at line 125 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

◆ m_xPbTableFormat

std::unique_ptr<weld::Button> SwInsertDBColAutoPilot::m_xPbTableFormat
private

Definition at line 124 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

◆ m_xRbAsField

std::unique_ptr<weld::RadioButton> SwInsertDBColAutoPilot::m_xRbAsField
private

Definition at line 95 of file dbinsdlg.hxx.

Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().

◆ m_xRbAsTable

std::unique_ptr<weld::RadioButton> SwInsertDBColAutoPilot::m_xRbAsTable
private

Definition at line 94 of file dbinsdlg.hxx.

Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().

◆ m_xRbAsText

std::unique_ptr<weld::RadioButton> SwInsertDBColAutoPilot::m_xRbAsText
private

Definition at line 96 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

◆ m_xRbDbFormatFromDb

std::unique_ptr<weld::RadioButton> SwInsertDBColAutoPilot::m_xRbDbFormatFromDb
private

Definition at line 104 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

◆ m_xRbDbFormatFromUsr

std::unique_ptr<weld::RadioButton> SwInsertDBColAutoPilot::m_xRbDbFormatFromUsr
private

Definition at line 105 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

◆ m_xRbHeadlColnms

std::unique_ptr<weld::RadioButton> SwInsertDBColAutoPilot::m_xRbHeadlColnms
private

Definition at line 122 of file dbinsdlg.hxx.

Referenced by DataToDoc(), Load(), and SwInsertDBColAutoPilot().

◆ m_xRbHeadlEmpty

std::unique_ptr<weld::RadioButton> SwInsertDBColAutoPilot::m_xRbHeadlEmpty
private

Definition at line 123 of file dbinsdlg.hxx.

Referenced by ImplCommit(), Load(), and SwInsertDBColAutoPilot().

◆ m_xTAutoFormat

std::unique_ptr<SwTableAutoFormat> SwInsertDBColAutoPilot::m_xTAutoFormat
private

Definition at line 88 of file dbinsdlg.hxx.

Referenced by DataToDoc(), ImplCommit(), Load(), and SetTabSet().


The documentation for this class was generated from the following files: