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