diff options
Diffstat (limited to 'sc/source/ui/pagedlg/hfedtdlg.cxx')
-rw-r--r-- | sc/source/ui/pagedlg/hfedtdlg.cxx | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/sc/source/ui/pagedlg/hfedtdlg.cxx b/sc/source/ui/pagedlg/hfedtdlg.cxx index de77c9e7cb09..de8879f5652a 100644 --- a/sc/source/ui/pagedlg/hfedtdlg.cxx +++ b/sc/source/ui/pagedlg/hfedtdlg.cxx @@ -49,11 +49,11 @@ ScHFEditHeaderDlg::ScHFEditHeaderDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/headerdialog.ui", "HeaderDialog") + u"modules/scalc/ui/headerdialog.ui"_ustr, u"HeaderDialog"_ustr) { - AddTabPage("headerfirst", ScFirstHeaderEditPage::Create, nullptr); - AddTabPage("headerright", ScRightHeaderEditPage::Create, nullptr); - AddTabPage("headerleft", ScLeftHeaderEditPage::Create, nullptr); + AddTabPage(u"headerfirst"_ustr, ScFirstHeaderEditPage::Create, nullptr); + AddTabPage(u"headerright"_ustr, ScRightHeaderEditPage::Create, nullptr); + AddTabPage(u"headerleft"_ustr, ScLeftHeaderEditPage::Create, nullptr); } ScHFEditFooterDlg::ScHFEditFooterDlg( @@ -61,11 +61,11 @@ ScHFEditFooterDlg::ScHFEditFooterDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/footerdialog.ui", "FooterDialog" ) + u"modules/scalc/ui/footerdialog.ui"_ustr, u"FooterDialog"_ustr ) { - AddTabPage("footerfirst", ScFirstFooterEditPage::Create, nullptr); - AddTabPage("footerright", ScRightFooterEditPage::Create, nullptr); - AddTabPage("footerleft", ScLeftFooterEditPage::Create, nullptr); + AddTabPage(u"footerfirst"_ustr, ScFirstFooterEditPage::Create, nullptr); + AddTabPage(u"footerright"_ustr, ScRightFooterEditPage::Create, nullptr); + AddTabPage(u"footerleft"_ustr, ScLeftFooterEditPage::Create, nullptr); } ScHFEditSharedFirstHeaderDlg::ScHFEditSharedFirstHeaderDlg( @@ -73,10 +73,10 @@ ScHFEditSharedFirstHeaderDlg::ScHFEditSharedFirstHeaderDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/sharedfirstheaderdialog.ui", "SharedFirstHeaderDialog" ) + u"modules/scalc/ui/sharedfirstheaderdialog.ui"_ustr, u"SharedFirstHeaderDialog"_ustr ) { - AddTabPage("headerright", ScRightHeaderEditPage::Create, nullptr); - AddTabPage("headerleft", ScLeftHeaderEditPage::Create, nullptr); + AddTabPage(u"headerright"_ustr, ScRightHeaderEditPage::Create, nullptr); + AddTabPage(u"headerleft"_ustr, ScLeftHeaderEditPage::Create, nullptr); } ScHFEditSharedFirstFooterDlg::ScHFEditSharedFirstFooterDlg( @@ -84,10 +84,10 @@ ScHFEditSharedFirstFooterDlg::ScHFEditSharedFirstFooterDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/sharedfirstfooterdialog.ui", "SharedFirstFooterDialog" ) + u"modules/scalc/ui/sharedfirstfooterdialog.ui"_ustr, u"SharedFirstFooterDialog"_ustr ) { - AddTabPage("footerright", ScRightFooterEditPage::Create, nullptr); - AddTabPage("footerleft", ScLeftFooterEditPage::Create, nullptr); + AddTabPage(u"footerright"_ustr, ScRightFooterEditPage::Create, nullptr); + AddTabPage(u"footerleft"_ustr, ScLeftFooterEditPage::Create, nullptr); } ScHFEditSharedLeftHeaderDlg::ScHFEditSharedLeftHeaderDlg( @@ -95,10 +95,10 @@ ScHFEditSharedLeftHeaderDlg::ScHFEditSharedLeftHeaderDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/sharedleftheaderdialog.ui", "SharedLeftHeaderDialog" ) + u"modules/scalc/ui/sharedleftheaderdialog.ui"_ustr, u"SharedLeftHeaderDialog"_ustr ) { - AddTabPage("headerfirst", ScFirstHeaderEditPage::Create, nullptr); - AddTabPage("headerright", ScRightHeaderEditPage::Create, nullptr); + AddTabPage(u"headerfirst"_ustr, ScFirstHeaderEditPage::Create, nullptr); + AddTabPage(u"headerright"_ustr, ScRightHeaderEditPage::Create, nullptr); } ScHFEditSharedLeftFooterDlg::ScHFEditSharedLeftFooterDlg( @@ -106,10 +106,10 @@ ScHFEditSharedLeftFooterDlg::ScHFEditSharedLeftFooterDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/sharedleftfooterdialog.ui", "SharedLeftFooterDialog" ) + u"modules/scalc/ui/sharedleftfooterdialog.ui"_ustr, u"SharedLeftFooterDialog"_ustr ) { - AddTabPage("footerfirst", ScFirstFooterEditPage::Create, nullptr); - AddTabPage("footerright", ScRightFooterEditPage::Create, nullptr); + AddTabPage(u"footerfirst"_ustr, ScFirstFooterEditPage::Create, nullptr); + AddTabPage(u"footerright"_ustr, ScRightFooterEditPage::Create, nullptr); } ScHFEditFirstHeaderDlg::ScHFEditFirstHeaderDlg( @@ -117,9 +117,9 @@ ScHFEditFirstHeaderDlg::ScHFEditFirstHeaderDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/firstheaderdialog.ui", "FirstHeaderDialog" ) + u"modules/scalc/ui/firstheaderdialog.ui"_ustr, u"FirstHeaderDialog"_ustr ) { - AddTabPage("headerfirst", ScFirstHeaderEditPage::Create, nullptr); + AddTabPage(u"headerfirst"_ustr, ScFirstHeaderEditPage::Create, nullptr); } ScHFEditLeftHeaderDlg::ScHFEditLeftHeaderDlg( @@ -127,9 +127,9 @@ ScHFEditLeftHeaderDlg::ScHFEditLeftHeaderDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/leftheaderdialog.ui", "LeftHeaderDialog" ) + u"modules/scalc/ui/leftheaderdialog.ui"_ustr, u"LeftHeaderDialog"_ustr ) { - AddTabPage("headerleft", ScLeftHeaderEditPage::Create, nullptr); + AddTabPage(u"headerleft"_ustr, ScLeftHeaderEditPage::Create, nullptr); } ScHFEditRightHeaderDlg::ScHFEditRightHeaderDlg( @@ -137,9 +137,9 @@ ScHFEditRightHeaderDlg::ScHFEditRightHeaderDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/rightheaderdialog.ui", "RightHeaderDialog" ) + u"modules/scalc/ui/rightheaderdialog.ui"_ustr, u"RightHeaderDialog"_ustr ) { - AddTabPage("headerright", ScRightHeaderEditPage::Create, nullptr); + AddTabPage(u"headerright"_ustr, ScRightHeaderEditPage::Create, nullptr); } ScHFEditFirstFooterDlg::ScHFEditFirstFooterDlg( @@ -147,9 +147,9 @@ ScHFEditFirstFooterDlg::ScHFEditFirstFooterDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/firstfooterdialog.ui", "FirstFooterDialog" ) + u"modules/scalc/ui/firstfooterdialog.ui"_ustr, u"FirstFooterDialog"_ustr ) { - AddTabPage("footerfirst", ScFirstFooterEditPage::Create, nullptr); + AddTabPage(u"footerfirst"_ustr, ScFirstFooterEditPage::Create, nullptr); } ScHFEditLeftFooterDlg::ScHFEditLeftFooterDlg( @@ -157,9 +157,9 @@ ScHFEditLeftFooterDlg::ScHFEditLeftFooterDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/leftfooterdialog.ui", "LeftFooterDialog" ) + u"modules/scalc/ui/leftfooterdialog.ui"_ustr, u"LeftFooterDialog"_ustr ) { - AddTabPage("footerleft", ScLeftFooterEditPage::Create, nullptr); + AddTabPage(u"footerleft"_ustr, ScLeftFooterEditPage::Create, nullptr); } ScHFEditRightFooterDlg::ScHFEditRightFooterDlg( @@ -167,9 +167,9 @@ ScHFEditRightFooterDlg::ScHFEditRightFooterDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/rightfooterdialog.ui", "RightFooterDialog" ) + u"modules/scalc/ui/rightfooterdialog.ui"_ustr, u"RightFooterDialog"_ustr ) { - AddTabPage("footerright", ScRightFooterEditPage::Create, nullptr); + AddTabPage(u"footerright"_ustr, ScRightFooterEditPage::Create, nullptr); } ScHFEditSharedHeaderDlg::ScHFEditSharedHeaderDlg( @@ -177,13 +177,13 @@ ScHFEditSharedHeaderDlg::ScHFEditSharedHeaderDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/sharedheaderdialog.ui", "SharedHeaderDialog" ) + u"modules/scalc/ui/sharedheaderdialog.ui"_ustr, u"SharedHeaderDialog"_ustr ) { - AddTabPage("headerfirst", ScFirstHeaderEditPage::Create, nullptr); - AddTabPage("header", ScRightHeaderEditPage::Create, nullptr); - AddTabPage("footerfirst", ScFirstFooterEditPage::Create, nullptr); - AddTabPage("footerright", ScRightFooterEditPage::Create, nullptr); - AddTabPage("footerleft", ScLeftFooterEditPage::Create, nullptr); + AddTabPage(u"headerfirst"_ustr, ScFirstHeaderEditPage::Create, nullptr); + AddTabPage(u"header"_ustr, ScRightHeaderEditPage::Create, nullptr); + AddTabPage(u"footerfirst"_ustr, ScFirstFooterEditPage::Create, nullptr); + AddTabPage(u"footerright"_ustr, ScRightFooterEditPage::Create, nullptr); + AddTabPage(u"footerleft"_ustr, ScLeftFooterEditPage::Create, nullptr); } ScHFEditSharedFooterDlg::ScHFEditSharedFooterDlg( @@ -191,13 +191,13 @@ ScHFEditSharedFooterDlg::ScHFEditSharedFooterDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/sharedfooterdialog.ui", "SharedFooterDialog" ) + u"modules/scalc/ui/sharedfooterdialog.ui"_ustr, u"SharedFooterDialog"_ustr ) { - AddTabPage("headerfirst", ScFirstFooterEditPage::Create, nullptr); - AddTabPage("headerright", ScRightHeaderEditPage::Create, nullptr); - AddTabPage("headerleft", ScLeftHeaderEditPage::Create, nullptr); - AddTabPage("footerfirst", ScFirstFooterEditPage::Create, nullptr); - AddTabPage("footer", ScRightFooterEditPage::Create, nullptr); + AddTabPage(u"headerfirst"_ustr, ScFirstFooterEditPage::Create, nullptr); + AddTabPage(u"headerright"_ustr, ScRightHeaderEditPage::Create, nullptr); + AddTabPage(u"headerleft"_ustr, ScLeftHeaderEditPage::Create, nullptr); + AddTabPage(u"footerfirst"_ustr, ScFirstFooterEditPage::Create, nullptr); + AddTabPage(u"footer"_ustr, ScRightFooterEditPage::Create, nullptr); } ScHFEditAllDlg::ScHFEditAllDlg( @@ -205,14 +205,14 @@ ScHFEditAllDlg::ScHFEditAllDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/allheaderfooterdialog.ui", "AllHeaderFooterDialog" ) + u"modules/scalc/ui/allheaderfooterdialog.ui"_ustr, u"AllHeaderFooterDialog"_ustr ) { - AddTabPage("headerfirst", ScFirstHeaderEditPage::Create, nullptr); - AddTabPage("headerright", ScRightHeaderEditPage::Create, nullptr); - AddTabPage("headerleft", ScLeftHeaderEditPage::Create, nullptr); - AddTabPage("footerfirst", ScFirstFooterEditPage::Create, nullptr); - AddTabPage("footerright", ScRightFooterEditPage::Create, nullptr); - AddTabPage("footerleft", ScLeftFooterEditPage::Create, nullptr); + AddTabPage(u"headerfirst"_ustr, ScFirstHeaderEditPage::Create, nullptr); + AddTabPage(u"headerright"_ustr, ScRightHeaderEditPage::Create, nullptr); + AddTabPage(u"headerleft"_ustr, ScLeftHeaderEditPage::Create, nullptr); + AddTabPage(u"footerfirst"_ustr, ScFirstFooterEditPage::Create, nullptr); + AddTabPage(u"footerright"_ustr, ScRightFooterEditPage::Create, nullptr); + AddTabPage(u"footerleft"_ustr, ScLeftFooterEditPage::Create, nullptr); } ScHFEditActiveDlg::ScHFEditActiveDlg( @@ -220,7 +220,7 @@ ScHFEditActiveDlg::ScHFEditActiveDlg( const SfxItemSet& rCoreSet, std::u16string_view rPageStyle) : ScHFEditDlg( pParent, rCoreSet, rPageStyle, - "modules/scalc/ui/headerfooterdialog.ui", "HeaderFooterDialog" ) + u"modules/scalc/ui/headerfooterdialog.ui"_ustr, u"HeaderFooterDialog"_ustr ) { const SvxPageItem& rPageItem = rCoreSet.Get( @@ -230,8 +230,8 @@ ScHFEditActiveDlg::ScHFEditActiveDlg( if ( bRightPage ) { - AddTabPage("header", ScRightHeaderEditPage::Create, nullptr); - AddTabPage("footer", ScRightFooterEditPage::Create, nullptr); + AddTabPage(u"header"_ustr, ScRightHeaderEditPage::Create, nullptr); + AddTabPage(u"footer"_ustr, ScRightFooterEditPage::Create, nullptr); } else { @@ -240,16 +240,16 @@ ScHFEditActiveDlg::ScHFEditActiveDlg( bool bShareHeader = rCoreSet.Get(ATTR_PAGE_HEADERSET).GetItemSet(). Get(ATTR_PAGE_SHARED).GetValue(); if ( bShareHeader ) - AddTabPage("header", ScRightHeaderEditPage::Create, nullptr); + AddTabPage(u"header"_ustr, ScRightHeaderEditPage::Create, nullptr); else - AddTabPage("header", ScLeftHeaderEditPage::Create, nullptr); + AddTabPage(u"header"_ustr, ScLeftHeaderEditPage::Create, nullptr); bool bShareFooter = rCoreSet.Get(ATTR_PAGE_FOOTERSET).GetItemSet(). Get(ATTR_PAGE_SHARED).GetValue(); if ( bShareFooter ) - AddTabPage("footer", ScRightFooterEditPage::Create, nullptr); + AddTabPage(u"footer"_ustr, ScRightFooterEditPage::Create, nullptr); else - AddTabPage("footer", ScLeftFooterEditPage::Create, nullptr); + AddTabPage(u"footer"_ustr, ScLeftFooterEditPage::Create, nullptr); } } |