xref: /aoo41x/main/sc/source/core/tool/hints.cxx (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 
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_sc.hxx"
30 
31 
32 
33 #include "hints.hxx"
34 
35 // -----------------------------------------------------------------------
36 
37 TYPEINIT1(ScPaintHint, SfxHint);
38 TYPEINIT1(ScUpdateRefHint, SfxHint);
39 TYPEINIT1(ScPointerChangedHint, SfxHint);
40 TYPEINIT1(ScLinkRefreshedHint, SfxHint);
41 TYPEINIT1(ScAutoStyleHint, SfxHint);
42 TYPEINIT1(ScDBRangeRefreshedHint, SfxHint);
43 TYPEINIT1(ScDataPilotModifiedHint, SfxHint);
44 
45 // -----------------------------------------------------------------------
46 //      ScPaintHint - Angabe, was neu gezeichnet werden muss
47 // -----------------------------------------------------------------------
48 
49 ScPaintHint::ScPaintHint( const ScRange& rRng, sal_uInt16 nPaint ) :
50 	aRange( rRng ),
51 	nParts( nPaint ),
52 	bPrint( sal_True )
53 {
54 }
55 
56 ScPaintHint::~ScPaintHint()
57 {
58 }
59 
60 // -----------------------------------------------------------------------
61 //      ScUpdateRefHint - Referenz-Updaterei
62 // -----------------------------------------------------------------------
63 
64 ScUpdateRefHint::ScUpdateRefHint( UpdateRefMode eMode, const ScRange& rR,
65 									SCsCOL nX, SCsROW nY, SCsTAB nZ ) :
66 	eUpdateRefMode( eMode ),
67 	aRange( rR ),
68 	nDx( nX ),
69 	nDy( nY ),
70 	nDz( nZ )
71 {
72 }
73 
74 ScUpdateRefHint::~ScUpdateRefHint()
75 {
76 }
77 
78 // -----------------------------------------------------------------------
79 //      ScPointerChangedHint - Pointer ist ungueltig geworden
80 // -----------------------------------------------------------------------
81 
82 //UNUSED2008-05  ScPointerChangedHint::ScPointerChangedHint( sal_uInt16 nF ) :
83 //UNUSED2008-05      nFlags( nF )
84 //UNUSED2008-05  {
85 //UNUSED2008-05  }
86 
87 ScPointerChangedHint::~ScPointerChangedHint()
88 {
89 }
90 
91 // -----------------------------------------------------------------------
92 //      ScLinkRefreshedHint - a link has been refreshed
93 // -----------------------------------------------------------------------
94 
95 ScLinkRefreshedHint::ScLinkRefreshedHint() :
96 	nLinkType( SC_LINKREFTYPE_NONE ),
97 	nDdeMode( 0 )
98 {
99 }
100 
101 ScLinkRefreshedHint::~ScLinkRefreshedHint()
102 {
103 }
104 
105 void ScLinkRefreshedHint::SetSheetLink( const String& rSourceUrl )
106 {
107 	nLinkType = SC_LINKREFTYPE_SHEET;
108 	aUrl = rSourceUrl;
109 }
110 
111 void ScLinkRefreshedHint::SetDdeLink(
112 			const String& rA, const String& rT, const String& rI, sal_uInt8 nM )
113 {
114 	nLinkType = SC_LINKREFTYPE_DDE;
115 	aDdeAppl  = rA;
116 	aDdeTopic = rT;
117 	aDdeItem  = rI;
118 	nDdeMode  = nM;
119 }
120 
121 void ScLinkRefreshedHint::SetAreaLink( const ScAddress& rPos )
122 {
123 	nLinkType = SC_LINKREFTYPE_AREA;
124 	aDestPos = rPos;
125 }
126 
127 // -----------------------------------------------------------------------
128 //      ScAutoStyleHint - STYLE() function has been called
129 // -----------------------------------------------------------------------
130 
131 ScAutoStyleHint::ScAutoStyleHint( const ScRange& rR, const String& rSt1,
132 										sal_uLong nT, const String& rSt2 ) :
133 	aRange( rR ),
134 	aStyle1( rSt1 ),
135 	aStyle2( rSt2 ),
136 	nTimeout( nT )
137 {
138 }
139 
140 ScAutoStyleHint::~ScAutoStyleHint()
141 {
142 }
143 
144 
145 ScDBRangeRefreshedHint::ScDBRangeRefreshedHint( const ScImportParam& rP )
146     : aParam(rP)
147 {
148 }
149 ScDBRangeRefreshedHint::~ScDBRangeRefreshedHint()
150 {
151 }
152 
153 
154 ScDataPilotModifiedHint::ScDataPilotModifiedHint( const String& rName )
155     : maName(rName)
156 {
157 }
158 ScDataPilotModifiedHint::~ScDataPilotModifiedHint()
159 {
160 }
161 
162 
163