xref: /trunk/main/sc/source/ui/inc/IAnyRefDialog.hxx (revision 38d50f7b)
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 #ifndef SC_IANYREFDIALOG_HXX_INCLUDED
24 #define SC_IANYREFDIALOG_HXX_INCLUDED
25 
26 #include <formula/IControlReferenceHandler.hxx>
27 
28 class ScRange;
29 class ScDocument;
30 class ScTabViewShell;
31 class SfxObjectShell;
32 namespace formula
33 {
34     class RefEdit;
35     class RefButton;
36 }
37 class SAL_NO_VTABLE IAnyRefDialog : public formula::IControlReferenceHandler
38 {
39 public:
~IAnyRefDialog()40     virtual ~IAnyRefDialog(){}
41 
42     //virtual void ShowReference(const String& _sRef) = 0;
43     //virtual void HideReference( sal_Bool bDoneRefMode = sal_True ) = 0;
44     //virtual void ReleaseFocus( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ) = 0;
45     //virtual void ToggleCollapsed( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ) = 0;
46 
47 
48     virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ) = 0;
49     virtual void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ) = 0;
50     virtual void RefInputDone( sal_Bool bForced = sal_False ) = 0;
51     virtual sal_Bool IsTableLocked() const = 0;
52     virtual sal_Bool IsRefInputMode() const = 0;
53 
54     virtual sal_Bool IsDocAllowed( SfxObjectShell* pDocSh ) const = 0;
55     virtual void AddRefEntry() = 0;
56     virtual void SetActive() = 0;
57     virtual void ViewShellChanged( ScTabViewShell* pScViewShell ) = 0;
58 };
59 
60 #endif // SC_IANYREFDIALOG_HXX_INCLUDED
61