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