Apache OpenOffice (AOO) Bugzilla – Issue 98176
Request Landscape Style be in Available Calc Styles
Last modified: 2015-01-15 15:29:55 UTC
Problem: A calc document without numerous sheets can need Landscape for selected sheets and Portrait for others. Changing to Landscape in the print preview modifies all sheets, not just the one being previewed. Using F11 to bring up the styles does not present a landscape style. Each calc user in the world wishing to have such a style must build it for themselves. Landscape is already available in Writer. Why not Calc? This would be a very valuable enhancement for the available standard Calc styles. For that matter, Why does F11 in writer produce many more style choices than in Calc?
Created attachment 59446 [details] Calc Landscape Template
Why has no one acknowledged this issue? Is a Landscape style ever going to be added to CALC?
Useful enhancement.
Created attachment 83413 [details] Patch to add landscape page style for Calc With swapped page width and height from the default paper size with landscape flag.
Created attachment 84416 [details] File contains landscape style that added by the attached patch The attached file that contains new landscape style stored by the office the patch applied, have to be opened without any problems on older version.
I have not applied the patch, but from the code I see two questions in the patch: (1) The new style is missing in ScStyleSheetPool::CopyStdStylesFrom( ScStyleSheetPool* pSrcPool ) see comment // neue Eintraege auch bei CopyStdStylesFrom eintragen at the beginning of ScStyleSheetPool::CreateStandardStyles() The comment means translated, "put new items into CopyStdStylesFrom too". (2) Line pSheet->SetParent( aStrStandard ); ??? DO have page styles a parent? That is not possible in the UI.
(In reply to Regina Henschel from comment #6) > (1) > The new style is missing in ScStyleSheetPool::CopyStdStylesFrom( > ScStyleSheetPool* pSrcPool ) > see comment > // neue Eintraege auch bei CopyStdStylesFrom eintragen > at the beginning of ScStyleSheetPool::CreateStandardStyles() > The comment means translated, "put new items into CopyStdStylesFrom too". Thank you. I did not notice the comment. > (2) > Line > pSheet->SetParent( aStrStandard ); > > ??? DO have page styles a parent? That is not possible in the UI. It seems it is not required. Landscape style is not child of Default style in Writer. I will remove it. Hierarchical structure of cell style can be changed with UI by drag and drop on hierarchical mode of Styles and Formatting. But it can not be done with page style.
Created attachment 84428 [details] Patch to add landscape page style for Calc Update the patch.