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

#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, const SwDBData &rData)
 
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 OString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog ()
 
- Public Member Functions inherited from utl::ConfigItem
virtual ~ConfigItem () override
 
 ConfigItem (ConfigItem const &)=default
 
 ConfigItem (ConfigItem &&)=default
 
ConfigItemoperator= (ConfigItem const &)=delete
 
ConfigItemoperator= (ConfigItem &&)=delete
 
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::Button &, void)
 
 DECL_LINK (AutoFormatHdl, weld::Button &, void)
 
 DECL_LINK (TableFormatHdl, weld::Button &, void)
 
 DECL_LINK (DBFormatHdl, weld::Button &, void)
 
 DECL_LINK (TableToFromHdl, weld::Button &, void)
 
 DECL_LINK (TVSelectHdl, weld::TreeView &, void)
 
 DECL_LINK (CBSelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (DblClickHdl, weld::TreeView &, void)
 
 DECL_LINK (HeaderHdl, weld::Button &, 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 aDBColumns
 
const SwDBData aDBData
 
OUString const sNoTmpl
 
SwViewpView
 
std::unique_ptr< SwTableAutoFormatm_xTAutoFormat
 
std::unique_ptr< SfxItemSetpTableSet
 
std::unique_ptr< SwTableReppRep
 
sal_Int32 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< SwNumFormatListBoxm_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

- Protected Member Functions inherited from utl::ConfigItem
 ConfigItem (const OUString &rSubTree, 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 79 of file dbinsdlg.hxx.

Constructor & Destructor Documentation

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

Definition at line 402 of file dbinsdlg.cxx.

Member Function Documentation

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 917 of file dbinsdlg.cxx.

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

SwInsertDBColAutoPilot::DECL_LINK ( PageHdl  ,
weld::Button ,
void   
)
private
SwInsertDBColAutoPilot::DECL_LINK ( AutoFormatHdl  ,
weld::Button ,
void   
)
private
SwInsertDBColAutoPilot::DECL_LINK ( TableFormatHdl  ,
weld::Button ,
void   
)
private
SwInsertDBColAutoPilot::DECL_LINK ( DBFormatHdl  ,
weld::Button ,
void   
)
private
SwInsertDBColAutoPilot::DECL_LINK ( TableToFromHdl  ,
weld::Button ,
void   
)
private
SwInsertDBColAutoPilot::DECL_LINK ( TVSelectHdl  ,
weld::TreeView ,
void   
)
private
SwInsertDBColAutoPilot::DECL_LINK ( CBSelectHdl  ,
weld::ComboBox ,
void   
)
private
SwInsertDBColAutoPilot::DECL_LINK ( DblClickHdl  ,
weld::TreeView ,
void   
)
private
SwInsertDBColAutoPilot::DECL_LINK ( HeaderHdl  ,
weld::Button ,
void   
)
private
void SwInsertDBColAutoPilot::ImplCommit ( )
overrideprivatevirtual
void SwInsertDBColAutoPilot::Load ( )
private
void SwInsertDBColAutoPilot::Notify ( const css::uno::Sequence< OUString > &  aPropertyNames)
overrideprivatevirtual

Implements utl::ConfigItem.

Definition at line 1484 of file dbinsdlg.cxx.

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

Member Data Documentation

SwInsDBColumns SwInsertDBColAutoPilot::aDBColumns
private

Definition at line 81 of file dbinsdlg.hxx.

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

const SwDBData SwInsertDBColAutoPilot::aDBData
private

Definition at line 82 of file dbinsdlg.hxx.

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

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

Definition at line 120 of file dbinsdlg.hxx.

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

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

Definition at line 109 of file dbinsdlg.hxx.

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

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

Definition at line 102 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

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

Definition at line 110 of file dbinsdlg.hxx.

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

Definition at line 118 of file dbinsdlg.hxx.

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

Definition at line 97 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

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

Definition at line 117 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

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

Definition at line 114 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

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

Definition at line 116 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

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

Definition at line 115 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

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

Definition at line 108 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

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

Definition at line 105 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

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

Definition at line 111 of file dbinsdlg.hxx.

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

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

Definition at line 119 of file dbinsdlg.hxx.

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

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

Definition at line 99 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

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

Definition at line 100 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

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

Definition at line 124 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

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

Definition at line 123 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

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

Definition at line 94 of file dbinsdlg.hxx.

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

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

Definition at line 93 of file dbinsdlg.hxx.

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

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

Definition at line 95 of file dbinsdlg.hxx.

Referenced by Load(), and SwInsertDBColAutoPilot().

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

Definition at line 103 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

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

Definition at line 104 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

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

Definition at line 121 of file dbinsdlg.hxx.

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

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

Definition at line 122 of file dbinsdlg.hxx.

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

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

Definition at line 87 of file dbinsdlg.hxx.

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

sal_Int32 SwInsertDBColAutoPilot::nGBFormatLen
private

Definition at line 91 of file dbinsdlg.hxx.

Referenced by SwInsertDBColAutoPilot().

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

Definition at line 90 of file dbinsdlg.hxx.

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

Definition at line 89 of file dbinsdlg.hxx.

Referenced by DataToDoc(), and SetTabSet().

SwView* SwInsertDBColAutoPilot::pView
private
OUString const SwInsertDBColAutoPilot::sNoTmpl
private

Definition at line 84 of file dbinsdlg.hxx.

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


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