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 .
20 #ifndef INCLUDED_DBACCESS_SOURCE_UI_APP_IAPPLICATIONCONTROLLER_HXX
21 #define INCLUDED_DBACCESS_SOURCE_UI_APP_IAPPLICATIONCONTROLLER_HXX
23 #include <dbaccess/IController.hxx>
24 #include "AppElementType.hxx"
25 #include "callbacks.hxx"
32 class SAL_NO_VTABLE IApplicationController
:public IController
33 ,public IControlActionListener
34 ,public IContextMenuProvider
37 /** called when an entry in a tree list box has been double-clicked
41 <TRUE/> if the double click event has been handled by the called, and should not
44 virtual bool onEntryDoubleClick( SvTreeListBox
& _rTree
) = 0;
46 /** called when a container (category) in the application view has been selected
50 <TRUE/> if the cotainer could be changed otherwise <FALSE/>
52 virtual bool onContainerSelect(ElementType _eType
) = 0;
54 /** called when an entry in a tree view has been selected
58 virtual void onSelectionChanged() = 0;
60 /** called when a "Cut" command is executed in a tree view
62 virtual void onCutEntry() = 0;
64 /** called when a "Copy" command is executed in a tree view
66 virtual void onCopyEntry() = 0;
68 /** called when a "Paste" command is executed in a tree view
70 virtual void onPasteEntry() = 0;
72 /** called when a "Delete" command is executed in a tree view
74 virtual void onDeleteEntry() = 0;
76 /// called when the preview mode was changed
77 virtual void previewChanged( sal_Int32 _nMode
) = 0;
79 /// called when an object container of any kind was found during enumerating tree view elements
80 virtual void containerFound( const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XContainer
>& _xContainer
) = 0;
83 ~IApplicationController() {}
88 #endif // INCLUDED_DBACCESS_SOURCE_UI_APP_IAPPLICATIONCONTROLLER_HXX
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */