LibreOffice Module dbaccess (master) 1
callbacks.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <sot/exchange.hxx>
23
24class Point;
25struct AcceptDropEvent;
26struct ExecuteDropEvent;
27
28namespace comphelper { class OInterfaceContainerHelper2; }
29
30namespace vcl
31{
32 class Window;
33}
34
35namespace weld
36{
37 class TreeIter;
38 class TreeView;
39}
40
41namespace dbaui
42{
43
44 class IController;
45 // IControlActionListener
47 {
48 public:
52 virtual bool requestQuickHelp(const void* pUserData, OUString& rText) const = 0;
53
57 virtual bool requestDrag(const weld::TreeIter& rEntry) = 0;
58
61 virtual sal_Int8 queryDrop( const AcceptDropEvent& _rEvt, const DataFlavorExVector& _rFlavors ) = 0;
62
65 virtual sal_Int8 executeDrop( const ExecuteDropEvent& _rEvt ) = 0;
66
67 protected:
69 };
70
71 // IContextMenuProvider
73 {
74 public:
79 virtual OUString getContextMenuResourceName() const = 0;
80
85
89 virtual ::comphelper::OInterfaceContainerHelper2*
91
97 virtual css::uno::Any getCurrentSelection(weld::TreeView& rControl) const = 0;
98
99 virtual vcl::Window* getMenuParent() const = 0;
100
104 virtual void adjustMenuPosition(const weld::TreeView& rControl, ::Point& rPos) const = 0;
105
106 protected:
108 };
109
110 // IDragTransferableListener
112 {
113 public:
115 virtual void dragFinished( ) = 0;
116
117 protected:
119 };
120
121} // namespace dbaui
122
123/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ::comphelper::OInterfaceContainerHelper2 * getContextMenuInterceptors()=0
returns the container of registered context menu interceptors, or NULL if the implementation does not...
virtual vcl::Window * getMenuParent() const =0
virtual IController & getCommandController()=0
returns the controller which is responsible for providing states of certain features,...
virtual css::uno::Any getCurrentSelection(weld::TreeView &rControl) const =0
returns the current selection in the given control
virtual OUString getContextMenuResourceName() const =0
returns the context menu resource name for the control
virtual void adjustMenuPosition(const weld::TreeView &rControl, ::Point &rPos) const =0
adjust rPos which is initially relative to rControl to be relative to the window of getMenuParent
virtual sal_Int8 queryDrop(const AcceptDropEvent &_rEvt, const DataFlavorExVector &_rFlavors)=0
check whether or not a drop request should be accepted
virtual bool requestDrag(const weld::TreeIter &rEntry)=0
handler for StartDrag requests
virtual bool requestQuickHelp(const void *pUserData, OUString &rText) const =0
requests a quick help text to display
virtual sal_Int8 executeDrop(const ExecuteDropEvent &_rEvt)=0
execute a drop request
virtual void dragFinished()=0
called when a drag operation done with a Transferable has been finished
::std::vector< DataFlavorEx > DataFlavorExVector
#define SAL_NO_VTABLE
signed char sal_Int8