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 715547 : TYPEINIT1(ScPaintHint, SfxHint);
23 183678 : TYPEINIT1(ScUpdateRefHint, SfxHint);
24 22021 : TYPEINIT1(ScPointerChangedHint, SfxHint);
25 171 : TYPEINIT1(ScLinkRefreshedHint, SfxHint);
26 21693 : TYPEINIT1(ScAutoStyleHint, SfxHint);
27 287 : TYPEINIT1(ScDBRangeRefreshedHint, SfxHint);
28 16085 : TYPEINIT1(ScDataPilotModifiedHint, SfxHint);
29 :
30 : // ScPaintHint - info what has to be repainted
31 :
32 17053 : ScPaintHint::ScPaintHint( const ScRange& rRng, sal_uInt16 nPaint ) :
33 : aRange( rRng ),
34 : nParts( nPaint ),
35 17053 : bPrint( true )
36 : {
37 17053 : }
38 :
39 17053 : ScPaintHint::~ScPaintHint()
40 : {
41 17053 : }
42 :
43 : // ScUpdateRefHint - update references
44 :
45 269 : ScUpdateRefHint::ScUpdateRefHint( UpdateRefMode eMode, const ScRange& rR,
46 : SCsCOL nX, SCsROW nY, SCsTAB nZ ) :
47 : eUpdateRefMode( eMode ),
48 : aRange( rR ),
49 : nDx( nX ),
50 : nDy( nY ),
51 269 : nDz( nZ )
52 : {
53 269 : }
54 :
55 269 : ScUpdateRefHint::~ScUpdateRefHint()
56 : {
57 269 : }
58 :
59 : // ScPointerChangedHint - pointer has become invalid
60 :
61 0 : ScPointerChangedHint::~ScPointerChangedHint()
62 : {
63 0 : }
64 :
65 : // ScLinkRefreshedHint - a link has been refreshed
66 :
67 8 : ScLinkRefreshedHint::ScLinkRefreshedHint() :
68 : nLinkType( SC_LINKREFTYPE_NONE ),
69 8 : nDdeMode( 0 )
70 : {
71 8 : }
72 :
73 8 : ScLinkRefreshedHint::~ScLinkRefreshedHint()
74 : {
75 8 : }
76 :
77 2 : void ScLinkRefreshedHint::SetSheetLink( const OUString& rSourceUrl )
78 : {
79 2 : nLinkType = SC_LINKREFTYPE_SHEET;
80 2 : aUrl = rSourceUrl;
81 2 : }
82 :
83 2 : void ScLinkRefreshedHint::SetDdeLink(
84 : const OUString& rA, const OUString& rT, const OUString& rI, sal_uInt8 nM )
85 : {
86 2 : nLinkType = SC_LINKREFTYPE_DDE;
87 2 : aDdeAppl = rA;
88 2 : aDdeTopic = rT;
89 2 : aDdeItem = rI;
90 2 : nDdeMode = nM;
91 2 : }
92 :
93 4 : void ScLinkRefreshedHint::SetAreaLink( const ScAddress& rPos )
94 : {
95 4 : nLinkType = SC_LINKREFTYPE_AREA;
96 4 : aDestPos = rPos;
97 4 : }
98 :
99 : // ScAutoStyleHint - STYLE() function has been called
100 :
101 0 : ScAutoStyleHint::ScAutoStyleHint( const ScRange& rR, const OUString& rSt1,
102 : sal_uLong nT, const OUString& rSt2 ) :
103 : aRange( rR ),
104 : aStyle1( rSt1 ),
105 : aStyle2( rSt2 ),
106 0 : nTimeout( nT )
107 : {
108 0 : }
109 :
110 0 : ScAutoStyleHint::~ScAutoStyleHint()
111 : {
112 0 : }
113 :
114 4 : ScDBRangeRefreshedHint::ScDBRangeRefreshedHint( const ScImportParam& rP )
115 4 : : aParam(rP)
116 : {
117 4 : }
118 4 : ScDBRangeRefreshedHint::~ScDBRangeRefreshedHint()
119 : {
120 4 : }
121 :
122 47 : ScDataPilotModifiedHint::ScDataPilotModifiedHint( const OUString& rName )
123 47 : : maName(rName)
124 : {
125 47 : }
126 47 : ScDataPilotModifiedHint::~ScDataPilotModifiedHint()
127 : {
128 47 : }
129 :
130 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|