update dev300-m57
[ooovba.git] / sc / source / core / tool / hints.cxx
blobeefad92c3a98a2e4d3b3aeb1d5303983c465fb78
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: 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"
36 #include "hints.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 ) :
52 aRange( rRng ),
53 nParts( nPaint ),
54 bPrint( TRUE )
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 ),
69 aRange( rR ),
70 nDx( nX ),
71 nDy( nY ),
72 nDz( nZ )
76 ScUpdateRefHint::~ScUpdateRefHint()
80 // -----------------------------------------------------------------------
81 // ScPointerChangedHint - Pointer ist ungueltig geworden
82 // -----------------------------------------------------------------------
84 //UNUSED2008-05 ScPointerChangedHint::ScPointerChangedHint( USHORT nF ) :
85 //UNUSED2008-05 nFlags( nF )
86 //UNUSED2008-05 {
87 //UNUSED2008-05 }
89 ScPointerChangedHint::~ScPointerChangedHint()
93 // -----------------------------------------------------------------------
94 // ScLinkRefreshedHint - a link has been refreshed
95 // -----------------------------------------------------------------------
97 ScLinkRefreshedHint::ScLinkRefreshedHint() :
98 nLinkType( SC_LINKREFTYPE_NONE ),
99 nDdeMode( 0 )
103 ScLinkRefreshedHint::~ScLinkRefreshedHint()
107 void ScLinkRefreshedHint::SetSheetLink( const String& rSourceUrl )
109 nLinkType = SC_LINKREFTYPE_SHEET;
110 aUrl = rSourceUrl;
113 void ScLinkRefreshedHint::SetDdeLink(
114 const String& rA, const String& rT, const String& rI, BYTE nM )
116 nLinkType = SC_LINKREFTYPE_DDE;
117 aDdeAppl = rA;
118 aDdeTopic = rT;
119 aDdeItem = rI;
120 nDdeMode = nM;
123 void ScLinkRefreshedHint::SetAreaLink( const ScAddress& rPos )
125 nLinkType = SC_LINKREFTYPE_AREA;
126 aDestPos = rPos;
129 // -----------------------------------------------------------------------
130 // ScAutoStyleHint - STYLE() function has been called
131 // -----------------------------------------------------------------------
133 ScAutoStyleHint::ScAutoStyleHint( const ScRange& rR, const String& rSt1,
134 ULONG nT, const String& rSt2 ) :
135 aRange( rR ),
136 aStyle1( rSt1 ),
137 aStyle2( rSt2 ),
138 nTimeout( nT )
142 ScAutoStyleHint::~ScAutoStyleHint()
147 ScDBRangeRefreshedHint::ScDBRangeRefreshedHint( const ScImportParam& rP )
148 : aParam(rP)
151 ScDBRangeRefreshedHint::~ScDBRangeRefreshedHint()