LibreOffice Module sc (master)  1
docfunc.hxx
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 #pragma once
21 
22 #include <tools/solar.h>
23 #include <global.hxx>
24 #include <formula/grammar.hxx>
25 #include <tabbgcolor.hxx>
26 #include <unotools/resmgr.hxx>
27 
28 #include <memory>
29 #include <vector>
30 #include <map>
31 
33 class SdrUndoAction;
34 class ScAddress;
35 class ScDocShell;
36 class ScMarkData;
37 class ScPatternAttr;
38 class ScRange;
39 class ScRangeList;
40 class ScFormulaCell;
41 class ScTokenArray;
42 struct ScTabOpParam;
43 class ScTableProtection;
44 class ScDocProtection;
45 struct ScCellMergeOption;
48 class ScUndoRemoveMerge;
49 class ScRangeName;
50 class ScPostIt;
51 
52 enum class TransliterationFlags;
53 enum class CreateNameFlags;
54 namespace sc
55 {
56  struct ColRowSpan;
57  class SparklineAttributes;
58  class SparklineGroup;
59  class Sparkline;
60 }
61 
62 class ScDocFunc
63 {
64 protected:
66 
67  bool AdjustRowHeight( const ScRange& rRange, bool bPaint, bool bApi );
68  void CreateOneName( ScRangeName& rList,
69  SCCOL nPosX, SCROW nPosY, SCTAB nTab,
70  SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
71  bool& rCancel, bool bApi );
72  void NotifyInputHandler( const ScAddress& rPos );
73 
74  ScDocFunc( ScDocShell& rDocSh ): rDocShell(rDocSh) {}
75 public:
76  virtual ~ScDocFunc() {}
77 
78  void NotifyDrawUndo(std::unique_ptr<SdrUndoAction>);
79 
80  // for grouping multiple operations into one with a new name
81  void EnterListAction(TranslateId pNameResId);
82  void EndListAction();
83 
84  bool DetectiveAddPred(const ScAddress& rPos);
85  bool DetectiveDelPred(const ScAddress& rPos);
86  bool DetectiveAddSucc(const ScAddress& rPos);
87  bool DetectiveDelSucc(const ScAddress& rPos);
88  bool DetectiveAddError(const ScAddress& rPos);
89  bool DetectiveMarkInvalid(SCTAB nTab);
90  bool DetectiveDelAll(SCTAB nTab);
91  bool DetectiveRefresh(bool bAutomatic = false);
92  void DetectiveCollectAllPreds(const ScRangeList& rSrcRanges, ::std::vector<ScTokenRef>& rRefTokens);
93  void DetectiveCollectAllSuccs(const ScRangeList& rSrcRanges, ::std::vector<ScTokenRef>& rRefTokens);
94 
96  const ScMarkData& rMark, InsertDeleteFlags nFlags, bool bRecord, bool bApi );
97 
98  bool DeleteCell(
99  const ScAddress& rPos, const ScMarkData& rMark, InsertDeleteFlags nFlags, bool bRecord, bool bApi );
100 
102  bool bApi );
103 
104  bool SetNormalString( bool& o_rbNumFmtSet, const ScAddress& rPos, const OUString& rText, bool bApi );
105  bool SetValueCell( const ScAddress& rPos, double fVal, bool bInteraction );
106  void SetValueCells( const ScAddress& rPos, const std::vector<double>& aVals, bool bInteraction );
107  bool SetStringCell( const ScAddress& rPos, const OUString& rStr, bool bInteraction );
108  bool SetEditCell( const ScAddress& rPos, const EditTextObject& rStr, bool bInteraction );
109 
110  bool SetStringOrEditCell( const ScAddress& rPos, const OUString& rStr, bool bInteraction );
111 
116  bool SetFormulaCell( const ScAddress& rPos, ScFormulaCell* pCell, bool bInteraction );
117  bool SetFormulaCells( const ScAddress& rPos, std::vector<ScFormulaCell*>& rCells, bool bInteraction );
118  void PutData( const ScAddress& rPos, ScEditEngineDefaulter& rEngine, bool bApi );
119  bool SetCellText(
120  const ScAddress& rPos, const OUString& rText, bool bInterpret, bool bEnglish, bool bApi,
121  const formula::FormulaGrammar::Grammar eGrammar );
122 
123  SC_DLLPUBLIC bool ShowNote( const ScAddress& rPos, bool bShow );
124 
125  void SetNoteText( const ScAddress& rPos, const OUString& rNoteText, bool bApi );
126  void ReplaceNote( const ScAddress& rPos, const OUString& rNoteText, const OUString* pAuthor, const OUString* pDate, bool bApi );
127  SC_DLLPUBLIC ScPostIt* ImportNote( const ScAddress& rPos, const OUString& rNoteText );
128 
129  bool ApplyAttributes( const ScMarkData& rMark, const ScPatternAttr& rPattern,
130  bool bApi );
131  bool ApplyStyle( const ScMarkData& rMark, const OUString& rStyleName,
132  bool bApi );
133 
134  bool InsertCells( const ScRange& rRange,const ScMarkData* pTabMark,
135  InsCellCmd eCmd, bool bRecord, bool bApi, bool bPartOfPaste = false );
136 
137  bool DeleteCells( const ScRange& rRange, const ScMarkData* pTabMark,
138  DelCellCmd eCmd, bool bApi );
139 
140  bool MoveBlock( const ScRange& rSource, const ScAddress& rDestPos,
141  bool bCut, bool bRecord, bool bPaint, bool bApi );
142 
143  SC_DLLPUBLIC bool InsertTable( SCTAB nTab, const OUString& rName, bool bRecord, bool bApi );
144  bool RenameTable( SCTAB nTab, const OUString& rName, bool bRecord, bool bApi );
145  bool DeleteTable( SCTAB nTab, bool bRecord );
146 
147  bool SetTabBgColor( SCTAB nTab, const Color& rColor, bool bRecord, bool bApi );
148  bool SetTabBgColor( ScUndoTabColorInfo::List& rUndoTabColorList, bool bApi );
149 
150  void SetTableVisible( SCTAB nTab, bool bVisible, bool bApi );
151 
152  bool SetLayoutRTL( SCTAB nTab, bool bRTL );
153 
155  bool bWidth, const std::vector<sc::ColRowSpan>& rRanges, SCTAB nTab,
156  ScSizeMode eMode, sal_uInt16 nSizeTwips, bool bRecord, bool bApi );
157 
158  bool InsertPageBreak( bool bColumn, const ScAddress& rPos,
159  bool bRecord, bool bSetModified );
160  bool RemovePageBreak( bool bColumn, const ScAddress& rPos,
161  bool bRecord, bool bSetModified );
162 
163  void ProtectSheet( SCTAB nTab, const ScTableProtection& rProtect );
164 
165  bool Protect( SCTAB nTab, const OUString& rPassword );
166  bool Unprotect( SCTAB nTab, const OUString& rPassword, bool bApi );
167 
168  void ClearItems( const ScMarkData& rMark, const sal_uInt16* pWhich, bool bApi );
169  bool ChangeIndent( const ScMarkData& rMark, bool bIncrement, bool bApi );
170  bool AutoFormat( const ScRange& rRange, const ScMarkData* pTabMark,
171  sal_uInt16 nFormatNo, bool bApi );
172 
173  SC_DLLPUBLIC bool
174  EnterMatrix( const ScRange& rRange, const ScMarkData* pTabMark,
175  const ScTokenArray* pTokenArray,
176  const OUString& rString, bool bApi, bool bEnglish,
177  const OUString& rFormulaNmsp,
179 
180  bool TabOp( const ScRange& rRange, const ScMarkData* pTabMark,
181  const ScTabOpParam& rParam, bool bRecord, bool bApi );
182 
183  bool FillSimple( const ScRange& rRange, const ScMarkData* pTabMark,
184  FillDir eDir, bool bApi );
185  bool FillSeries( const ScRange& rRange, const ScMarkData* pTabMark,
186  FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd,
187  double fStart, double fStep, double fMax,
188  bool bApi );
189 
190  // FillAuto: rRange is change from Source-Range to Dest-Range
191  SC_DLLPUBLIC bool
192  FillAuto( ScRange& rRange, const ScMarkData* pTabMark, FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, sal_uLong nCount, double fStep, double fMax, bool bRecord, bool bApi );
193 
194  bool FillAuto( ScRange& rRange, const ScMarkData* pTabMark,
195  FillDir eDir, sal_uLong nCount, bool bApi );
196 
197  void ResizeMatrix( const ScRange& rOldRange, const ScAddress& rNewEnd );
198 
199  SC_DLLPUBLIC bool
200  MergeCells( const ScCellMergeOption& rOption, bool bContents,
201  bool bRecord, bool bApi, bool bEmptyMergedCells = false );
202  bool UnmergeCells( const ScRange& rRange, bool bRecord, ScUndoRemoveMerge* pUndoRemoveMerge );
203  SC_DLLPUBLIC bool
204  UnmergeCells( const ScCellMergeOption& rOption, bool bRecord, ScUndoRemoveMerge* pUndoRemoveMerge );
205 
206  // takes ownership of pNewRanges, nTab = -1 for local range names
207  void SetNewRangeNames( std::unique_ptr<ScRangeName> pNewRanges, bool bModifyDoc, SCTAB nTab );
208  void ModifyRangeNames( const ScRangeName& rNewRanges, SCTAB nTab = -1 );
215  void ModifyAllRangeNames(const std::map<OUString, std::unique_ptr<ScRangeName>>& rRangeMap);
216 
217  bool CreateNames( const ScRange& rRange, CreateNameFlags nFlags, bool bApi, SCTAB nTab = -1 ); // -1 for global range names
218  bool InsertNameList( const ScAddress& rStartPos, bool bApi );
219 
220  void InsertAreaLink( const OUString& rFile, const OUString& rFilter,
221  const OUString& rOptions, const OUString& rSource,
222  const ScRange& rDestRange, sal_Int32 nRefreshDelaySeconds,
223  bool bFitBlock, bool bApi );
224 
229  void ReplaceConditionalFormat( sal_uLong nOldIndex, std::unique_ptr<ScConditionalFormat> pFormat, SCTAB nTab, const ScRangeList& rRanges );
230 
238 
239  void ConvertFormulaToValue( const ScRange& rRange, bool bInteraction );
240 
241  SC_DLLPUBLIC bool InsertSparklines(ScRange const& rDataRange, ScRange const& rSparklineRange,
242  std::shared_ptr<sc::SparklineGroup> pSparklineGroup);
243 
244  SC_DLLPUBLIC bool DeleteSparkline(ScAddress const& rAddress);
245  SC_DLLPUBLIC bool DeleteSparklineGroup(std::shared_ptr<sc::SparklineGroup> const& pSparklineGroup, SCTAB nTab);
246  SC_DLLPUBLIC bool ChangeSparklineGroupAttributes(std::shared_ptr<sc::SparklineGroup> const& pExistingSparklineGroup,
247  sc::SparklineAttributes const& rNewAttributes);
248  SC_DLLPUBLIC bool GroupSparklines(ScRange const& rRange, std::shared_ptr<sc::SparklineGroup> const& rpGroup);
249  SC_DLLPUBLIC bool UngroupSparklines(ScRange const& rRange);
250  SC_DLLPUBLIC bool ChangeSparkline(std::shared_ptr<sc::Sparkline> const& rpSparkline, SCTAB nTab, ScRangeList const& rDataRange);
251 
252 private:
253  void ProtectDocument(const ScDocProtection& rProtect);
254 };
255 
256 class ScDocFuncDirect final : public ScDocFunc
257 {
258 public:
259  ScDocFuncDirect( ScDocShell& rDocSh ) : ScDocFunc( rDocSh ) {}
260 };
261 
262 void VBA_DeleteModule( ScDocShell& rDocSh, const OUString& sModuleName );
263 
264 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void ClearItems(const ScMarkData &rMark, const sal_uInt16 *pWhich, bool bApi)
Definition: docfunc.cxx:4091
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
Definition: markdata.hxx:42
bool Unprotect(SCTAB nTab, const OUString &rPassword, bool bApi)
Definition: docfunc.cxx:4033
bool CreateNames(const ScRange &rRange, CreateNameFlags nFlags, bool bApi, SCTAB nTab=-1)
Definition: docfunc.cxx:5273
SC_DLLPUBLIC bool DeleteContents(const ScMarkData &rMark, InsertDeleteFlags nFlags, bool bRecord, bool bApi)
Definition: docfunc.cxx:583
FillDir
Definition: global.hxx:306
SC_DLLPUBLIC bool FillAuto(ScRange &rRange, const ScMarkData *pTabMark, FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, sal_uLong nCount, double fStep, double fMax, bool bRecord, bool bApi)
Definition: docfunc.cxx:4796
void NotifyDrawUndo(std::unique_ptr< SdrUndoAction >)
Definition: docfunc.cxx:120
bool SetStringCell(const ScAddress &rPos, const OUString &rStr, bool bInteraction)
Definition: docfunc.cxx:936
sheet protection state container
SC_DLLPUBLIC bool MergeCells(const ScCellMergeOption &rOption, bool bContents, bool bRecord, bool bApi, bool bEmptyMergedCells=false)
Definition: docfunc.cxx:4932
SC_DLLPUBLIC bool DeleteSparkline(ScAddress const &rAddress)
Definition: docfunc.cxx:5852
bool SetStringOrEditCell(const ScAddress &rPos, const OUString &rStr, bool bInteraction)
Definition: docfunc.cxx:1008
void SetNewRangeNames(std::unique_ptr< ScRangeName > pNewRanges, bool bModifyDoc, SCTAB nTab)
Definition: docfunc.cxx:5141
sal_uIntPtr sal_uLong
virtual ~ScDocFunc()
Definition: docfunc.hxx:76
void VBA_DeleteModule(ScDocShell &rDocSh, const OUString &sModuleName)
Definition: docfunc.cxx:3240
bool DeleteTable(SCTAB nTab, bool bRecord)
Definition: docfunc.cxx:3321
bool FillSimple(const ScRange &rRange, const ScMarkData *pTabMark, FillDir eDir, bool bApi)
Definition: docfunc.cxx:4544
SC_DLLPUBLIC bool ShowNote(const ScAddress &rPos, bool bShow)
Definition: docfunc.cxx:1288
void ProtectSheet(SCTAB nTab, const ScTableProtection &rProtect)
Definition: docfunc.cxx:3948
SC_DLLPUBLIC ScPostIt * ImportNote(const ScAddress &rPos, const OUString &rNoteText)
Definition: docfunc.cxx:1408
CreateNameFlags
Definition: scui_def.hxx:50
bool InsertCells(const ScRange &rRange, const ScMarkData *pTabMark, InsCellCmd eCmd, bool bRecord, bool bApi, bool bPartOfPaste=false)
Definition: docfunc.cxx:1736
bool SetTabBgColor(SCTAB nTab, const Color &rColor, bool bRecord, bool bApi)
Definition: docfunc.cxx:3533
void EnterListAction(TranslateId pNameResId)
Definition: docfunc.cxx:5759
DelCellCmd
Definition: global.hxx:278
void SetValueCells(const ScAddress &rPos, const std::vector< double > &aVals, bool bInteraction)
Definition: docfunc.cxx:902
void NotifyInputHandler(const ScAddress &rPos)
Definition: docfunc.cxx:1128
void CreateOneName(ScRangeName &rList, SCCOL nPosX, SCROW nPosY, SCTAB nTab, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, bool &rCancel, bool bApi)
Definition: docfunc.cxx:5208
void ProtectDocument(const ScDocProtection &rProtect)
Definition: docfunc.cxx:3980
void DetectiveCollectAllSuccs(const ScRangeList &rSrcRanges,::std::vector< ScTokenRef > &rRefTokens)
Definition: docfunc.cxx:578
void DetectiveCollectAllPreds(const ScRangeList &rSrcRanges,::std::vector< ScTokenRef > &rRefTokens)
Definition: docfunc.cxx:573
Additional class containing cell annotation data.
Definition: postit.hxx:160
bool ChangeIndent(const ScMarkData &rMark, bool bIncrement, bool bApi)
Definition: docfunc.cxx:4135
FillDateCmd
Definition: global.hxx:331
void ConvertFormulaToValue(const ScRange &rRange, bool bInteraction)
Definition: docfunc.cxx:5726
void ReplaceNote(const ScAddress &rPos, const OUString &rNoteText, const OUString *pAuthor, const OUString *pDate, bool bApi)
Definition: docfunc.cxx:1342
bool DetectiveRefresh(bool bAutomatic=false)
Definition: docfunc.cxx:476
bool DeleteCells(const ScRange &rRange, const ScMarkData *pTabMark, DelCellCmd eCmd, bool bApi)
Definition: docfunc.cxx:2271
void EndListAction()
Definition: docfunc.cxx:5768
bool SetEditCell(const ScAddress &rPos, const EditTextObject &rStr, bool bInteraction)
Definition: docfunc.cxx:973
bool SetNormalString(bool &o_rbNumFmtSet, const ScAddress &rPos, const OUString &rText, bool bApi)
Definition: docfunc.cxx:799
TransliterationFlags
bool Protect(SCTAB nTab, const OUString &rPassword)
Definition: docfunc.cxx:4009
bool AutoFormat(const ScRange &rRange, const ScMarkData *pTabMark, sal_uInt16 nFormatNo, bool bApi)
Definition: docfunc.cxx:4204
bool ApplyAttributes(const ScMarkData &rMark, const ScPatternAttr &rPattern, bool bApi)
Definition: docfunc.cxx:1426
Common properties for a group of sparklines.
bool SetValueCell(const ScAddress &rPos, double fVal, bool bInteraction)
Definition: docfunc.cxx:867
Parameter for data table aka multiple operations.
Definition: paramisc.hxx:45
FillCmd
Definition: global.hxx:314
bool ApplyStyle(const ScMarkData &rMark, const OUString &rStyleName, bool bApi)
Definition: docfunc.cxx:1495
sal_Int16 SCCOL
Definition: types.hxx:21
InsertDeleteFlags
Definition: global.hxx:147
CAUTION! The following defines must be in the same namespace as the respective type.
SC_DLLPUBLIC bool InsertTable(SCTAB nTab, const OUString &rName, bool bRecord, bool bApi)
Definition: docfunc.cxx:3269
void PutData(const ScAddress &rPos, ScEditEngineDefaulter &rEngine, bool bApi)
Definition: docfunc.cxx:1160
void ModifyAllRangeNames(const std::map< OUString, std::unique_ptr< ScRangeName >> &rRangeMap)
Modify all range names, global scope names as well as sheet local ones, in one go.
Definition: docfunc.cxx:5187
bool DetectiveAddPred(const ScAddress &rPos)
Definition: docfunc.cxx:209
bool DetectiveAddError(const ScAddress &rPos)
Definition: docfunc.cxx:360
bool InsertPageBreak(bool bColumn, const ScAddress &rPos, bool bRecord, bool bSetModified)
Definition: docfunc.cxx:3822
ScDocShell & rDocShell
Definition: docfunc.hxx:65
void ReplaceConditionalFormat(sal_uLong nOldIndex, std::unique_ptr< ScConditionalFormat > pFormat, SCTAB nTab, const ScRangeList &rRanges)
Definition: docfunc.cxx:5602
bool TabOp(const ScRange &rRange, const ScMarkData *pTabMark, const ScTabOpParam &rParam, bool bRecord, bool bApi)
Definition: docfunc.cxx:4404
ScSizeMode
Definition: global.hxx:348
void ResizeMatrix(const ScRange &rOldRange, const ScAddress &rNewEnd)
Definition: docfunc.cxx:5471
SC_DLLPUBLIC bool InsertSparklines(ScRange const &rDataRange, ScRange const &rSparklineRange, std::shared_ptr< sc::SparklineGroup > pSparklineGroup)
Definition: docfunc.cxx:5773
bool RenameTable(SCTAB nTab, const OUString &rName, bool bRecord, bool bApi)
Definition: docfunc.cxx:3499
void SetTableVisible(SCTAB nTab, bool bVisible, bool bApi)
Definition: docfunc.cxx:3418
bool RemovePageBreak(bool bColumn, const ScAddress &rPos, bool bRecord, bool bSetModified)
Definition: docfunc.cxx:3885
bool DeleteCell(const ScAddress &rPos, const ScMarkData &rMark, InsertDeleteFlags nFlags, bool bRecord, bool bApi)
Definition: docfunc.cxx:674
bool UnmergeCells(const ScRange &rRange, bool bRecord, ScUndoRemoveMerge *pUndoRemoveMerge)
Definition: docfunc.cxx:5049
bool InsertNameList(const ScAddress &rStartPos, bool bApi)
Definition: docfunc.cxx:5362
SC_DLLPUBLIC bool SetWidthOrHeight(bool bWidth, const std::vector< sc::ColRowSpan > &rRanges, SCTAB nTab, ScSizeMode eMode, sal_uInt16 nSizeTwips, bool bRecord, bool bApi)
Definition: docfunc.cxx:3651
sal_Int32 SCROW
Definition: types.hxx:17
bool FillSeries(const ScRange &rRange, const ScMarkData *pTabMark, FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, double fStart, double fStep, double fMax, bool bApi)
Definition: docfunc.cxx:4658
bool SetFormulaCell(const ScAddress &rPos, ScFormulaCell *pCell, bool bInteraction)
Below two methods take ownership of the formula cell instance(s).
Definition: docfunc.cxx:1023
void SetNoteText(const ScAddress &rPos, const OUString &rNoteText, bool bApi)
Definition: docfunc.cxx:1316
bool SetLayoutRTL(SCTAB nTab, bool bRTL)
Definition: docfunc.cxx:3468
void InsertAreaLink(const OUString &rFile, const OUString &rFilter, const OUString &rOptions, const OUString &rSource, const ScRange &rDestRange, sal_Int32 nRefreshDelaySeconds, bool bFitBlock, bool bApi)
Definition: docfunc.cxx:5513
bool DetectiveDelSucc(const ScAddress &rPos)
Definition: docfunc.cxx:321
bool SetFormulaCells(const ScAddress &rPos, std::vector< ScFormulaCell * > &rCells, bool bInteraction)
Definition: docfunc.cxx:1072
InsCellCmd
Definition: global.hxx:287
SC_DLLPUBLIC bool EnterMatrix(const ScRange &rRange, const ScMarkData *pTabMark, const ScTokenArray *pTokenArray, const OUString &rString, bool bApi, bool bEnglish, const OUString &rFormulaNmsp, const formula::FormulaGrammar::Grammar)
Definition: docfunc.cxx:4316
SC_DLLPUBLIC bool UngroupSparklines(ScRange const &rRange)
Definition: docfunc.cxx:5903
bool TransliterateText(const ScMarkData &rMark, TransliterationFlags nType, bool bApi)
Definition: docfunc.cxx:741
QPRO_FUNC_TYPE nType
Definition: qproform.cxx:398
SC_DLLPUBLIC bool GroupSparklines(ScRange const &rRange, std::shared_ptr< sc::SparklineGroup > const &rpGroup)
Definition: docfunc.cxx:5894
bool SetCellText(const ScAddress &rPos, const OUString &rText, bool bInterpret, bool bEnglish, bool bApi, const formula::FormulaGrammar::Grammar eGrammar)
Definition: docfunc.cxx:1240
bool AdjustRowHeight(const ScRange &rRange, bool bPaint, bool bApi)
Definition: docfunc.cxx:151
void SetConditionalFormatList(ScConditionalFormatList *pList, SCTAB nTab)
Sets or replaces the conditional format list of a table.
Definition: docfunc.cxx:5678
SC_DLLPUBLIC bool ChangeSparklineGroupAttributes(std::shared_ptr< sc::SparklineGroup > const &pExistingSparklineGroup, sc::SparklineAttributes const &rNewAttributes)
Definition: docfunc.cxx:5884
SC_DLLPUBLIC bool DeleteSparklineGroup(std::shared_ptr< sc::SparklineGroup > const &pSparklineGroup, SCTAB nTab)
Definition: docfunc.cxx:5867
bool DetectiveAddSucc(const ScAddress &rPos)
Definition: docfunc.cxx:284
SC_DLLPUBLIC bool ChangeSparkline(std::shared_ptr< sc::Sparkline > const &rpSparkline, SCTAB nTab, ScRangeList const &rDataRange)
Definition: docfunc.cxx:5912
bool DetectiveDelAll(SCTAB nTab)
Definition: docfunc.cxx:436
bool MoveBlock(const ScRange &rSource, const ScAddress &rDestPos, bool bCut, bool bRecord, bool bPaint, bool bApi)
Definition: docfunc.cxx:2852
ScDocFunc(ScDocShell &rDocSh)
Definition: docfunc.hxx:74
bool DetectiveDelPred(const ScAddress &rPos)
Definition: docfunc.cxx:245
bool DetectiveMarkInvalid(SCTAB nTab)
Definition: docfunc.cxx:397
ScDocFuncDirect(ScDocShell &rDocSh)
Definition: docfunc.hxx:259
#define SC_DLLPUBLIC
Definition: scdllapi.h:27
void ModifyRangeNames(const ScRangeName &rNewRanges, SCTAB nTab=-1)
Definition: docfunc.cxx:5136
::std::vector< ScUndoTabColorInfo > List
Definition: tabbgcolor.hxx:36
sal_Int16 SCTAB
Definition: types.hxx:22