1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef DBA30D_IAPPLICATIONCONTROLLER_HXX 25 #define DBA30D_IAPPLICATIONCONTROLLER_HXX 26 27 #include "IController.hxx" 28 #include "AppElementType.hxx" 29 #include "callbacks.hxx" 30 31 /** === begin UNO includes === **/ 32 /** === end UNO includes === **/ 33 34 class SvTreeListBox; 35 class SvLBoxEntry; 36 37 //........................................................................ 38 namespace dbaui 39 { 40 //........................................................................ 41 42 class SAL_NO_VTABLE IApplicationController :public IController 43 ,public IControlActionListener 44 ,public IContextMenuProvider 45 { 46 public: 47 /** called when an entry in a tree list box has been double-clicked 48 @param _rTree 49 The tree list box. 50 @return 51 <TRUE/> if the double click event has been handled by the called, and should not 52 be processed further. 53 */ 54 virtual bool onEntryDoubleClick( SvTreeListBox& _rTree ) = 0; 55 56 /** called when a container (category) in the application view has been selected 57 @param _pTree 58 The tree list box. 59 @return 60 <TRUE/> if the cotainer could be changed otherwise <FALSE/> 61 */ 62 virtual sal_Bool onContainerSelect(ElementType _eType) = 0; 63 64 /** called when an entry in a tree view has been selected 65 @param _pEntry 66 the selected entry 67 */ 68 virtual void onSelectionChanged() = 0; 69 70 /** called when a "Cut" command is executed in a tree view 71 */ 72 virtual void onCutEntry() = 0; 73 74 /** called when a "Copy" command is executed in a tree view 75 */ 76 virtual void onCopyEntry() = 0; 77 78 /** called when a "Paste" command is executed in a tree view 79 */ 80 virtual void onPasteEntry() = 0; 81 82 /** called when a "Delete" command is executed in a tree view 83 */ 84 virtual void onDeleteEntry() = 0; 85 86 /// called when the preview mode was changed 87 virtual void previewChanged( sal_Int32 _nMode ) = 0; 88 89 /// called when an object container of any kind was found during enumerating tree view elements 90 virtual void containerFound( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainer >& _xContainer) = 0; 91 }; 92 93 //........................................................................ 94 } // namespace dbaui 95 //........................................................................ 96 97 #endif // DBA30D_IAPPLICATIONCONTROLLER_HXX 98