Difference between revisions of "Documentation/DevGuide/Drawings/Settings"
From Apache OpenOffice Wiki
< Documentation | DevGuide
(Initial author Sun Microsystems, Inc.) |
m |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
|NextPage=Documentation/DevGuide/Drawings/Page Formatting | |NextPage=Documentation/DevGuide/Drawings/Page Formatting | ||
}} | }} | ||
− | {{DISPLAYTITLE:Settings}} | + | {{Documentation/DevGuideLanguages|Documentation/DevGuide/Drawings/{{SUBPAGENAME}}}} |
+ | {{DISPLAYTITLE:Settings}} | ||
<!--<idltopic>com.sun.star.beans.PropertySet</idltopic>--> | <!--<idltopic>com.sun.star.beans.PropertySet</idltopic>--> | ||
To use the global document settings, the document service factory must be asked for a <idl>com.sun.star.document.Settings</idl> service using the method <code>createInstance()</code> at its <idl>com.sun.star.lang.XMultiServiceFactory</idl> interface. This service supports <idl>com.sun.star.beans.PropertySet</idl> and acts upon the current document by setting its properties. | To use the global document settings, the document service factory must be asked for a <idl>com.sun.star.document.Settings</idl> service using the method <code>createInstance()</code> at its <idl>com.sun.star.lang.XMultiServiceFactory</idl> interface. This service supports <idl>com.sun.star.beans.PropertySet</idl> and acts upon the current document by setting its properties. | ||
Line 55: | Line 56: | ||
|- | |- | ||
|<idlm>com.sun.star.presentation.DocumentSettings:IsPrintHiddenPages</idlm> | |<idlm>com.sun.star.presentation.DocumentSettings:IsPrintHiddenPages</idlm> | ||
− | |<code>boolean< code> - this property enables or disables the printing of draw pages that are marked hidden, true enable and false disable. | + | |<code>boolean</code> - this property enables or disables the printing of draw pages that are marked hidden, true enable and false disable. |
|- | |- | ||
|<idlm>com.sun.star.presentation.DocumentSettings:IsPrintFitPage</idlm> | |<idlm>com.sun.star.presentation.DocumentSettings:IsPrintFitPage</idlm> | ||
Line 61: | Line 62: | ||
|- | |- | ||
|<idlm>com.sun.star.presentation.DocumentSettings:IsPrintTilePage</idlm> | |<idlm>com.sun.star.presentation.DocumentSettings:IsPrintTilePage</idlm> | ||
− | |<code>boolean<code> - If this property <code>IsPrintTilePage</code> is set to 1 and the paper size for printing is larger than the paper size of the printer than the content is tiled over multiple pages. | + | |<code>boolean</code> - If this property <code>IsPrintTilePage</code> is set to 1 and the paper size for printing is larger than the paper size of the printer than the content is tiled over multiple pages. |
|- | |- | ||
|<idlm>com.sun.star.presentation.DocumentSettings:PageNumberFormat</idlm> | |<idlm>com.sun.star.presentation.DocumentSettings:PageNumberFormat</idlm> | ||
Line 71: | Line 72: | ||
{{PDL1}} | {{PDL1}} | ||
− | [[Category: Drawing Documents and Presentation Documents]] | + | |
+ | [[Category:Documentation/Developer's Guide/Drawing Documents and Presentation Documents]] |
Latest revision as of 17:00, 23 May 2015
- Settings
- Page Formatting
To use the global document settings, the document service factory must be asked for a com.sun.star.document.Settings service using the method createInstance()
at its com.sun.star.lang.XMultiServiceFactory interface. This service supports com.sun.star.beans.PropertySet and acts upon the current document by setting its properties.
The services com.sun.star.drawing.DocumentSettings and com.sun.star.presentation.DocumentSettings provide the following properties additionally to the global document settings.
Properties of com.sun.star.drawing.DocumentSettings | |
---|---|
MeasureUnit | short - this is the default logical measure unit that is used for string formatings inside the document.
|
ScaleNumerator | long - is the numerator for the logical scale of the document.
|
ScaleDenominator | long - is the denominator for the logical scale of the document.
|
IsPrintFitPage | boolean - this property enables or disables the fitting of the page to the printable area during print, true enable and false disable.
|
IsPrintTilePage | boolean - If the property IsPrintTilePage is set to 1 and the paper size for printing is larger than the paper size of the printer than the content is tiled over multiple pages.
|
PageNumberFormat | long - is the number format used for page number fields.
|
ParagraphSummation | boolean - If the property ParagraphSummation is set to 1, the distance between two paragraphs is the sum of ParaTopMargin of the previous and ParaBottomMargin of the next paragraph. If 0, only the greater of the two is choosen.
|
Properties of com.sun.star.presentation.DocumentSettings | |
---|---|
IsPrintDrawing | boolean - this property enables or disables the printing of the drawing pages, true enable and false disable.
|
IsPrintNotes | boolean - this property enables or disables the printing of the notes pages, true enable and false disable.
|
IsPrintHandout | boolean - this property enables or disables the printing of the handout pages, true enable and false disable.
|
IsPrintOutline | boolean - this property enables or disables the printing of the outline pages, true enable and false disable.
|
IsPrintHiddenPages | boolean - this property enables or disables the printing of draw pages that are marked hidden, true enable and false disable.
|
IsPrintFitPage | boolean - this property enables or disables the fitting of the page to the printable area during print, true enable and false disable.
|
IsPrintTilePage | boolean - If this property IsPrintTilePage is set to 1 and the paper size for printing is larger than the paper size of the printer than the content is tiled over multiple pages.
|
PageNumberFormat | long - is the number format used for page number fields.
|
ParagraphSummation | boolean - If the property ParagraphSummation is set to 1, the distance between two paragraphs is the sum of ParaTopMargin of the previous and ParaBottomMargin of the next paragraph. If 0, only the greater of the two is choosen.
|
Content on this page is licensed under the Public Documentation License (PDL). |