diff options
author | Daniel Arato (NISZ) <arato.daniel@nisz.hu> | 2021-06-08 11:53:42 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-06-29 11:21:01 +0200 |
commit | 19fa853ce12136b5c14e0c5a0aa906c296b75388 (patch) | |
tree | 9093162f9ba557f2b93e988247cc4afdfef01230 /sc/source/ui/pagedlg/tphf.cxx | |
parent | 3d55149dcf19cffefcc19c16a3abbe8851453c5e (diff) |
tdf#121715 XLSX: support custom first page header/footer
Add XLSX import/export support for a different header or
footer (activated separately) on the first page.
Print preview is also extended to support this.
Note: only ODS export is supported, yet. Follow-up commits
are going to add ODS import and UI support.
Change-Id: Icd3a40131bdbcd5d5a42f98c86a71345a5745051
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116842
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sc/source/ui/pagedlg/tphf.cxx')
-rw-r--r-- | sc/source/ui/pagedlg/tphf.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/pagedlg/tphf.cxx b/sc/source/ui/pagedlg/tphf.cxx index 3fb27a9cf43f..2a8af81e01ec 100644 --- a/sc/source/ui/pagedlg/tphf.cxx +++ b/sc/source/ui/pagedlg/tphf.cxx @@ -42,7 +42,7 @@ ScHFPage::ScHFPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet, sal_uInt16 nSetId) : SvxHFPage(pPage, pController, rSet, nSetId) - , aDataSet(*rSet.GetPool(), svl::Items<ATTR_PAGE, ATTR_PAGE, ATTR_PAGE_HEADERLEFT, ATTR_PAGE_FOOTERRIGHT>{}) + , aDataSet(*rSet.GetPool(), svl::Items<ATTR_PAGE, ATTR_PAGE, ATTR_PAGE_HEADERLEFT, ATTR_PAGE_FOOTERFIRST>{}) , nPageUsage(SvxPageUsage::All) , pStyleDlg(nullptr) , m_xBtnEdit(m_xBuilder->weld_button("buttonEdit")) @@ -91,11 +91,13 @@ bool ScHFPage::FillItemSet( SfxItemSet* rOutSet ) { rOutSet->Put( aDataSet.Get( ATTR_PAGE_HEADERLEFT ) ); rOutSet->Put( aDataSet.Get( ATTR_PAGE_HEADERRIGHT ) ); + rOutSet->Put( aDataSet.Get( ATTR_PAGE_HEADERFIRST ) ); } else { rOutSet->Put( aDataSet.Get( ATTR_PAGE_FOOTERLEFT ) ); rOutSet->Put( aDataSet.Get( ATTR_PAGE_FOOTERRIGHT ) ); + rOutSet->Put( aDataSet.Get( ATTR_PAGE_FOOTERFIRST ) ); } return bResult; |