xref: /aoo42x/main/sc/inc/brdcst.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_BRDCST_HXX
24 #define _SC_BRDCST_HXX
25 
26 #include "global.hxx"
27 #include "address.hxx"
28 #include <tools/rtti.hxx>
29 #include <svl/hint.hxx>
30 #include <svl/smplhint.hxx>
31 class ScBaseCell;
32 
33 #define SC_HINT_DYING		SFX_HINT_DYING
34 #define SC_HINT_DATACHANGED	SFX_HINT_DATACHANGED
35 #define SC_HINT_TABLEOPDIRTY	SFX_HINT_USER00
36 #define SC_HINT_CALCALL         SFX_HINT_USER01
37 
38 class ScHint : public SfxSimpleHint
39 {
40 private:
41 	ScAddress	aAddress;
42 	ScBaseCell* pCell;
43 
44 public:
45 	TYPEINFO();
ScHint(sal_uLong n,const ScAddress & a,ScBaseCell * p)46 						ScHint( sal_uLong n, const ScAddress& a, ScBaseCell* p )
47 							: SfxSimpleHint( n ), aAddress( a ), pCell( p ) {}
GetCell() const48 	ScBaseCell*			GetCell() const { return pCell; }
SetCell(ScBaseCell * p)49     void                SetCell( ScBaseCell* p )    { pCell = p; }
GetAddress() const50     const ScAddress&	GetAddress() const { return aAddress; }
GetAddress()51           ScAddress&    GetAddress()       { return aAddress; }
SetAddress(const ScAddress & rAdr)52     void                SetAddress( const ScAddress& rAdr ) { aAddress = rAdr; }
53 };
54 
55 class ScAreaChangedHint : public SfxHint
56 {
57 private:
58 	ScRange	aNewRange;
59 public:
60 					TYPEINFO();
ScAreaChangedHint(const ScRange & rRange)61 					ScAreaChangedHint(const ScRange& rRange) : aNewRange(rRange) {}
GetRange() const62 	const ScRange&	GetRange() const { return aNewRange; }
63 };
64 
65 
66 #endif
67