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 .
21 module com
{ module sun
{ module star
{ module datatransfer
{ module dnd
{
23 /** Interface for autoscroll support.
25 <p>During Drag and Drop operations it is possible that a user may wish to drop the
26 subject of the operation on a region of a scrollable GUI control that is
27 not currently visible to the user.</p>
29 <p>In such situations it is desirable that the GUI control detect this and
30 institute a scroll operation in order to make obscured region(s) visible to
31 the user. This feature is known as autoscrolling.</p>
33 <p>If a GUI control is both an active DropTarget and is also scrollable,
34 it can receive notifications of autoscrolling gestures by the user from
35 the Drag and Drop system by implementing this interface.</p>
37 <p>An autoscrolling gesture is initiated by the user by keeping the drag
38 cursor motionless with a border region of the Component, referred to as
39 the "autoscrolling region", for a predefined period of time, this will
40 result in repeated scroll requests to the Component until the drag Cursor
41 resumes its motion. </p>
44 published
interface XAutoscroll
: com
::sun
::star
::uno
::XInterface
46 /** Notify the component to autoscroll.
48 @param cursorLocationX
49 X location of the cursor in pixel.
51 @param cursorLocationY
52 Y location of the cursor in pixel.
55 void autoscroll
( [in] long cursorLocationX
, [in] long cursorLocationY
);
57 /** Returns the regions describing the autoscrolling region.
60 The regions describing the autoscrolling region or border
61 relative to the geometry of the implementing component.
64 any getAutoscrollRegion
();
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */