Version 3.6.0.2, tag libreoffice-3.6.0.2
[LibreOffice.git] / dbaccess / source / ui / app / IApplicationController.hxx
blob3d28e3f15086bb88edf20c0cdfc9196632f1dcd3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef DBA30D_IAPPLICATIONCONTROLLER_HXX
29 #define DBA30D_IAPPLICATIONCONTROLLER_HXX
31 #include "IController.hxx"
32 #include "AppElementType.hxx"
33 #include "callbacks.hxx"
35 /** === begin UNO includes === **/
36 /** === end UNO includes === **/
38 class SvTreeListBox;
39 class SvLBoxEntry;
41 //........................................................................
42 namespace dbaui
44 //........................................................................
46 class SAL_NO_VTABLE IApplicationController :public IController
47 ,public IControlActionListener
48 ,public IContextMenuProvider
50 public:
51 /** called when an entry in a tree list box has been double-clicked
52 @param _rTree
53 The tree list box.
54 @return
55 <TRUE/> if the double click event has been handled by the called, and should not
56 be processed further.
58 virtual bool onEntryDoubleClick( SvTreeListBox& _rTree ) = 0;
60 /** called when a container (category) in the application view has been selected
61 @param _pTree
62 The tree list box.
63 @return
64 <TRUE/> if the cotainer could be changed otherwise <FALSE/>
66 virtual sal_Bool onContainerSelect(ElementType _eType) = 0;
68 /** called when an entry in a tree view has been selected
69 @param _pEntry
70 the selected entry
72 virtual void onSelectionChanged() = 0;
74 /** called when a "Cut" command is executed in a tree view
76 virtual void onCutEntry() = 0;
78 /** called when a "Copy" command is executed in a tree view
80 virtual void onCopyEntry() = 0;
82 /** called when a "Paste" command is executed in a tree view
84 virtual void onPasteEntry() = 0;
86 /** called when a "Delete" command is executed in a tree view
88 virtual void onDeleteEntry() = 0;
90 /// called when the preview mode was changed
91 virtual void previewChanged( sal_Int32 _nMode ) = 0;
93 /// called when an object container of any kind was found during enumerating tree view elements
94 virtual void containerFound( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainer >& _xContainer) = 0;
96 protected:
97 ~IApplicationController() {}
100 //........................................................................
101 } // namespace dbaui
102 //........................................................................
104 #endif // DBA30D_IAPPLICATIONCONTROLLER_HXX
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */