1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_drawing_DrawingDocumentDrawView_idl__
20 #define __com_sun_star_drawing_DrawingDocumentDrawView_idl__
22 #include
<com
/sun
/star
/drawing
/XDrawView.idl
>
24 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
26 #include
<com
/sun
/star
/frame
/Controller.idl
>
28 #include
<com
/sun
/star
/view
/XSelectionSupplier.idl
>
30 #include
<com
/sun
/star
/drawing
/XDrawPage.idl
>
31 #include
<com
/sun
/star
/awt
/XWindow.idl
>
32 #include
<com
/sun
/star
/awt
/Point.idl
>
34 module com
{ module sun
{ module star
{ module view
{
35 published
interface XFormLayerAccess
;
39 module com
{ module sun
{ module star
{ module drawing
{
42 /** This component integrates a view to a DrawPages or
43 MasterPage from a DrawingDocument.
45 published service DrawingDocumentDrawView
48 /** this services offers the integration of this component into the
51 service com
::sun
::star
::frame
::Controller
;
54 /** lets you access the window for this view
58 [optional] interface com
::sun
::star
::awt
::XWindow
;
60 /** let's you access the view part of the form layer contained in the document's view
62 [optional] interface com
::sun
::star
::view
::XFormLayerAccess
;
65 /** lets you set/get the current page displayed by this
68 interface com
::sun
::star
::drawing
::XDrawView
;
72 /** lets you access the properties of this service.
74 interface com
::sun
::star
::beans
::XPropertySet
;
78 /** gives you access to the selected entities of this
81 interface com
::sun
::star
::view
::XSelectionSupplier
;
84 /** If the view is in master page mode, the view shows the master pages
87 [property
] boolean IsMasterPageMode
;
90 /** If the view is in layer mode, the user can modify the layer of the
91 model of this view in the user interface.
93 [property
] boolean IsLayerMode
;
97 /** This is the drawing page that is currently visible.
99 [property
] XDrawPage CurrentPage
;
102 /** This is the area that is currently visible.
104 [readonly, property
] com
::sun
::star
::awt
::Rectangle VisibleArea
;
107 /** This property defines the zoom type for the document.
108 @see com::sun::star::view::DocumentZoomType
110 Note: After setting other types then
111 com::sun::star::view::DocumentZoomType::BY_VALUE,
112 implementations may calculate the required zoom value and set the type
113 to com::sun::star::view::DocumentZoomType::BY_VALUE
118 [optional, property
] short ZoomType
;
121 /** Defines the zoom value to use.
122 Valid only if the ZoomType is set to
123 com::sun::star::view::DocumentZoomType::BY_VALUE.
127 [optional, property
] short ZoomValue
;
130 /** defines the offset from the top left position of the displayed page
131 to the top left position of the view area in 100th/mm.
135 [optional, property
] com
::sun
::star
::awt
::Point ViewOffset
;
137 /** The sub controller takes over view specific handling of properties,
138 the selection, and the current page/slide.
140 The following line is commented because XDrawSubController is not
141 (yet) published and the IDL compiler does not allow that.
143 [optional, property] ::com::sun::star::drawing::XDrawSubController SubController;
152 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */