1*d1766043SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 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 10cdf0e10cSrcweir * 11*d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 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. 19cdf0e10cSrcweir * 20*d1766043SAndrew Rist *************************************************************/ 21*d1766043SAndrew Rist 22*d1766043SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir#ifndef __com_sun_star_datatransfer_dnd_XAutoscroll_idl__ 25cdf0e10cSrcweir#define __com_sun_star_datatransfer_dnd_XAutoscroll_idl__ 26cdf0e10cSrcweir 27cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__ 28cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl> 29cdf0e10cSrcweir#endif 30cdf0e10cSrcweir 31cdf0e10cSrcweir//============================================================================= 32cdf0e10cSrcweir 33cdf0e10cSrcweirmodule com { module sun { module star { module datatransfer { module dnd { 34cdf0e10cSrcweir 35cdf0e10cSrcweir//============================================================================= 36cdf0e10cSrcweir/** Interface for autoscroll support. 37cdf0e10cSrcweir 38cdf0e10cSrcweir <p>During Drag and Drop operations it is possible that a user may wish to drop the 39cdf0e10cSrcweir subject of the operation on a region of a scrollable GUI control that is 40cdf0e10cSrcweir not currently visible to the user.</p> 41cdf0e10cSrcweir 42cdf0e10cSrcweir <p>In such situations it is desirable that the GUI control detect this and 43cdf0e10cSrcweir institute a scroll operation in order to make obscured region(s) visible to 44cdf0e10cSrcweir the user. This feature is known as autoscrolling.</p> 45cdf0e10cSrcweir 46cdf0e10cSrcweir <p>If a GUI control is both an active DropTarget and is also scrollable, 47cdf0e10cSrcweir it can receive notifications of autoscrolling gestures by the user from 48cdf0e10cSrcweir the Drag and Drop system by implementing this interface.</p> 49cdf0e10cSrcweir 50cdf0e10cSrcweir <p>An autoscrolling gesture is initiated by the user by keeping the drag 51cdf0e10cSrcweir cursor motionless with a border region of the Component, referred to as 52cdf0e10cSrcweir the "autoscrolling region", for a predefined period of time, this will 53cdf0e10cSrcweir result in repeated scroll requests to the Component until the drag Cursor 54cdf0e10cSrcweir resumes its motion. </p> 55cdf0e10cSrcweir*/ 56cdf0e10cSrcweir 57cdf0e10cSrcweirpublished interface XAutoscroll: com::sun::star::uno::XInterface 58cdf0e10cSrcweir{ 59cdf0e10cSrcweir //------------------------------------------------------------------------- 60cdf0e10cSrcweir /** Notify the component to autoscroll. 61cdf0e10cSrcweir 62cdf0e10cSrcweir @param cursorLocationX 63cdf0e10cSrcweir X location of the cursor in pixel. 64cdf0e10cSrcweir 65cdf0e10cSrcweir @param cursorLocationY 66cdf0e10cSrcweir Y location of the cursor in pixel. 67cdf0e10cSrcweir */ 68cdf0e10cSrcweir 69cdf0e10cSrcweir [oneway] void autoscroll( [in] long cursorLocationX, [in] long cursorLocationY ); 70cdf0e10cSrcweir 71cdf0e10cSrcweir //------------------------------------------------------------------------- 72cdf0e10cSrcweir /** Returns the regions describing the autoscrolling region. 73cdf0e10cSrcweir 74cdf0e10cSrcweir @returns 75cdf0e10cSrcweir The regions describing the autoscrolling region or border 76cdf0e10cSrcweir relative to the geometry of the implementing component. 77cdf0e10cSrcweir */ 78cdf0e10cSrcweir 79cdf0e10cSrcweir any getAutoscrollRegion(); 80cdf0e10cSrcweir}; 81cdf0e10cSrcweir 82cdf0e10cSrcweir//============================================================================= 83cdf0e10cSrcweir 84cdf0e10cSrcweir}; }; }; }; }; 85cdf0e10cSrcweir 86cdf0e10cSrcweir#endif 87