diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-18 16:54:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-18 20:11:40 +0100 |
commit | 16f84d79ad209a4a6e033880d3059810c37e73c0 (patch) | |
tree | 90f40eaa40e6448709d0ad83e699f4a3cd6350ee /sw/source/ui/table | |
parent | 86b160886f6d5580a84f5008682cc93fa8c63e39 (diff) |
add id column support to tree view
Change-Id: I11702f58e488bcf3fcd49c45c11b5059298f81fd
Reviewed-on: https://gerrit.libreoffice.org/51512
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/table')
-rw-r--r-- | sw/source/ui/table/instable.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/table/tautofmt.cxx | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/ui/table/instable.cxx b/sw/source/ui/table/instable.cxx index 1b1f46f52be5..958d3fde05de 100644 --- a/sw/source/ui/table/instable.cxx +++ b/sw/source/ui/table/instable.cxx @@ -132,14 +132,14 @@ void SwInsTableDlg::InitAutoTableFormat() pTableTable->Load(); // Add "- none -" style autoformat table. - m_xLbFormat->append( SwViewShell::GetShellRes()->aStrNone ); // Insert to listbox + m_xLbFormat->append_text(SwViewShell::GetShellRes()->aStrNone); // Insert to listbox // Add other styles of autoformat tables. for (sal_uInt8 i = 0, nCount = static_cast<sal_uInt8>(pTableTable->size()); i < nCount; i++) { SwTableAutoFormat const& rFormat = (*pTableTable)[ i ]; - m_xLbFormat->append(rFormat.GetName()); + m_xLbFormat->append_text(rFormat.GetName()); if (pTAutoFormat && rFormat.GetName() == pTAutoFormat->GetName()) lbIndex = i; } diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx index 68e5ba5b46c5..ce1a60a59e10 100644 --- a/sw/source/ui/table/tautofmt.cxx +++ b/sw/source/ui/table/tautofmt.cxx @@ -118,7 +118,7 @@ void SwAutoFormatDlg::Init( const SwTableAutoFormat* pSelFormat ) if( !bSetAutoFormat ) { // Then the list to be expanded by the entry "- none -". - m_xLbFormat->append(SwViewShell::GetShellRes()->aStrNone); + m_xLbFormat->append_text(SwViewShell::GetShellRes()->aStrNone); nDfltStylePos = 1; m_nIndex = 255; } @@ -127,7 +127,7 @@ void SwAutoFormatDlg::Init( const SwTableAutoFormat* pSelFormat ) i < nCount; i++) { SwTableAutoFormat const& rFormat = (*m_xTableTable)[ i ]; - m_xLbFormat->append(rFormat.GetName()); + m_xLbFormat->append_text(rFormat.GetName()); if (pSelFormat && rFormat.GetName() == pSelFormat->GetName()) m_nIndex = i; } @@ -229,7 +229,7 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, AddHdl, weld::Button&, void) break; m_xTableTable->InsertAutoFormat(n, std::move(pNewData)); - m_xLbFormat->insert(aFormatName, nDfltStylePos + n); + m_xLbFormat->insert_text(aFormatName, nDfltStylePos + n); m_xLbFormat->select(nDfltStylePos + n); bFormatInserted = true; m_xBtnAdd->set_sensitive(false); @@ -329,7 +329,7 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RenameHdl, weld::Button&, void) } m_xTableTable->InsertAutoFormat( n, std::move(p) ); - m_xLbFormat->insert(aFormatName, nDfltStylePos + n); + m_xLbFormat->insert_text(aFormatName, nDfltStylePos + n); m_xLbFormat->select(nDfltStylePos + n); if ( !bCoreDataChanged ) |