27#include <com/sun/star/table/CellRangeAddress.hpp>
28#include <com/sun/star/sheet/ConditionOperator.hpp>
29#include <com/sun/star/sheet/ValidationAlertStyle.hpp>
30#include <com/sun/star/sheet/ValidationType.hpp>
32#include <mdds/flat_segment_tree.hpp>
68 sal_Int32& nValidationIndex);
72 const OUString& sTitle,
const OUString& sMessage,
73 const bool bShowMessage,
const bool bIsHelpMessage);
97 const sal_Int32 nTable,
const sal_Int32 nPos,
98 const sal_Int32 i,
bool& bIsAutoStyle);
102 const sal_Int32 nLastRow,
const sal_Int32 nLastCol,
128 void AddRange(
const sal_Int32 nPrevStartCol,
const sal_Int32 nRepeat,
const sal_Int32 nPrevIndex,
174 bool AddStyleName(
const OUString& rString, sal_Int32& rIndex,
const bool bIsAutoStyle =
true);
175 sal_Int32
GetIndexOfStyleName(std::u16string_view rString, std::u16string_view rPrefix,
bool& bIsAutoStyle);
177 sal_Int32
GetStyleNameIndex(
const sal_Int32 nTable,
const sal_Int32 nColumn,
const sal_Int32 nRow,
178 bool& bIsAutoStyle)
const;
180 sal_Int32
GetStyleNameIndex(
const sal_Int32 nTable,
const sal_Int32 nColumn,
const sal_Int32 nRow,
181 bool& bIsAutoStyle, sal_Int32& nValidationIndex, sal_Int32& nNumberFormat,
const sal_Int32 nRemoveBeforeRow);
182 void GetFormatRanges(
const sal_Int32 nStartColumn,
const sal_Int32 nEndColumn,
const sal_Int32 nRow,
184 void AddRangeStyleName(
const css::table::CellRangeAddress& rCellRangeAddress,
const sal_Int32 nStringIndex,
185 const bool bIsAutoStyle,
const sal_Int32 nValidationIndex,
const sal_Int32 nNumberFormat);
198 virtual void AddNewTable(
const sal_Int32 nTable,
const sal_Int32 nFields) = 0;
222 virtual void AddNewTable(
const sal_Int32 nTable,
const sal_Int32 nFields)
override;
225 void AddFieldStyleName(
const sal_Int32 nTable,
const sal_Int32 nField,
const sal_Int32 nStringIndex,
const bool bIsVisible);
230 typedef ::mdds::flat_segment_tree<sal_Int32, sal_Int32>
StylesType;
231 std::vector<std::unique_ptr<StylesType> >
aTables;
240 bool hasCache(sal_Int32 nTable, sal_Int32 nField)
const;
248 virtual void AddNewTable(
const sal_Int32 nTable,
const sal_Int32 nFields)
override;
250 void AddFieldStyleName(
const sal_Int32 nTable,
const sal_Int32 nField,
const sal_Int32 nStringIndex);
251 void AddFieldStyleName(
const sal_Int32 nTable,
const sal_Int32 nStartField,
const sal_Int32 nStringIndex,
const sal_Int32 nEndField);
std::vector< ScMyDefaultStyle > ScMyDefaultStyleList
std::vector< OUString > aStyleNames
virtual void AddNewTable(const sal_Int32 nTable, const sal_Int32 nFields)=0
virtual ~ScColumnRowStylesBase()
OUString & GetStyleNameByIndex(const sal_Int32 nIndex)
sal_Int32 GetIndexOfStyleName(std::u16string_view rString, std::u16string_view rPrefix)
sal_Int32 AddStyleName(const OUString &rString)
sal_Int32 GetStyleNameIndex(const sal_Int32 nTable, const sal_Int32 nField, bool &bIsVisible)
virtual ~ScColumnStyles() override
virtual void AddNewTable(const sal_Int32 nTable, const sal_Int32 nFields) override
void AddFieldStyleName(const sal_Int32 nTable, const sal_Int32 nField, const sal_Int32 nStringIndex, const bool bIsVisible)
ScMyColumnVectorVec aTables
std::vector< ScMyColumnStyleVec > ScMyColumnVectorVec
std::vector< ScColumnStyle > ScMyColumnStyleVec
const ScMyDefaultStyleList & GetColDefaults() const
ScMyDefaultStyleList maColDefaults
static sal_Int32 GetStyleNameIndex(const ScFormatRangeStyles *pCellStyles, const sal_Int32 nTable, const sal_Int32 nPos, const sal_Int32 i, bool &bIsAutoStyle)
void FillDefaultStyles(const sal_Int32 nTable, const sal_Int32 nLastRow, const sal_Int32 nLastCol, const ScFormatRangeStyles *pCellStyles, ScDocument *pDoc)
const OUString & GetValidationName(const sal_Int32 nIndex)
static OUString GetBaseCellAddress(const ScDocument *pDoc, const ScAddress &aCell)
ScMyValidationsContainer()
void AddValidation(const css::uno::Any &aAny, sal_Int32 &nValidationIndex)
static void WriteMessage(ScXMLExport &rExport, const OUString &sTitle, const OUString &sMessage, const bool bShowMessage, const bool bIsHelpMessage)
std::vector< ScMyValidation > aValidationVec
~ScMyValidationsContainer()
static OUString GetCondition(ScXMLExport &rExport, const ScMyValidation &aValidation)
void WriteValidations(ScXMLExport &rExport)
::mdds::flat_segment_tree< sal_Int32, sal_Int32 > StylesType
void AddFieldStyleName(const sal_Int32 nTable, const sal_Int32 nField, const sal_Int32 nStringIndex)
virtual void AddNewTable(const sal_Int32 nTable, const sal_Int32 nFields) override
std::vector< std::unique_ptr< StylesType > > aTables
sal_Int32 GetStyleNameIndex(const sal_Int32 nTable, const sal_Int32 nField)
virtual ~ScRowStyles() override
css::sheet::ValidationAlertStyle aAlertStyle
css::sheet::ConditionOperator aOperator
bool IsEqual(const ScMyValidation &aVal) const
css::sheet::ValidationType aValidationType
bool hasCache(sal_Int32 nTable, sal_Int32 nField) const