Resolves: tdf#162093 TableRef item specifier may occur standalone
[LibreOffice.git] / sc / source / core / tool / hints.cxx
bloba3be243750a4200a8e82c13f771b8d600a5afe26
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include <hints.hxx>
21 #include <utility>
23 // ScPaintHint - info what has to be repainted
25 ScPaintHint::ScPaintHint( const ScRange& rRng, PaintPartFlags nPaint, tools::Long nMaxWidthAffectedHint ) :
26 aRange( rRng ),
27 nParts( nPaint ),
28 nWidthAffectedHint(nMaxWidthAffectedHint)
32 ScPaintHint::~ScPaintHint()
36 // ScUpdateRefHint - update references
38 ScUpdateRefHint::ScUpdateRefHint( UpdateRefMode eMode, const ScRange& rR,
39 SCCOL nX, SCROW nY, SCTAB nZ ) :
40 eUpdateRefMode( eMode ),
41 aRange( rR ),
42 nDx( nX ),
43 nDy( nY ),
44 nDz( nZ )
48 ScUpdateRefHint::~ScUpdateRefHint()
52 // ScLinkRefreshedHint - a link has been refreshed
54 ScLinkRefreshedHint::ScLinkRefreshedHint() :
55 nLinkType( ScLinkRefType::NONE )
59 ScLinkRefreshedHint::~ScLinkRefreshedHint()
63 void ScLinkRefreshedHint::SetSheetLink( const OUString& rSourceUrl )
65 nLinkType = ScLinkRefType::SHEET;
66 aUrl = rSourceUrl;
69 void ScLinkRefreshedHint::SetDdeLink(
70 const OUString& rA, const OUString& rT, const OUString& rI )
72 nLinkType = ScLinkRefType::DDE;
73 aDdeAppl = rA;
74 aDdeTopic = rT;
75 aDdeItem = rI;
78 void ScLinkRefreshedHint::SetAreaLink( const ScAddress& rPos )
80 nLinkType = ScLinkRefType::AREA;
81 aDestPos = rPos;
84 // ScAutoStyleHint - STYLE() function has been called
86 ScAutoStyleHint::ScAutoStyleHint( const ScRange& rR, OUString aSt1,
87 sal_uLong nT, OUString aSt2 ) :
88 aRange( rR ),
89 aStyle1(std::move( aSt1 )),
90 aStyle2(std::move( aSt2 )),
91 nTimeout( nT )
95 ScAutoStyleHint::~ScAutoStyleHint()
99 ScDBRangeRefreshedHint::ScDBRangeRefreshedHint( const ScImportParam& rP )
100 : aParam(rP)
103 ScDBRangeRefreshedHint::~ScDBRangeRefreshedHint()
107 ScDataPilotModifiedHint::ScDataPilotModifiedHint( OUString aName )
108 : maName(std::move(aName))
111 ScDataPilotModifiedHint::~ScDataPilotModifiedHint()
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */