36 mTemplate = OUString::createFromAscii(aTemplate);
95 mCurrentAddress(aInitialAddress),
96 mMinimumAddress(aInitialAddress),
97 mMaximumAddress(aInitialAddress)
155 mpDocShell(pDocShell),
156 mrDocument(rDocument),
168 size_t nLength = rFormulas.size();
177 std::vector<ScFormulaCell*> aFormulaCells(
nLength);
179 for (
size_t nIdx = 0; nIdx <
nLength; ++nIdx)
207 writeString(OUString::createFromAscii(aCharArray));
216 aItemSet.
Put(aWeight);
230 : mInputRange(aInputRange)
231 , mByColumn(aByColumn)
291 mInputRange(aInputRange),
307 , mCol(aInputRange.aStart.
Col())
348 , mRow(aInputRange.aStart.
Row())
formula::FormulaGrammar::Grammar meGrammar
void writeMatrixFormula(const OUString &aFormula, SCCOL nCols=1, SCROW nRows=1)
AddressWalkerWriter(const ScAddress &aInitialAddress, ScDocShell *pDocShell, ScDocument &rDocument, formula::FormulaGrammar::Grammar eGrammar)
void writeFormula(const OUString &aFormula)
void writeBoldString(const OUString &aString)
void writeValue(double aValue)
void writeString(const OUString &aString)
void writeFormulas(const std::vector< OUString > &rFormulas)
AddressWalker(const ScAddress &aInitialAddress)
ScAddress current(SCCOL aRelativeCol=0, SCROW aRelativeRow=0, SCTAB aRelativeTab=0)
void push(SCCOL aRelativeCol=0, SCROW aRelativeRow=0, SCTAB aRelativeTab=0)
std::vector< ScAddress > mAddressStack
ScAddress mCurrentAddress
ScAddress mMaximumAddress
ScAddress getRelative(int aDelta)
DataCellIterator(const ScRange &aInputRange, bool aByColumn)
DataRangeByColumnIterator(const ScRange &aInputRange)
virtual bool hasNext() override
virtual size_t size() override
virtual void next() override
virtual DataCellIterator iterateCells() override
virtual void reset() override
virtual ScRange get() override
virtual DataCellIterator iterateCells() override
virtual void next() override
DataRangeByRowIterator(const ScRange &aInputRange)
virtual ScRange get() override
virtual bool hasNext() override
virtual void reset() override
virtual size_t size() override
DataRangeIterator(const ScRange &aInputRange)
virtual ~DataRangeIterator()
std::unique_ptr< EditTextObject > CreateTextObject()
const SfxItemSet & GetEmptyItemSet() const
void QuickSetAttribs(const SfxItemSet &rSet, const ESelection &rSel)
SC_DLLPUBLIC void Format(OStringBuffer &r, ScRefFlags nFlags, const ScDocument *pDocument=nullptr, const Details &rDetails=detailsOOOa1) const
void IncCol(SCCOL nDelta=1)
void IncRow(SCROW nDelta=1)
bool SetFormulaCell(const ScAddress &rPos, ScFormulaCell *pCell, bool bInteraction)
Below two methods take ownership of the formula cell instance(s).
bool SetValueCell(const ScAddress &rPos, double fVal, bool bInteraction)
bool SetStringCell(const ScAddress &rPos, const OUString &rStr, bool bInteraction)
bool SetFormulaCells(const ScAddress &rPos, std::vector< ScFormulaCell * > &rCells, bool bInteraction)
bool SetEditCell(const ScAddress &rPos, const EditTextObject &rStr, bool bInteraction)
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)
const ScDocument & GetDocument() const
SC_DLLPUBLIC formula::FormulaGrammar::AddressConvention GetAddressConvention() const
SC_DLLPUBLIC SCROW MaxRow() const
SC_DLLPUBLIC ScFieldEditEngine & GetEditEngine()
void SetTextCurrentDefaults(const EditTextObject &rTextObject)
SetText and apply defaults already set.
void Format(OUString &, ScRefFlags nFlags, const ScDocument &, formula::FormulaGrammar::AddressConvention eConv=formula::FormulaGrammar::CONV_OOO, sal_Unicode cDelimiter=0, bool bFullAddressNotation=false) const
OUString Format(const ScDocument &rDocument, ScRefFlags nFlags=ScRefFlags::ZERO, const ScAddress::Details &rDetails=ScAddress::detailsOOOa1, bool bFullAddressNotation=false) const
Returns string with formatted cell range from aStart to aEnd, according to provided address conventio...
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT(EE_CHAR_START+4)
const sal_Unicode cDelimiter