20#include <osl/diagnose.h>
21#include <document.hxx>
58 maLevels(0, nNewSize, 0),
59 mpOutlineArray(nullptr),
89 ::std::vector<SCSIZE> aOutlineStack;
96 OSL_ENSURE(aOutlineStack.empty(),
"XclImpOutlineBuffer::MakeScOutline: outline stack not empty but expected to be.");
100 if (nLevel > nCurLevel)
103 aOutlineStack.push_back(
nPos);
107 OSL_ENSURE(nLevel <= nCurLevel,
"XclImpOutlineBuffer::MakeScOutline: unexpected level!");
110 if (aOutlineStack.empty())
115 SCSIZE nFirstPos = aOutlineStack.back();
116 aOutlineStack.pop_back();
117 bool bCollapsed =
false;
120 else if (nFirstPos > 0)
136 maLevels.insert_back(nF, nL+1, nVal);
148 : nCol( nC ), nRow( nR )
153 : nTab( rR.pIR->GetCurrScTab() )
178 sal_uInt16
n = nCref;
198 OUString aSzenName(
aName );
199 sal_uInt16 nNewTab =
nTab + 1;
213 sal_uInt16 nCol = rEntry.nCol;
214 sal_uInt16 nRow = rEntry.nRow;
215 OUString aVal = rEntry.GetValue();
219 r.
SetString( nCol, nRow, nNewTab, aVal );
235 sal_uInt16
n =
static_cast<sal_uInt16
>(
aEntries.size());
237 std::vector< std::unique_ptr<ExcScenario> >::reverse_iterator iter;
size_t SCSIZE
size_t typedef to be able to find places where code was changed from USHORT to size_t and is used to ...
@ Scenario
field button for datapilot
ExcScenarioCell(const sal_uInt16 nC, const sal_uInt16 nR)
ExcScenario(XclImpStream &rIn, const RootData &rRoot)
std::vector< ExcScenarioCell > aEntries
void Apply(const XclImpRoot &rRoot, const bool bLast)
SC_DLLPUBLIC bool InsertTab(SCTAB nPos, const OUString &rName, bool bExternalDocument=false, bool bUndoDeleteTab=false)
SC_DLLPUBLIC void SetScenarioData(SCTAB nTab, const OUString &rComment, const Color &rColor, ScScenarioFlags nFlags)
SC_DLLPUBLIC bool ApplyFlagsTab(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, ScMF nFlags)
SC_DLLPUBLIC bool SetString(SCCOL nCol, SCROW nRow, SCTAB nTab, const OUString &rString, const ScSetStringParam *pParam=nullptr)
SC_DLLPUBLIC void SetActiveScenario(SCTAB nTab, bool bActive)
SC_DLLPUBLIC void SetScenario(SCTAB nTab, bool bFlag)
const ScExtDocSettings & GetDocSettings() const
bool Insert(SCCOLROW nStartPos, SCCOLROW nEndPos, bool &rSizeChanged, bool bHidden=false)
void SetButtonMode(bool bRightOrUnder)
void SetLevelRange(SCSIZE nF, SCSIZE nL, sal_uInt8 nVal, bool bCollapsed)
ScOutlineArray * mpOutlineArray
void SetOutlineArray(ScOutlineArray *pOArray)
::std::set< SCSIZE > maCollapsedPosSet
void SetLevel(SCSIZE nIndex, sal_uInt8 nVal, bool bCollapsed)
XclImpOutlineBuffer(SCSIZE nNewSize)
Access to global data from other classes.
XclImpTabInfo & GetTabInfo() const
Returns the buffer that contains the sheet creation order.
This class is used to import record oriented streams.
OUString ReadUniString(sal_uInt16 nChars, sal_uInt8 nFlags)
Reads ext.
void Ignore(std::size_t nBytes)
Seeks forward inside the current record.
void InsertScTab(SCTAB nScTab)
Inserts a Calc sheet index (increases all following sheet indexes).
ScExtDocOptions & GetExtDocOptions() const
Returns the extended document options.
ScDocument & GetDoc() const
Returns reference to the destination document (import) or source document (export).
constexpr ::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
std::vector< std::unique_ptr< ExcScenario > > aEntries
void Apply(const XclImpRoot &rRoot)
std::unique_ptr< ExtNameBuff > pExtNameBuff
std::unique_ptr< XclImpAutoFilterBuffer > pAutoFilterBuffer
XclExpUserBViewList * pUserBViewList
XclImpColRowSettings * pColRowBuff
ExcelToSc * pFmlaConverter
std::unique_ptr< SharedFormulaBuffer > pShrfmlaBuff
std::unique_ptr< ExtSheetBuffer > pExtSheetBuff
Extended settings for the document, used in import/export filters.
SCTAB mnDisplTab
Index of displayed sheet.