1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: hints.cxx,v $
10 * $Revision: 1.6.32.2 $
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 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sc.hxx"
38 // -----------------------------------------------------------------------
40 TYPEINIT1(ScPaintHint
, SfxHint
);
41 TYPEINIT1(ScUpdateRefHint
, SfxHint
);
42 TYPEINIT1(ScPointerChangedHint
, SfxHint
);
43 TYPEINIT1(ScLinkRefreshedHint
, SfxHint
);
44 TYPEINIT1(ScAutoStyleHint
, SfxHint
);
45 TYPEINIT1(ScDBRangeRefreshedHint
, SfxHint
);
47 // -----------------------------------------------------------------------
48 // ScPaintHint - Angabe, was neu gezeichnet werden muss
49 // -----------------------------------------------------------------------
51 ScPaintHint::ScPaintHint( const ScRange
& rRng
, USHORT nPaint
) :
58 ScPaintHint::~ScPaintHint()
62 // -----------------------------------------------------------------------
63 // ScUpdateRefHint - Referenz-Updaterei
64 // -----------------------------------------------------------------------
66 ScUpdateRefHint::ScUpdateRefHint( UpdateRefMode eMode
, const ScRange
& rR
,
67 SCsCOL nX
, SCsROW nY
, SCsTAB nZ
) :
68 eUpdateRefMode( eMode
),
76 ScUpdateRefHint::~ScUpdateRefHint()
80 // -----------------------------------------------------------------------
81 // ScPointerChangedHint - Pointer ist ungueltig geworden
82 // -----------------------------------------------------------------------
84 //UNUSED2008-05 ScPointerChangedHint::ScPointerChangedHint( USHORT nF ) :
85 //UNUSED2008-05 nFlags( nF )
89 ScPointerChangedHint::~ScPointerChangedHint()
93 // -----------------------------------------------------------------------
94 // ScLinkRefreshedHint - a link has been refreshed
95 // -----------------------------------------------------------------------
97 ScLinkRefreshedHint::ScLinkRefreshedHint() :
98 nLinkType( SC_LINKREFTYPE_NONE
),
103 ScLinkRefreshedHint::~ScLinkRefreshedHint()
107 void ScLinkRefreshedHint::SetSheetLink( const String
& rSourceUrl
)
109 nLinkType
= SC_LINKREFTYPE_SHEET
;
113 void ScLinkRefreshedHint::SetDdeLink(
114 const String
& rA
, const String
& rT
, const String
& rI
, BYTE nM
)
116 nLinkType
= SC_LINKREFTYPE_DDE
;
123 void ScLinkRefreshedHint::SetAreaLink( const ScAddress
& rPos
)
125 nLinkType
= SC_LINKREFTYPE_AREA
;
129 // -----------------------------------------------------------------------
130 // ScAutoStyleHint - STYLE() function has been called
131 // -----------------------------------------------------------------------
133 ScAutoStyleHint::ScAutoStyleHint( const ScRange
& rR
, const String
& rSt1
,
134 ULONG nT
, const String
& rSt2
) :
142 ScAutoStyleHint::~ScAutoStyleHint()
147 ScDBRangeRefreshedHint::ScDBRangeRefreshedHint( const ScImportParam
& rP
)
151 ScDBRangeRefreshedHint::~ScDBRangeRefreshedHint()