Line data Source code
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 : #ifndef DBA30D_IAPPLICATIONCONTROLLER_HXX
21 : #define DBA30D_IAPPLICATIONCONTROLLER_HXX
22 :
23 : #include "IController.hxx"
24 : #include "AppElementType.hxx"
25 : #include "callbacks.hxx"
26 :
27 : class SvTreeListBox;
28 :
29 : //........................................................................
30 : namespace dbaui
31 : {
32 : //........................................................................
33 :
34 0 : class SAL_NO_VTABLE IApplicationController :public IController
35 : ,public IControlActionListener
36 : ,public IContextMenuProvider
37 : {
38 : public:
39 : /** called when an entry in a tree list box has been double-clicked
40 : @param _rTree
41 : The tree list box.
42 : @return
43 : <TRUE/> if the double click event has been handled by the called, and should not
44 : be processed further.
45 : */
46 : virtual bool onEntryDoubleClick( SvTreeListBox& _rTree ) = 0;
47 :
48 : /** called when a container (category) in the application view has been selected
49 : @param _pTree
50 : The tree list box.
51 : @return
52 : <TRUE/> if the cotainer could be changed otherwise <FALSE/>
53 : */
54 : virtual sal_Bool onContainerSelect(ElementType _eType) = 0;
55 :
56 : /** called when an entry in a tree view has been selected
57 : @param _pEntry
58 : the selected entry
59 : */
60 : virtual void onSelectionChanged() = 0;
61 :
62 : /** called when a "Cut" command is executed in a tree view
63 : */
64 : virtual void onCutEntry() = 0;
65 :
66 : /** called when a "Copy" command is executed in a tree view
67 : */
68 : virtual void onCopyEntry() = 0;
69 :
70 : /** called when a "Paste" command is executed in a tree view
71 : */
72 : virtual void onPasteEntry() = 0;
73 :
74 : /** called when a "Delete" command is executed in a tree view
75 : */
76 : virtual void onDeleteEntry() = 0;
77 :
78 : /// called when the preview mode was changed
79 : virtual void previewChanged( sal_Int32 _nMode ) = 0;
80 :
81 : /// called when an object container of any kind was found during enumerating tree view elements
82 : virtual void containerFound( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainer >& _xContainer) = 0;
83 :
84 : protected:
85 0 : ~IApplicationController() {}
86 : };
87 :
88 : //........................................................................
89 : } // namespace dbaui
90 : //........................................................................
91 :
92 : #endif // DBA30D_IAPPLICATIONCONTROLLER_HXX
93 :
94 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|