xref: /aoo42x/main/sc/source/core/tool/hints.cxx (revision b3f79822)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_sc.hxx"
26 
27 
28 
29 #include "hints.hxx"
30 
31 // -----------------------------------------------------------------------
32 
33 TYPEINIT1(ScPaintHint, SfxHint);
34 TYPEINIT1(ScUpdateRefHint, SfxHint);
35 TYPEINIT1(ScPointerChangedHint, SfxHint);
36 TYPEINIT1(ScLinkRefreshedHint, SfxHint);
37 TYPEINIT1(ScAutoStyleHint, SfxHint);
38 TYPEINIT1(ScDBRangeRefreshedHint, SfxHint);
39 TYPEINIT1(ScDataPilotModifiedHint, SfxHint);
40 
41 // -----------------------------------------------------------------------
42 //      ScPaintHint - Angabe, was neu gezeichnet werden muss
43 // -----------------------------------------------------------------------
44 
ScPaintHint(const ScRange & rRng,sal_uInt16 nPaint)45 ScPaintHint::ScPaintHint( const ScRange& rRng, sal_uInt16 nPaint ) :
46 	aRange( rRng ),
47 	nParts( nPaint ),
48 	bPrint( sal_True )
49 {
50 }
51 
~ScPaintHint()52 ScPaintHint::~ScPaintHint()
53 {
54 }
55 
56 // -----------------------------------------------------------------------
57 //      ScUpdateRefHint - Referenz-Updaterei
58 // -----------------------------------------------------------------------
59 
ScUpdateRefHint(UpdateRefMode eMode,const ScRange & rR,SCsCOL nX,SCsROW nY,SCsTAB nZ)60 ScUpdateRefHint::ScUpdateRefHint( UpdateRefMode eMode, const ScRange& rR,
61 									SCsCOL nX, SCsROW nY, SCsTAB nZ ) :
62 	eUpdateRefMode( eMode ),
63 	aRange( rR ),
64 	nDx( nX ),
65 	nDy( nY ),
66 	nDz( nZ )
67 {
68 }
69 
~ScUpdateRefHint()70 ScUpdateRefHint::~ScUpdateRefHint()
71 {
72 }
73 
74 // -----------------------------------------------------------------------
75 //      ScPointerChangedHint - Pointer ist ungueltig geworden
76 // -----------------------------------------------------------------------
77 
78 //UNUSED2008-05  ScPointerChangedHint::ScPointerChangedHint( sal_uInt16 nF ) :
79 //UNUSED2008-05      nFlags( nF )
80 //UNUSED2008-05  {
81 //UNUSED2008-05  }
82 
~ScPointerChangedHint()83 ScPointerChangedHint::~ScPointerChangedHint()
84 {
85 }
86 
87 // -----------------------------------------------------------------------
88 //      ScLinkRefreshedHint - a link has been refreshed
89 // -----------------------------------------------------------------------
90 
ScLinkRefreshedHint()91 ScLinkRefreshedHint::ScLinkRefreshedHint() :
92 	nLinkType( SC_LINKREFTYPE_NONE ),
93 	nDdeMode( 0 )
94 {
95 }
96 
~ScLinkRefreshedHint()97 ScLinkRefreshedHint::~ScLinkRefreshedHint()
98 {
99 }
100 
SetSheetLink(const String & rSourceUrl)101 void ScLinkRefreshedHint::SetSheetLink( const String& rSourceUrl )
102 {
103 	nLinkType = SC_LINKREFTYPE_SHEET;
104 	aUrl = rSourceUrl;
105 }
106 
SetDdeLink(const String & rA,const String & rT,const String & rI,sal_uInt8 nM)107 void ScLinkRefreshedHint::SetDdeLink(
108 			const String& rA, const String& rT, const String& rI, sal_uInt8 nM )
109 {
110 	nLinkType = SC_LINKREFTYPE_DDE;
111 	aDdeAppl  = rA;
112 	aDdeTopic = rT;
113 	aDdeItem  = rI;
114 	nDdeMode  = nM;
115 }
116 
SetAreaLink(const ScAddress & rPos)117 void ScLinkRefreshedHint::SetAreaLink( const ScAddress& rPos )
118 {
119 	nLinkType = SC_LINKREFTYPE_AREA;
120 	aDestPos = rPos;
121 }
122 
123 // -----------------------------------------------------------------------
124 //      ScAutoStyleHint - STYLE() function has been called
125 // -----------------------------------------------------------------------
126 
ScAutoStyleHint(const ScRange & rR,const String & rSt1,sal_uLong nT,const String & rSt2)127 ScAutoStyleHint::ScAutoStyleHint( const ScRange& rR, const String& rSt1,
128 										sal_uLong nT, const String& rSt2 ) :
129 	aRange( rR ),
130 	aStyle1( rSt1 ),
131 	aStyle2( rSt2 ),
132 	nTimeout( nT )
133 {
134 }
135 
~ScAutoStyleHint()136 ScAutoStyleHint::~ScAutoStyleHint()
137 {
138 }
139 
140 
ScDBRangeRefreshedHint(const ScImportParam & rP)141 ScDBRangeRefreshedHint::ScDBRangeRefreshedHint( const ScImportParam& rP )
142     : aParam(rP)
143 {
144 }
~ScDBRangeRefreshedHint()145 ScDBRangeRefreshedHint::~ScDBRangeRefreshedHint()
146 {
147 }
148 
149 
ScDataPilotModifiedHint(const String & rName)150 ScDataPilotModifiedHint::ScDataPilotModifiedHint( const String& rName )
151     : maName(rName)
152 {
153 }
~ScDataPilotModifiedHint()154 ScDataPilotModifiedHint::~ScDataPilotModifiedHint()
155 {
156 }
157 
158 
159