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 .
22 module com
{ module sun
{ module star
{ module awt
{
25 /** makes it possible to attach an output device to the object.
27 <p>This kind of object is called view-object.</p>
29 published
interface XView
: com
::sun
::star
::uno
::XInterface
32 /** sets the output device.
34 boolean setGraphics
( [in] com
::sun
::star
::awt
::XGraphics aDevice
);
37 /** returns the output device which was set using the method
40 com
::sun
::star
::awt
::XGraphics getGraphics
();
43 /** returns the size of the object in device units.
45 <p>A device must be set before.</p>
47 com
::sun
::star
::awt
::Size getSize
();
50 /** draws the object at the specified position.
52 <p>If the output should be clipped, the caller has to set the
55 void draw
( [in] long nX
,
59 /** sets the zoom factor.
61 <p>The zoom factor only affects the content of the view, not the size.</p>
63 void setZoom
( [in] float fZoomX
,
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */