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, 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) |
![]() | |
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 (int nResponse) |
![]() | |
virtual | ~ConfigItem () override |
ConfigItem (ConfigItem const &)=default | |
ConfigItem (ConfigItem &&)=default | |
ConfigItem & | operator= (ConfigItem const &)=delete |
ConfigItem & | operator= (ConfigItem &&)=delete |
const OUString & | GetSubTreeName () const |
bool | IsModified () const |
void | Commit () |
ConfigItemMode | GetMode () const |
![]() | |
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 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) |
![]() | |
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_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 79 of file dbinsdlg.hxx.
SwInsertDBColAutoPilot::SwInsertDBColAutoPilot | ( | SwView & | rView, |
css::uno::Reference< css::sdbc::XDataSource > const & | rxSource, | ||
css::uno::Reference< css::sdbcx::XColumnsSupplier > const & | xColSupp, | ||
const SwDBData & | rData | ||
) |
Definition at line 172 of file dbinsdlg.cxx.
References aColNames, aDBColumns, Any, Exception, SfxStyleSheetBasePool::First(), SwEditShell::GetCurLang(), getDefaultNumberFormat(), SwView::GetDocShell(), getLocale(), SfxStyleSheetBase::GetName(), SwEditShell::GetNumberFormatter(), SwDocShell::GetStyleSheetPool(), SwEditShell::GetTableFormat(), SwView::GetWrtShell(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), LINK, Load(), 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(), nGBFormatLen, pView, o3tl::sorted_vector< Value, Compare, Find, class >::size(), and sNoTmpl.
|
overridevirtual |
Definition at line 387 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 908 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(), getLocale(), 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(), SwWrtShell::InsertField2(), 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(), n, SwDBData::nCommandType, SwInsDBColumn::nDBNumFormat, DB_Column::nFormat, nId, SwInsDBColumn::nUsrNumFormat, nValue, DB_Column::pColInfo, DB_Column::pField, pTableSet, DB_Column::pText, pView, RES_BOXATR_VALUE(), 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, TOOLS_WARN_EXCEPTION, TxtColl, IDocumentMarkAccess::UNO_BOOKMARK, xColumn, SwDBFormatData::xFormatter, and xRow.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overrideprivatevirtual |
Implements utl::ConfigItem.
Definition at line 1468 of file dbinsdlg.cxx.
References aDBColumns, aDBData, 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_xCbTableHeadon, m_xEdDbText, m_xLbDbParaColl, m_xLbTableCol, m_xRbAsField, m_xRbAsTable, m_xRbHeadlEmpty, m_xTAutoFormat, n, SwDBData::nCommandType, SwInsDBColumn::nUsrNumFormat, pValues, pView, RES_POOLCOLL_STANDARD, SwInsDBColumn::sColumn, SwDBData::sCommand, SwDBData::sDataSource, utl::ConfigItem::SetSetProperties(), o3tl::sorted_vector< Value, Compare, Find, class >::size(), sNoTmpl, and Value.
|
private |
Definition at line 1575 of file dbinsdlg.cxx.
References aDBColumns, aDBData, 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_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, SwInsDBColumn::nUsrNumFormat, SvNumberFormatter::PutEntry(), pView, SwInsDBColumn::sColumn, SwDBData::sCommand, SwDBData::sDataSource, o3tl::sorted_vector< Value, Compare, Find, class >::size(), SwTableAutoFormatTable::size(), and SwInsDBColumn::sUsrNumFormat.
Referenced by SwInsertDBColAutoPilot().
|
overrideprivatevirtual |
Implements utl::ConfigItem.
Definition at line 1466 of file dbinsdlg.cxx.
|
private |
Definition at line 1378 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_xTAutoFormat, SwCursorShell::MoveTable(), pTableSet, pView, RES_BACKGROUND(), RES_BOX(), and SwCursorShell::SetMark().
Referenced by DataToDoc().
|
private |
Definition at line 831 of file dbinsdlg.cxx.
References aDBColumns, aDBData, SwInsDBColumn::bHasFormat, SwInsDBColumn::bIsDBFormat, cDBFieldEnd, cDBFieldStart, o3tl::sorted_vector< Value, Compare, Find, class >::end(), o3tl::sorted_vector< Value, Compare, Find, class >::find(), SwViewShell::GetDoc(), SwView::GetWrtShell(), SwEditShell::InsertFieldType(), lcl_InsTextInArr(), SwInsDBColumn::nDBNumFormat, SwInsDBColumn::nUsrNumFormat, DB_Column::pField, pView, SwInsDBColumn::sColumn, SwField::SetSubType(), and nsSwExtendedSubType::SUB_OWN_FMT.
Referenced by DataToDoc().
|
private |
Definition at line 81 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), SplitTextToColArr(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 82 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SplitTextToColArr().
|
private |
Definition at line 120 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 109 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 102 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 110 of file dbinsdlg.hxx.
|
private |
Definition at line 118 of file dbinsdlg.hxx.
|
private |
Definition at line 97 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 117 of file dbinsdlg.hxx.
Referenced by Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 114 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 115 of file dbinsdlg.hxx.
Referenced by Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 108 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 105 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 111 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 119 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 99 of file dbinsdlg.hxx.
Referenced by Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 100 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 124 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 123 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 94 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 93 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 95 of file dbinsdlg.hxx.
Referenced by Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 103 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 104 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 121 of file dbinsdlg.hxx.
Referenced by DataToDoc(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 122 of file dbinsdlg.hxx.
Referenced by ImplCommit(), Load(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 87 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), and SetTabSet().
|
private |
Definition at line 91 of file dbinsdlg.hxx.
Referenced by SwInsertDBColAutoPilot().
|
private |
Definition at line 90 of file dbinsdlg.hxx.
|
private |
Definition at line 89 of file dbinsdlg.hxx.
Referenced by DataToDoc(), and SetTabSet().
|
private |
Definition at line 86 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), Load(), SetTabSet(), SplitTextToColArr(), and SwInsertDBColAutoPilot().
|
private |
Definition at line 84 of file dbinsdlg.hxx.
Referenced by DataToDoc(), ImplCommit(), and SwInsertDBColAutoPilot().