diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-03-07 08:21:20 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-03-07 09:06:52 +0100 |
commit | 418cb3c844da2e7094fa6b63b33d8c938897203c (patch) | |
tree | e69c4915a0beb81b60d7bed0bb14dc01305fe965 /sw/source/uibase/dbui | |
parent | 66a9795f27fda887d9f66d0d8bb196fd636fe452 (diff) |
sw: prefix members of DocxAttributeOutput, SwDBTreeList, ...
... SwTOXBaseContent and SwURLFieldContent
See tdf#94879 for motivation.
Change-Id: I6481279dcb680ebba6392bbde3f4736dd270e52a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131092
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/source/uibase/dbui')
-rw-r--r-- | sw/source/uibase/dbui/dbtree.cxx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx index 941df07e1ec7..432a0a28e68b 100644 --- a/sw/source/uibase/dbui/dbtree.cxx +++ b/sw/source/uibase/dbui/dbtree.cxx @@ -128,9 +128,9 @@ Reference<XConnection> SwDBTreeList_Impl::GetConnection(const OUString& rSource } SwDBTreeList::SwDBTreeList(std::unique_ptr<weld::TreeView> xTreeView) - : bInitialized(false) - , bShowColumns(false) - , pImpl(new SwDBTreeList_Impl) + : m_bInitialized(false) + , m_bShowColumns(false) + , m_pImpl(new SwDBTreeList_Impl) , m_xTreeView(std::move(xTreeView)) , m_xScratchIter(m_xTreeView->make_iterator()) { @@ -143,10 +143,10 @@ SwDBTreeList::~SwDBTreeList() void SwDBTreeList::InitTreeList() { - if (!pImpl->HasContext() && pImpl->GetWrtShell()) + if (!m_pImpl->HasContext() && m_pImpl->GetWrtShell()) return; - Sequence< OUString > aDBNames = pImpl->GetContext()->getElementNames(); + Sequence< OUString > aDBNames = m_pImpl->GetContext()->getElementNames(); auto const sort = comphelper::string::NaturalStringSorter( comphelper::getProcessComponentContext(), Application::GetSettings().GetUILanguageTag().getLocale()); @@ -170,7 +170,7 @@ void SwDBTreeList::InitTreeList() } Select(u"", u"", u""); - bInitialized = true; + m_bInitialized = true; } void SwDBTreeList::AddDataSource(const OUString& rSource) @@ -193,9 +193,9 @@ IMPL_LINK(SwDBTreeList, RequestingChildrenHdl, const weld::TreeIter&, rParent, b OUString sSourceName = m_xTreeView->get_text(*xGrandParent); OUString sTableName = m_xTreeView->get_text(rParent); - if(!pImpl->GetContext()->hasByName(sSourceName)) + if(!m_pImpl->GetContext()->hasByName(sSourceName)) return true; - Reference<XConnection> xConnection = pImpl->GetConnection(sSourceName); + Reference<XConnection> xConnection = m_pImpl->GetConnection(sSourceName); bool bTable = m_xTreeView->get_id(rParent).isEmpty(); Reference<XColumnsSupplier> xColsSupplier; if(bTable) @@ -256,9 +256,9 @@ IMPL_LINK(SwDBTreeList, RequestingChildrenHdl, const weld::TreeIter&, rParent, b try { OUString sSourceName = m_xTreeView->get_text(rParent); - if (!pImpl->GetContext()->hasByName(sSourceName)) + if (!m_pImpl->GetContext()->hasByName(sSourceName)) return true; - Reference<XConnection> xConnection = pImpl->GetConnection(sSourceName); + Reference<XConnection> xConnection = m_pImpl->GetConnection(sSourceName); if (xConnection.is()) { Reference<XTablesSupplier> xTSupplier(xConnection, UNO_QUERY); @@ -270,7 +270,7 @@ IMPL_LINK(SwDBTreeList, RequestingChildrenHdl, const weld::TreeIter&, rParent, b for (const OUString& rTableName : aTableNames) { m_xTreeView->insert(&rParent, -1, &rTableName, nullptr, - nullptr, nullptr, bShowColumns, m_xScratchIter.get()); + nullptr, nullptr, m_bShowColumns, m_xScratchIter.get()); m_xTreeView->set_image(*m_xScratchIter, aImg); } } @@ -286,7 +286,7 @@ IMPL_LINK(SwDBTreeList, RequestingChildrenHdl, const weld::TreeIter&, rParent, b //to discriminate between queries and tables the user data of query entries is set OUString sId(OUString::number(1)); m_xTreeView->insert(&rParent, -1, &rQueryName, &sId, - nullptr, nullptr, bShowColumns, m_xScratchIter.get()); + nullptr, nullptr, m_bShowColumns, m_xScratchIter.get()); m_xTreeView->set_image(*m_xScratchIter, aImg); } } @@ -361,7 +361,7 @@ void SwDBTreeList::Select(std::u16string_view rDBName, std::u16string_view rTabl m_xTreeView->copy_iterator(*xChild, *xParent); bool bNoChild = false; - if (bShowColumns && !rColumnName.empty()) + if (m_bShowColumns && !rColumnName.empty()) { if (!m_xTreeView->iter_has_child(*xParent)) { @@ -400,8 +400,8 @@ void SwDBTreeList::Select(std::u16string_view rDBName, std::u16string_view rTabl void SwDBTreeList::SetWrtShell(SwWrtShell& rSh) { - pImpl->SetWrtShell(rSh); - if (m_xTreeView->get_visible() && !bInitialized) + m_pImpl->SetWrtShell(rSh); + if (m_xTreeView->get_visible() && !m_bInitialized) InitTreeList(); } @@ -416,10 +416,10 @@ namespace void SwDBTreeList::ShowColumns(bool bShowCol) { - if (bShowCol == bShowColumns) + if (bShowCol == m_bShowColumns) return; - bShowColumns = bShowCol; + m_bShowColumns = bShowCol; OUString sTableName; OUString sColumnName; const OUString sDBName(GetDBName(sTableName, sColumnName)); |