Linux x86 build fix
[LibreOffice.git] / sc / inc / hints.hxx
blob15a0c4dcf9bfac135a0e1ccdc0190f83bc75758b
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 #ifndef INCLUDED_SC_INC_HINTS_HXX
21 #define INCLUDED_SC_INC_HINTS_HXX
23 #include "global.hxx"
24 #include "address.hxx"
25 #include <svl/hint.hxx>
27 class ScPaintHint : public SfxHint
29 ScRange aRange;
30 sal_uInt16 nParts;
31 bool bPrint; // flag indicating whether print/preview if affected
33 ScPaintHint(); // disabled
35 public:
36 ScPaintHint( const ScRange& rRng, sal_uInt16 nPaint = PAINT_ALL );
37 virtual ~ScPaintHint();
39 void SetPrintFlag(bool bSet) { bPrint = bSet; }
41 const ScRange& GetRange() const { return aRange; }
42 SCCOL GetStartCol() const { return aRange.aStart.Col(); }
43 SCROW GetStartRow() const { return aRange.aStart.Row(); }
44 SCTAB GetStartTab() const { return aRange.aStart.Tab(); }
45 SCCOL GetEndCol() const { return aRange.aEnd.Col(); }
46 SCROW GetEndRow() const { return aRange.aEnd.Row(); }
47 SCTAB GetEndTab() const { return aRange.aEnd.Tab(); }
48 sal_uInt16 GetParts() const { return nParts; }
49 bool GetPrintFlag() const { return bPrint; }
52 class ScUpdateRefHint : public SfxHint
54 UpdateRefMode eUpdateRefMode;
55 ScRange aRange;
56 SCsCOL nDx;
57 SCsROW nDy;
58 SCsTAB nDz;
60 public:
61 ScUpdateRefHint( UpdateRefMode eMode, const ScRange& rR,
62 SCsCOL nX, SCsROW nY, SCsTAB nZ );
63 virtual ~ScUpdateRefHint();
65 UpdateRefMode GetMode() const { return eUpdateRefMode; }
66 const ScRange& GetRange() const { return aRange; }
67 SCsCOL GetDx() const { return nDx; }
68 SCsROW GetDy() const { return nDy; }
69 SCsTAB GetDz() const { return nDz; }
72 #define SC_POINTERCHANGED_NUMFMT 1
74 class ScPointerChangedHint : public SfxHint
76 sal_uInt16 nFlags;
78 public:
80 virtual ~ScPointerChangedHint();
82 sal_uInt16 GetFlags() const { return nFlags; }
85 //! move ScLinkRefreshedHint to a different file?
87 #define SC_LINKREFTYPE_NONE 0
88 #define SC_LINKREFTYPE_SHEET 1
89 #define SC_LINKREFTYPE_AREA 2
90 #define SC_LINKREFTYPE_DDE 3
92 class ScLinkRefreshedHint : public SfxHint
94 sal_uInt16 nLinkType; // SC_LINKREFTYPE_...
95 OUString aUrl; // used for sheet links
96 OUString aDdeAppl; // used for dde links:
97 OUString aDdeTopic;
98 OUString aDdeItem;
99 sal_uInt8 nDdeMode;
100 ScAddress aDestPos; // used to identify area links
101 //! also use source data for area links?
103 public:
104 ScLinkRefreshedHint();
105 virtual ~ScLinkRefreshedHint();
107 void SetSheetLink( const OUString& rSourceUrl );
108 void SetDdeLink( const OUString& rA, const OUString& rT, const OUString& rI, sal_uInt8 nM );
109 void SetAreaLink( const ScAddress& rPos );
111 sal_uInt16 GetLinkType() const { return nLinkType; }
112 const OUString& GetUrl() const { return aUrl; }
113 const OUString& GetDdeAppl() const { return aDdeAppl; }
114 const OUString& GetDdeTopic() const { return aDdeTopic; }
115 const OUString& GetDdeItem() const { return aDdeItem; }
116 sal_uInt8 GetDdeMode() const { return nDdeMode; }
117 const ScAddress& GetDestPos() const { return aDestPos; }
120 //! move ScAutoStyleHint to a different file?
122 class ScAutoStyleHint : public SfxHint
124 ScRange aRange;
125 OUString aStyle1;
126 OUString aStyle2;
127 sal_uLong nTimeout;
129 public:
130 ScAutoStyleHint( const ScRange& rR, const OUString& rSt1,
131 sal_uLong nT, const OUString& rSt2 );
132 virtual ~ScAutoStyleHint();
134 const ScRange& GetRange() const { return aRange; }
135 const OUString& GetStyle1() const { return aStyle1; }
136 sal_uInt32 GetTimeout() const { return nTimeout; }
137 const OUString& GetStyle2() const { return aStyle2; }
140 class ScDBRangeRefreshedHint : public SfxHint
142 ScImportParam aParam;
144 public:
145 ScDBRangeRefreshedHint( const ScImportParam& rP );
146 virtual ~ScDBRangeRefreshedHint();
148 const ScImportParam& GetImportParam() const { return aParam; }
151 class ScDataPilotModifiedHint : public SfxHint
153 OUString maName;
155 public:
156 ScDataPilotModifiedHint( const OUString& rName );
157 virtual ~ScDataPilotModifiedHint();
159 const OUString& GetName() const { return maName; }
162 #endif
164 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */