20 #include <osl/diagnose.h>
21 #include <document.hxx>
63 maLevels(0, nNewSize, 0),
64 mpOutlineArray(nullptr),
77 maLevels.insert_back(nIndex, nIndex+1, nVal);
94 ::std::vector<SCSIZE> aOutlineStack;
101 OSL_ENSURE(aOutlineStack.empty(),
"XclImpOutlineBuffer::MakeScOutline: outline stack not empty but expected to be.");
105 if (nLevel > nCurLevel)
108 aOutlineStack.push_back(
nPos);
112 OSL_ENSURE(nLevel <= nCurLevel,
"XclImpOutlineBuffer::MakeScOutline: unexpected level!");
115 if (aOutlineStack.empty())
120 SCSIZE nFirstPos = aOutlineStack.back();
121 aOutlineStack.pop_back();
122 bool bCollapsed =
false;
125 else if (nFirstPos > 0)
141 maLevels.insert_back(nF, nL+1, nVal);
153 : nCol( nC ), nRow( nR )
158 : nTab( rR.pIR->GetCurrScTab() )
183 sal_uInt16
n = nCref;
203 OUString aSzenName(
aName );
204 sal_uInt16 nNewTab =
nTab + 1;
218 sal_uInt16 nCol = rEntry.nCol;
219 sal_uInt16 nRow = rEntry.nRow;
220 OUString aVal = rEntry.GetValue();
224 r.
SetString( nCol, nRow, nNewTab, aVal );
240 sal_uInt16
n =
static_cast<sal_uInt16
>(
aEntries.size());
242 std::vector< std::unique_ptr<ExcScenario> >::reverse_iterator iter;
void SetOutlineArray(ScOutlineArray *pOArray)
SC_DLLPUBLIC void SetScenario(SCTAB nTab, bool bFlag)
std::unique_ptr< SharedFormulaBuffer > pShrfmlaBuff
std::unique_ptr< ScRangeListTabs > pPrintRanges
ExcScenario(XclImpStream &rIn, const RootData &rRoot)
SC_DLLPUBLIC bool ApplyFlagsTab(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, ScMF nFlags)
XclImpOutlineBuffer(SCSIZE nNewSize)
const ScExtDocSettings & GetDocSettings() const
constexpr::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
void SetLevel(SCSIZE nIndex, sal_uInt8 nVal, bool bCollapsed)
ScDocument & GetDoc() const
Returns reference to the destination document (import) or source document (export).
void SetButtonMode(bool bRightOrUnder)
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 ...
XclExpUserBViewList * pUserBViewList
std::unique_ptr< ScRangeListTabs > pPrintTitles
SC_DLLPUBLIC bool SetString(SCCOL nCol, SCROW nRow, SCTAB nTab, const OUString &rString, const ScSetStringParam *pParam=nullptr)
std::unique_ptr< XclImpAutoFilterBuffer > pAutoFilterBuffer
SC_DLLPUBLIC void SetScenarioData(SCTAB nTab, const OUString &rComment, const Color &rColor, ScScenarioFlags nFlags)
ScOutlineArray * mpOutlineArray
XclImpTabInfo & GetTabInfo() const
Returns the buffer that contains the sheet creation order.
SC_DLLPUBLIC void SetActiveScenario(SCTAB nTab, bool bActive)
ScExtDocOptions & GetExtDocOptions() const
Returns the extended document options.
Extended settings for the document, used in import/export filters.
::std::set< SCSIZE > maCollapsedPosSet
SC_DLLPUBLIC bool InsertTab(SCTAB nPos, const OUString &rName, bool bExternalDocument=false, bool bUndoDeleteTab=false)
void InsertScTab(SCTAB nScTab)
Inserts a Calc sheet index (increases all following sheet indexes).
std::vector< std::unique_ptr< ExcScenario > > aEntries
OUString ReadUniString(sal_uInt16 nChars, sal_uInt8 nFlags)
Reads ext.
void SetLevelRange(SCSIZE nF, SCSIZE nL, sal_uInt8 nVal, bool bCollapsed)
std::unique_ptr< ExtNameBuff > pExtNameBuff
void Ignore(std::size_t nBytes)
Seeks forward inside the current record.
field button for datapilot
std::vector< ExcScenarioCell > aEntries
ExcelToSc * pFmlaConverter
ExcScenarioCell(const sal_uInt16 nC, const sal_uInt16 nR)
void Apply(const XclImpRoot &rRoot, const bool bLast)
void Apply(const XclImpRoot &rRoot)
This class is used to import record oriented streams.
XclImpColRowSettings * pColRowBuff
Access to global data from other classes.
bool Insert(SCCOLROW nStartPos, SCCOLROW nEndPos, bool &rSizeChanged, bool bHidden=false)
std::unique_ptr< ExtSheetBuffer > pExtSheetBuff
SCTAB mnDisplTab
Index of displayed sheet.