1 /*************************************************************************
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * Copyright 2008 by Sun Microsystems, Inc.
6 * OpenOffice.org - a multi-platform office productivity suite
8 * $RCSfile: IApplicationController.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
28 ************************************************************************/
30 #ifndef DBA30D_IAPPLICATIONCONTROLLER_HXX
31 #define DBA30D_IAPPLICATIONCONTROLLER_HXX
33 #include "IController.hxx"
34 #include "AppElementType.hxx"
35 #include "callbacks.hxx"
37 /** === begin UNO includes === **/
38 /** === end UNO includes === **/
43 //........................................................................
46 //........................................................................
48 class SAL_NO_VTABLE IApplicationController
:public IController
49 ,public IControlActionListener
50 ,public IContextMenuProvider
53 /** called when an entry in a tree list box has been double-clicked
57 <TRUE/> if the double click event has been handled by the called, and should not
60 virtual bool onEntryDoubleClick( SvTreeListBox
& _rTree
) = 0;
62 /** called when a container (category) in the application view has been selected
66 <TRUE/> if the cotainer could be changed otherwise <FALSE/>
68 virtual sal_Bool
onContainerSelect(ElementType _eType
) = 0;
70 /** called when an entry in a tree view has been selected
74 virtual void onSelectionChanged() = 0;
76 /** called when a "Cut" command is executed in a tree view
78 virtual void onCutEntry() = 0;
80 /** called when a "Copy" command is executed in a tree view
82 virtual void onCopyEntry() = 0;
84 /** called when a "Paste" command is executed in a tree view
86 virtual void onPasteEntry() = 0;
88 /** called when a "Delete" command is executed in a tree view
90 virtual void onDeleteEntry() = 0;
92 /// called when the preview mode was changed
93 virtual void previewChanged( sal_Int32 _nMode
) = 0;
95 /// called when an object container of any kind was found during enumerating tree view elements
96 virtual void containerFound( const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XContainer
>& _xContainer
) = 0;
99 //........................................................................
101 //........................................................................
103 #endif // DBA30D_IAPPLICATIONCONTROLLER_HXX