summaryrefslogtreecommitdiff
path: root/sw/source/ui/envelp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-25 10:17:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-25 21:24:45 +0200
commit09de927ba60db4ab5c55aae15a0b0d049b298a4c (patch)
treecd7c98855a4ece9b33992de2cc8f4f9c3b0d9b4d /sw/source/ui/envelp
parente92cf0ebbe01dc1498d89013febb23960496ec01 (diff)
we add and remove this tab page just to get its tab name
Change-Id: Iac48d1c3137cb898a81e5f01442d26a7a81979f0 Reviewed-on: https://gerrit.libreoffice.org/53441 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/envelp')
-rw-r--r--sw/source/ui/envelp/label1.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx
index a6a6f93cc0c8..2b76d2c5b3eb 100644
--- a/sw/source/ui/envelp/label1.cxx
+++ b/sw/source/ui/envelp/label1.cxx
@@ -102,27 +102,23 @@ SwLabDlg::SwLabDlg(vcl::Window* pParent, const SfxItemSet& rSet,
, m_bLabel(bLabel)
, m_nOptionsId(0)
, m_nLabelId(0)
- , m_nCardsId(0)
{
WaitObject aWait( pParent );
AddTabPage("format", SwLabFormatPage::Create, nullptr);
m_nOptionsId = AddTabPage("options", SwLabPrtPage::Create, nullptr);
- m_nCardsId = AddTabPage("cards", SwVisitingCardPage::Create, nullptr);
- m_sBusinessCardDlg = GetPageText(m_nCardsId);
+ m_sBusinessCardDlg = SwResId(STR_BUSINESS_CARDS);
if (m_bLabel)
{
RemoveTabPage("business");
RemoveTabPage("private");
- RemoveTabPage("cards");
RemoveTabPage("medium");
m_nLabelId = AddTabPage("labels", SwLabPage::Create, nullptr);
}
else
{
RemoveTabPage("labels");
- RemoveTabPage("cards");
m_nLabelId = AddTabPage("medium", SwLabPage::Create, nullptr);
AddTabPage("business", SwBusinessDataPage::Create, nullptr );
AddTabPage("private", SwPrivateDataPage::Create, nullptr);