summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-18 16:54:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-18 20:11:40 +0100
commit16f84d79ad209a4a6e033880d3059810c37e73c0 (patch)
tree90f40eaa40e6448709d0ad83e699f4a3cd6350ee /sfx2/source
parent86b160886f6d5580a84f5008682cc93fa8c63e39 (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 'sfx2/source')
-rw-r--r--sfx2/source/doc/new.cxx6
-rw-r--r--sfx2/source/doc/saveastemplatedlg.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx
index ef6fbf939a93..1ec298ac3e52 100644
--- a/sfx2/source/doc/new.cxx
+++ b/sfx2/source/doc/new.cxx
@@ -188,9 +188,9 @@ IMPL_LINK( SfxNewFileDialog, RegionSelect, weld::TreeView&, rBox, void )
if (nc != -1 && nc != 0)
aSel = aSel.replaceAt(nc-1, 1, "");
if ( aSel.compareToIgnoreAsciiCase( SfxResId(STR_STANDARD) ) == 0 )
- m_xTemplateLb->append(SfxResId(STR_NONE));
+ m_xTemplateLb->append_text(SfxResId(STR_NONE));
for (sal_uInt16 i = 0; i < nCount; ++i)
- m_xTemplateLb->append(m_aTemplates.GetName(nRegion, i));
+ m_xTemplateLb->append_text(m_aTemplates.GetName(nRegion, i));
m_xTemplateLb->thaw();
m_xTemplateLb->select(0);
TemplateSelect(*m_xTemplateLb);
@@ -303,7 +303,7 @@ SfxNewFileDialog::SfxNewFileDialog(weld::Window *pParent, SfxNewFileDialogMode n
if (nCount)
{
for(sal_uInt16 i = 0; i < nCount; ++i)
- m_xRegionLb->append(m_aTemplates.GetFullRegionName(i));
+ m_xRegionLb->append_text(m_aTemplates.GetFullRegionName(i));
m_xRegionLb->connect_changed(LINK(this, SfxNewFileDialog, RegionSelect));
}
diff --git a/sfx2/source/doc/saveastemplatedlg.cxx b/sfx2/source/doc/saveastemplatedlg.cxx
index 76a647e94fa6..16295a606d09 100644
--- a/sfx2/source/doc/saveastemplatedlg.cxx
+++ b/sfx2/source/doc/saveastemplatedlg.cxx
@@ -117,7 +117,7 @@ void SfxSaveAsTemplateDialog::SetCategoryLBEntries(const std::vector<OUString>&
if (!rFolderNames.empty())
{
for (size_t i = 0, n = rFolderNames.size(); i < n; ++i)
- m_xLBCategory->insert(rFolderNames[i], i+1);
+ m_xLBCategory->insert_text(rFolderNames[i], i+1);
}
m_xLBCategory->select(0);
}