Re: [api-dev] Setting Paper Properties of Spreadsheet
Tom Schindl wrote: I search the Developers Guide and the IDL-Docs but could find an answer to my problem. Using the GUI I can set the Paper Format(e.g. to A3) and Orientation of an Spreadsheet (e.g. to Landscape). I have not found yet the functions needed to set these using the API. I only found how to set them when sending a document to the printer e.g. in Andrews Macro-Document. These are properties of the page style (Size, IsLandscape). Niklas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Setting Paper Properties of Spreadsheet
Niklas Nebel wrote: Tom Schindl wrote: well flipping the orientation to IsLandscape = true is working more on this later. Are there any predefined properties for the page-format? There is an enum for paper formats http://api.openoffice.org/docs/common/ref/com/sun/star/view/PaperFormat.html#A3 The VCL printer implementation has a table, but it's not available to the API. But where from does the GUI know? Is it hardcoded somewhere because when switching the Format DropDown e.g. to A3 it automatically recalculates the height and width. Now back to the IsLandscape property. When switching this property it does not automatically switch the size. Is this intented or have I discovered a bug here? It has to be that way. The order of setting a style's properties isn't supposed to make a difference. Ok. Now summerized as a codesnippet: http://codesnippets.services.openoffice.org/Calc/Calc.SwitchOrientation.snip Tom Niklas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Setting Paper Properties of Spreadsheet
Tom Schindl wrote: But where from does the GUI know? Is it hardcoded somewhere because when switching the Format DropDown e.g. to A3 it automatically recalculates the height and width. The dialog actually has its own table. Ok. Now summerized as a codesnippet: http://codesnippets.services.openoffice.org/Calc/Calc.SwitchOrientation.snip Don't use Standard to get the style. That's the localized German name, and it won't work in other language versions. Use Default, which is the programmatic name and works in any version. Niklas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]