merged tag ooo/OOO330_m14
[LibreOffice.git] / sc / inc / brdcst.hxx
blobcdba4e3a78bb8991c461c112c6d5b0e149c0dbe0
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
27 #ifndef _SC_BRDCST_HXX
28 #define _SC_BRDCST_HXX
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;
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
42 class ScHint : public SfxSimpleHint
44 private:
45 ScAddress aAddress;
46 ScBaseCell* pCell;
48 public:
49 TYPEINFO();
50 ScHint( 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; }
59 class ScAreaChangedHint : public SfxHint
61 private:
62 ScRange aNewRange;
63 public:
64 TYPEINFO();
65 ScAreaChangedHint(const ScRange& rRange) : aNewRange(rRange) {}
66 const ScRange& GetRange() const { return aNewRange; }
70 #endif