LibreOffice Module sw (master) 1
|
#include <dbinsdlg.hxx>
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 | |
ConfigItem & | operator= (ConfigItem const &)=delete |
ConfigItem & | operator= (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 () |
ConfigurationBroadcaster & | operator= (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 () |
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_Bool > | GetReadOnlyStates (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) |
Definition at line 80 of file dbinsdlg.hxx.
SwInsertDBColAutoPilot::SwInsertDBColAutoPilot | ( | SwView & | rView, |
css::uno::Reference< css::sdbc::XDataSource > const & | rxSource, | ||
css::uno::Reference< css::sdbcx::XColumnsSupplier > const & | xColSupp, | ||
SwDBData | aData | ||
) |
Definition at line 173 of file dbinsdlg.cxx.
References aColNames, Any, Exception, SfxStyleSheetBasePool::First(), SwEditShell::GetCurLang(), getDefaultNumberFormat(), SwView::GetDocShell(), LanguageTag::getLocale(), SfxStyleSheetBase::GetName(), SwEditShell::GetNumberFormatter(), SwDocShell::GetStyleSheetPool(), SwEditShell::GetTableFormat(), SwView::GetWrtShell(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), LINK, Load(), m_aDBColumns, m_nGBFormatLen, m_pView, m_sNoTmpl, m_xCbTableHeadon, m_xEdDbText, m_xFormatFrame, m_xHeadFrame, m_xIbDbcolAllFrom, m_xIbDbcolAllTo, m_xIbDbcolOneFrom, m_xIbDbcolOneTo, m_xIbDbcolToEdit, m_xLbDbFormatFromUsr, m_xLbDbParaColl, m_xLbTableCol, m_xLbTableDbColumn, m_xLbTextDbColumn, m_xPbTableAutofmt, m_xPbTableFormat, m_xRbAsField, m_xRbAsTable, m_xRbAsText, m_xRbDbFormatFromDb, m_xRbDbFormatFromUsr, m_xRbHeadlColnms, m_xRbHeadlEmpty, n, SfxStyleSheetBasePool::Next(), and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
|
overridevirtual |
Definition at line 388 of file dbinsdlg.cxx.
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.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overrideprivatevirtual |
Implements utl::ConfigItem.
Definition at line 1470 of file dbinsdlg.cxx.
References Any, SwInsDBColumn::bHasFormat, SwInsDBColumn::bIsDBFormat, utl::ConfigItem::ClearNodeElements(), LanguageTag::convertToBcp47(), SwStyleNameMapper::FillUIName(), GetAppLanguage(), SvNumberFormatter::GetEntry(), SvNumberformat::GetFormatstring(), SvNumberformat::GetLanguage(), utl::ConfigItem::GetNodeNames(), SwEditShell::GetNumberFormatter(), utl::ConfigItem::GetProperties(), SwView::GetWrtShell(), i, lcl_createSourceNames(), lcl_CreateSubNames(), lcl_CreateUniqueName(), m_aDBColumns, m_aDBData, m_pView, m_sNoTmpl, m_xCbTableHeadon, m_xEdDbText, m_xLbDbParaColl, m_xLbTableCol, m_xRbAsField, m_xRbAsTable, m_xRbHeadlEmpty, m_xTAutoFormat, n, SwDBData::nCommandType, SwInsDBColumn::nUsrNumFormat, pValues, RES_POOLCOLL_STANDARD, SwInsDBColumn::sColumn, SwDBData::sCommand, SwDBData::sDataSource, utl::ConfigItem::SetSetProperties(), and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
|
private |
Definition at line 1577 of file dbinsdlg.cxx.
References Any, SwInsDBColumn::bHasFormat, SwInsDBColumn::bIsDBFormat, LanguageTag::convertToLanguageType(), SwInsDBColumn::eUsrNumFormatLng, SvNumberFormatter::GetEntryKey(), GetName(), utl::ConfigItem::GetNodeNames(), SwEditShell::GetNumberFormatter(), utl::ConfigItem::GetProperties(), SwView::GetWrtShell(), lcl_createSourceNames(), lcl_CreateSubNames(), SwTableAutoFormatTable::Load(), m, m_aDBColumns, m_aDBData, m_pView, m_xCbTableHeadon, m_xEdDbText, m_xIbDbcolAllFrom, m_xIbDbcolAllTo, m_xIbDbcolOneFrom, m_xIbDbcolOneTo, m_xLbDbParaColl, m_xLbTableCol, m_xLbTableDbColumn, m_xRbAsField, m_xRbAsTable, m_xRbAsText, m_xRbHeadlColnms, m_xRbHeadlEmpty, m_xTAutoFormat, n, nIndex, nType, NUMBERFORMAT_ENTRY_NOT_FOUND, SvNumberFormatter::PutEntry(), rSet, SwInsDBColumn::sColumn, SwDBData::sCommand, SwDBData::sDataSource, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), SwTableAutoFormatTable::size(), and SwInsDBColumn::sUsrNumFormat.
Referenced by SwInsertDBColAutoPilot().
|
overrideprivatevirtual |
Implements utl::ConfigItem.
Definition at line 1468 of file dbinsdlg.cxx.
|
private |
Definition at line 1380 of file dbinsdlg.cxx.
References SwCursorShell::ClearMark(), FN_PARAM_TABLE_NAME, fnTableEnd, fnTableStart, SwFormat::GetName(), SwEditShell::GetTableFormat(), CntUnencodedStringItem::GetValue(), SwView::GetWrtShell(), GotoCurrTable(), i, ItemSetToTableParam(), m_pTableSet, m_pView, m_xTAutoFormat, SwCursorShell::MoveTable(), RES_BACKGROUND(), RES_BOX(), and SwCursorShell::SetMark().
Referenced by DataToDoc().
|
private |
Definition at line 833 of file dbinsdlg.cxx.
References SwInsDBColumn::bHasFormat, SwInsDBColumn::bIsDBFormat, cDBFieldEnd, cDBFieldStart, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SwViewShell::GetDoc(), SwView::GetWrtShell(), SwEditShell::InsertFieldType(), lcl_InsTextInArr(), m_aDBColumns, m_aDBData, m_pView, SwInsDBColumn::nDBNumFormat, SwInsDBColumn::nUsrNumFormat, DB_Column::pField, SwInsDBColumn::sColumn, SwField::SetSubType(), and nsSwExtendedSubType::SUB_OWN_FMT.
Referenced by DataToDoc().
|
private |
Definition at line 82 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), SplitTextToColArr(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 83 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SplitTextToColArr().
|
private |
Definition at line 92 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 91 of file dbinsdlg.hxx.
|
private |
Definition at line 90 of file dbinsdlg.hxx.
Referenced by DataToDoc(), and SetTabSet().
|
private |
Definition at line 87 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), SetTabSet(), SplitTextToColArr(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 85 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 121 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 110 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 103 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 111 of file dbinsdlg.hxx.
|
private |
Definition at line 119 of file dbinsdlg.hxx.
|
private |
Definition at line 98 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 118 of file dbinsdlg.hxx.
Referenced by Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 115 of file dbinsdlg.hxx.
Referenced by Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 117 of file dbinsdlg.hxx.
Referenced by Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 116 of file dbinsdlg.hxx.
Referenced by Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 109 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 106 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 112 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 120 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 100 of file dbinsdlg.hxx.
Referenced by Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 101 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 125 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 124 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 95 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 94 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 96 of file dbinsdlg.hxx.
Referenced by Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 104 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 105 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 122 of file dbinsdlg.hxx.
Referenced by DataToDoc(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 123 of file dbinsdlg.hxx.
Referenced by ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 88 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SetTabSet().