LibreOffice Module sc (master) 1
hints.cxx
Go to the documentation of this file.
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#include <utility>
22
23// ScPaintHint - info what has to be repainted
24
26 aRange( rRng ),
27 nParts( nPaint )
28{
29}
30
32{
33}
34
35// ScUpdateRefHint - update references
36
38 SCCOL nX, SCROW nY, SCTAB nZ ) :
39 eUpdateRefMode( eMode ),
40 aRange( rR ),
41 nDx( nX ),
42 nDy( nY ),
43 nDz( nZ )
44{
45}
46
48{
49}
50
51// ScLinkRefreshedHint - a link has been refreshed
52
54 nLinkType( ScLinkRefType::NONE )
55{
56}
57
59{
60}
61
62void ScLinkRefreshedHint::SetSheetLink( const OUString& rSourceUrl )
63{
65 aUrl = rSourceUrl;
66}
67
69 const OUString& rA, const OUString& rT, const OUString& rI )
70{
72 aDdeAppl = rA;
73 aDdeTopic = rT;
74 aDdeItem = rI;
75}
76
78{
80 aDestPos = rPos;
81}
82
83// ScAutoStyleHint - STYLE() function has been called
84
85ScAutoStyleHint::ScAutoStyleHint( const ScRange& rR, OUString aSt1,
86 sal_uLong nT, OUString aSt2 ) :
87 aRange( rR ),
88 aStyle1(std::move( aSt1 )),
89 aStyle2(std::move( aSt2 )),
90 nTimeout( nT )
91{
92}
93
95{
96}
97
99 : aParam(rP)
100{
101}
103{
104}
105
107 : maName(std::move(aName))
108{
109}
111{
112}
113
114/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString maName
ScAutoStyleHint(const ScRange &rR, OUString aSt1, sal_uLong nT, OUString aSt2)
Definition: hints.cxx:85
virtual ~ScAutoStyleHint() override
Definition: hints.cxx:94
virtual ~ScDBRangeRefreshedHint() override
Definition: hints.cxx:102
ScDBRangeRefreshedHint(const ScImportParam &rP)
Definition: hints.cxx:98
ScDataPilotModifiedHint(OUString aName)
Definition: hints.cxx:106
virtual ~ScDataPilotModifiedHint() override
Definition: hints.cxx:110
OUString aUrl
Definition: hints.hxx:74
OUString aDdeItem
Definition: hints.hxx:77
void SetDdeLink(const OUString &rA, const OUString &rT, const OUString &rI)
Definition: hints.cxx:68
ScAddress aDestPos
Definition: hints.hxx:78
ScLinkRefreshedHint()
also use source data for area links?
Definition: hints.cxx:53
OUString aDdeTopic
Definition: hints.hxx:76
void SetSheetLink(const OUString &rSourceUrl)
Definition: hints.cxx:62
virtual ~ScLinkRefreshedHint() override
Definition: hints.cxx:58
ScLinkRefType nLinkType
Definition: hints.hxx:73
void SetAreaLink(const ScAddress &rPos)
Definition: hints.cxx:77
OUString aDdeAppl
Definition: hints.hxx:75
virtual ~ScPaintHint() override
Definition: hints.cxx:31
ScPaintHint()=delete
virtual ~ScUpdateRefHint() override
Definition: hints.cxx:47
ScUpdateRefHint(UpdateRefMode eMode, const ScRange &rR, SCCOL nX, SCROW nY, SCTAB nZ)
Definition: hints.cxx:37
UpdateRefMode
Definition: global.hxx:301
PaintPartFlags
Definition: global.hxx:109
ScLinkRefType
move ScLinkRefreshedHint to a different file?
Definition: hints.hxx:67
OUString aName
Mode eMode
sal_uIntPtr sal_uLong
sal_Int16 SCTAB
Definition: types.hxx:22
sal_Int16 SCCOL
Definition: types.hxx:21
sal_Int32 SCROW
Definition: types.hxx:17