Settings

From Apache OpenOffice Wiki
Jump to: navigation, search



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).
Personal tools
In other languages