Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #include "hints.hxx"
21 :
22 : // -----------------------------------------------------------------------
23 :
24 76365 : TYPEINIT1(ScPaintHint, SfxHint);
25 3897 : TYPEINIT1(ScUpdateRefHint, SfxHint);
26 3122 : TYPEINIT1(ScPointerChangedHint, SfxHint);
27 0 : TYPEINIT1(ScLinkRefreshedHint, SfxHint);
28 3056 : TYPEINIT1(ScAutoStyleHint, SfxHint);
29 8 : TYPEINIT1(ScDBRangeRefreshedHint, SfxHint);
30 0 : TYPEINIT1(ScDataPilotModifiedHint, SfxHint);
31 :
32 : // -----------------------------------------------------------------------
33 : // ScPaintHint - info what has to be repainted
34 : // -----------------------------------------------------------------------
35 :
36 2647 : ScPaintHint::ScPaintHint( const ScRange& rRng, sal_uInt16 nPaint ) :
37 : aRange( rRng ),
38 : nParts( nPaint ),
39 2647 : bPrint( sal_True )
40 : {
41 2647 : }
42 :
43 2647 : ScPaintHint::~ScPaintHint()
44 : {
45 2647 : }
46 :
47 : // -----------------------------------------------------------------------
48 : // ScUpdateRefHint - update references
49 : // -----------------------------------------------------------------------
50 :
51 66 : ScUpdateRefHint::ScUpdateRefHint( UpdateRefMode eMode, const ScRange& rR,
52 : SCsCOL nX, SCsROW nY, SCsTAB nZ ) :
53 : eUpdateRefMode( eMode ),
54 : aRange( rR ),
55 : nDx( nX ),
56 : nDy( nY ),
57 66 : nDz( nZ )
58 : {
59 66 : }
60 :
61 66 : ScUpdateRefHint::~ScUpdateRefHint()
62 : {
63 66 : }
64 :
65 : // -----------------------------------------------------------------------
66 : // ScPointerChangedHint - pointer has become invalid
67 : // -----------------------------------------------------------------------
68 :
69 :
70 0 : ScPointerChangedHint::~ScPointerChangedHint()
71 : {
72 0 : }
73 :
74 : // -----------------------------------------------------------------------
75 : // ScLinkRefreshedHint - a link has been refreshed
76 : // -----------------------------------------------------------------------
77 :
78 0 : ScLinkRefreshedHint::ScLinkRefreshedHint() :
79 : nLinkType( SC_LINKREFTYPE_NONE ),
80 0 : nDdeMode( 0 )
81 : {
82 0 : }
83 :
84 0 : ScLinkRefreshedHint::~ScLinkRefreshedHint()
85 : {
86 0 : }
87 :
88 0 : void ScLinkRefreshedHint::SetSheetLink( const String& rSourceUrl )
89 : {
90 0 : nLinkType = SC_LINKREFTYPE_SHEET;
91 0 : aUrl = rSourceUrl;
92 0 : }
93 :
94 0 : void ScLinkRefreshedHint::SetDdeLink(
95 : const String& rA, const String& rT, const String& rI, sal_uInt8 nM )
96 : {
97 0 : nLinkType = SC_LINKREFTYPE_DDE;
98 0 : aDdeAppl = rA;
99 0 : aDdeTopic = rT;
100 0 : aDdeItem = rI;
101 0 : nDdeMode = nM;
102 0 : }
103 :
104 0 : void ScLinkRefreshedHint::SetAreaLink( const ScAddress& rPos )
105 : {
106 0 : nLinkType = SC_LINKREFTYPE_AREA;
107 0 : aDestPos = rPos;
108 0 : }
109 :
110 : // -----------------------------------------------------------------------
111 : // ScAutoStyleHint - STYLE() function has been called
112 : // -----------------------------------------------------------------------
113 :
114 0 : ScAutoStyleHint::ScAutoStyleHint( const ScRange& rR, const String& rSt1,
115 : sal_uLong nT, const String& rSt2 ) :
116 : aRange( rR ),
117 : aStyle1( rSt1 ),
118 : aStyle2( rSt2 ),
119 0 : nTimeout( nT )
120 : {
121 0 : }
122 :
123 0 : ScAutoStyleHint::~ScAutoStyleHint()
124 : {
125 0 : }
126 :
127 :
128 0 : ScDBRangeRefreshedHint::ScDBRangeRefreshedHint( const ScImportParam& rP )
129 0 : : aParam(rP)
130 : {
131 0 : }
132 0 : ScDBRangeRefreshedHint::~ScDBRangeRefreshedHint()
133 : {
134 0 : }
135 :
136 :
137 0 : ScDataPilotModifiedHint::ScDataPilotModifiedHint( const String& rName )
138 0 : : maName(rName)
139 : {
140 0 : }
141 0 : ScDataPilotModifiedHint::~ScDataPilotModifiedHint()
142 : {
143 0 : }
144 :
145 :
146 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|