1*b1cdbd2cSJim Jagielski/************************************************************** 2*b1cdbd2cSJim Jagielski * 3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski * distributed with this work for additional information 6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski * 11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski * 13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski * under the License. 19*b1cdbd2cSJim Jagielski * 20*b1cdbd2cSJim Jagielski *************************************************************/ 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski 24*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_ui_XDockingAreaAcceptor_idl__ 25*b1cdbd2cSJim Jagielski#define __com_sun_star_ui_XDockingAreaAcceptor_idl__ 26*b1cdbd2cSJim Jagielski 27*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_uno_XInterface_idl__ 28*b1cdbd2cSJim Jagielski#include <com/sun/star/uno/XInterface.idl> 29*b1cdbd2cSJim Jagielski#endif 30*b1cdbd2cSJim Jagielski 31*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_awt_Rectangle_idl__ 32*b1cdbd2cSJim Jagielski#include <com/sun/star/awt/Rectangle.idl> 33*b1cdbd2cSJim Jagielski#endif 34*b1cdbd2cSJim Jagielski 35*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_awt_XWindow_idl__ 36*b1cdbd2cSJim Jagielski#include <com/sun/star/awt/XWindow.idl> 37*b1cdbd2cSJim Jagielski#endif 38*b1cdbd2cSJim Jagielski 39*b1cdbd2cSJim Jagielski//============================================================================= 40*b1cdbd2cSJim Jagielski 41*b1cdbd2cSJim Jagielskimodule com { module sun { module star { module ui { 42*b1cdbd2cSJim Jagielski 43*b1cdbd2cSJim Jagielski//============================================================================= 44*b1cdbd2cSJim Jagielski 45*b1cdbd2cSJim Jagielski/** this interface enables developer to implement different docking area 46*b1cdbd2cSJim Jagielski acceptors which are used by the frame based layout manager. 47*b1cdbd2cSJim Jagielski 48*b1cdbd2cSJim Jagielski <p> 49*b1cdbd2cSJim Jagielski A docking area acceptor is responsible to control the docking area of a 50*b1cdbd2cSJim Jagielski container window. As OLE for example supports inplace and outplace editing, 51*b1cdbd2cSJim Jagielski there are different parts of code responsible for the container window. 52*b1cdbd2cSJim Jagielski This interface enables developer to make support implementations for these 53*b1cdbd2cSJim Jagielski scenarios. 54*b1cdbd2cSJim Jagielski 55*b1cdbd2cSJim Jagielski @see com::sun::star::frame::XFrame 56*b1cdbd2cSJim Jagielski </p> 57*b1cdbd2cSJim Jagielski 58*b1cdbd2cSJim Jagielski @since OpenOffice 2.0 59*b1cdbd2cSJim Jagielski*/ 60*b1cdbd2cSJim Jagielski 61*b1cdbd2cSJim Jagielski 62*b1cdbd2cSJim Jagielskipublished interface XDockingAreaAcceptor : com::sun::star::uno::XInterface 63*b1cdbd2cSJim Jagielski{ 64*b1cdbd2cSJim Jagielski /** provide the container window where the layout manager can request border 65*b1cdbd2cSJim Jagielski space for docking windows. 66*b1cdbd2cSJim Jagielski 67*b1cdbd2cSJim Jagielski <p> 68*b1cdbd2cSJim Jagielski Additionally the layout manager uses this window to create its own child 69*b1cdbd2cSJim Jagielski windows for docking purposes. 70*b1cdbd2cSJim Jagielski </p> 71*b1cdbd2cSJim Jagielski */ 72*b1cdbd2cSJim Jagielski com::sun::star::awt::XWindow getContainerWindow(); 73*b1cdbd2cSJim Jagielski 74*b1cdbd2cSJim Jagielski /** method to ask an implementation if the provided space for docking windows 75*b1cdbd2cSJim Jagielski is available or not. 76*b1cdbd2cSJim Jagielski 77*b1cdbd2cSJim Jagielski <p> 78*b1cdbd2cSJim Jagielski The <type scope="com::sun::star::awt">Rectangle</type> parameter is 79*b1cdbd2cSJim Jagielski filled by the caller with pixel data. The members of 80*b1cdbd2cSJim Jagielski <type scope="com::sun::star::awt">Rectangle</type> must be filled 81*b1cdbd2cSJim Jagielski as following: 82*b1cdbd2cSJim Jagielski <ul> 83*b1cdbd2cSJim Jagielski <li>X = requested area on left side (in pixel)</li> 84*b1cdbd2cSJim Jagielski <li>Y = requested area on top side (in pixel)</li> 85*b1cdbd2cSJim Jagielski <li>Width = requested area on right side (in pixel)</li> 86*b1cdbd2cSJim Jagielski <li>Height = requested area on bottom side (in pixel)</li> 87*b1cdbd2cSJim Jagielski </ul> 88*b1cdbd2cSJim Jagielski </p> 89*b1cdbd2cSJim Jagielski */ 90*b1cdbd2cSJim Jagielski boolean requestDockingAreaSpace( [in] com::sun::star::awt::Rectangle RequestedSpace ); 91*b1cdbd2cSJim Jagielski 92*b1cdbd2cSJim Jagielski /** method to brief an implementation that we need new border space. 93*b1cdbd2cSJim Jagielski 94*b1cdbd2cSJim Jagielski <p> 95*b1cdbd2cSJim Jagielski The callee must size its document window so that we have the amount 96*b1cdbd2cSJim Jagielski of space we have provided. The <type scope="com::sun::star::awt">Rectangle</type> 97*b1cdbd2cSJim Jagielski parameter is filled by the caller with pixel data. The members of 98*b1cdbd2cSJim Jagielski <type scope="com::sun::star::awt">Rectangle</type> must be filled as 99*b1cdbd2cSJim Jagielski following: 100*b1cdbd2cSJim Jagielski <ul> 101*b1cdbd2cSJim Jagielski <li>X = new area on left side (in pixel)</li> 102*b1cdbd2cSJim Jagielski <li>Y = new area on top side (in pixel)</li> 103*b1cdbd2cSJim Jagielski <li>Width = new area on right side (in pixel)</li> 104*b1cdbd2cSJim Jagielski <li>Height = new area on bottom side (in pixel)</li> 105*b1cdbd2cSJim Jagielski </ul> 106*b1cdbd2cSJim Jagielski </p> 107*b1cdbd2cSJim Jagielski */ 108*b1cdbd2cSJim Jagielski void setDockingAreaSpace( [in] com::sun::star::awt::Rectangle BorderSpace ); 109*b1cdbd2cSJim Jagielski}; 110*b1cdbd2cSJim Jagielski 111*b1cdbd2cSJim Jagielski}; }; }; }; 112*b1cdbd2cSJim Jagielski 113*b1cdbd2cSJim Jagielski//============================================================================= 114*b1cdbd2cSJim Jagielski 115*b1cdbd2cSJim Jagielski#endif 116