1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_drawing_DocumentSettings_idl__
28#define __com_sun_star_drawing_DocumentSettings_idl__
29
30#ifndef __com_sun_star_document_Settings_idl__
31#include <com/sun/star/document/Settings.idl>
32#endif
33
34#ifndef __com_sun_star_document_HeaderFooterSettings_idl__
35#include <com/sun/star/document/HeaderFooterSettings.idl>
36#endif
37
38//=============================================================================
39
40module com {  module sun {  module star {  module drawing {
41
42//=============================================================================
43
44/** describes properties that apply to the whole drawing document.
45 */
46published service DocumentSettings
47{
48    service com::sun::star::document::Settings;
49
50    //-------------------------------------------------------------------------
51    /** This service configures the header and footer settings during print
52     */
53    [optional] service com::sun::star::document::HeaderFooterSettings;
54
55    //-------------------------------------------------------------------------
56
57    /** provides access to the properties.
58     */
59    interface com::sun::star::beans::XPropertySet;
60
61    //-------------------------------------------------------------------------
62
63    /** This is the default logical measure unit that is used for string
64		formatings inside the document, f.e. the measure text
65     */
66    [optional, property] short MeasureUnit;
67
68    /** is the numerator for the logical scale of the document
69     */
70    [optional, property] long ScaleNumerator;
71
72	/** is the denominator for the logical scale of the document
73     */
74    [optional, property] long ScaleDenominator;
75
76    // Note: the following properties exist also in
77    // css::presentation::DocumentSettings
78
79    // ------------------------------------------------------------
80
81    /** enables or disables the fitting of the page to the printable
82		area during print
83     */
84    [optional, property] boolean IsPrintFitPage;
85
86    /** if this is true and the paper size for printing is larger than
87		the paper size of the printer than the content is tiled over
88		multiple pages.
89     */
90    [optional, property] boolean IsPrintTilePage;
91
92    /** is the number format used for page number fields
93     */
94    [optional, property] long PageNumberFormat;
95
96    /** If this is true, the distance between two paragraphs is
97		the sum of ParaTopMargin of the previous and ParaBottomMargin of
98		the next paragraph. If false, only the greater of the two is
99		choosen.
100     */
101    [optional, property] boolean ParagraphSummation;
102
103};
104
105//=============================================================================
106
107}; }; }; };
108
109#endif
110