xref: /aoo41x/main/sc/inc/brdcst.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SC_BRDCST_HXX
28 #define _SC_BRDCST_HXX
29 
30 #include "global.hxx"
31 #include "address.hxx"
32 #include <tools/rtti.hxx>
33 #include <svl/hint.hxx>
34 #include <svl/smplhint.hxx>
35 class ScBaseCell;
36 
37 #define SC_HINT_DYING		SFX_HINT_DYING
38 #define SC_HINT_DATACHANGED	SFX_HINT_DATACHANGED
39 #define SC_HINT_TABLEOPDIRTY	SFX_HINT_USER00
40 #define SC_HINT_CALCALL         SFX_HINT_USER01
41 
42 class ScHint : public SfxSimpleHint
43 {
44 private:
45 	ScAddress	aAddress;
46 	ScBaseCell* pCell;
47 
48 public:
49 	TYPEINFO();
50 						ScHint( sal_uLong n, const ScAddress& a, ScBaseCell* p )
51 							: SfxSimpleHint( n ), aAddress( a ), pCell( p ) {}
52 	ScBaseCell*			GetCell() const { return pCell; }
53     void                SetCell( ScBaseCell* p )    { pCell = p; }
54     const ScAddress&	GetAddress() const { return aAddress; }
55           ScAddress&    GetAddress()       { return aAddress; }
56     void                SetAddress( const ScAddress& rAdr ) { aAddress = rAdr; }
57 };
58 
59 class ScAreaChangedHint : public SfxHint
60 {
61 private:
62 	ScRange	aNewRange;
63 public:
64 					TYPEINFO();
65 					ScAreaChangedHint(const ScRange& rRange) : aNewRange(rRange) {}
66 	const ScRange&	GetRange() const { return aNewRange; }
67 };
68 
69 
70 #endif
71