LibreOffice Module sc (master) 1
|
#include <attarray.hxx>
Public Member Functions | |
ScAttrArray (SCCOL nNewCol, SCTAB nNewTab, ScDocument &rDoc, ScAttrArray *pNextColAttrArray) | |
~ScAttrArray () | |
ScDocument & | GetDoc () |
const ScDocument & | GetDoc () const |
void | SetTab (SCTAB nNewTab) |
void | SetCol (SCCOL nNewCol) |
void | Reset (const ScPatternAttr *pPattern) |
bool | Concat (SCSIZE nPos) |
const ScPatternAttr * | GetPattern (SCROW nRow) const |
const ScPatternAttr * | GetPatternRange (SCROW &rStartRow, SCROW &rEndRow, SCROW nRow) const |
Returns if you search for attributes at nRow the range from rStartRow to rEndRow where that attribute combination (ScPatternAttr) is applied. More... | |
void | MergePatternArea (SCROW nStartRow, SCROW nEndRow, ScMergePatternState &rState, bool bDeep) const |
void | MergeBlockFrame (SvxBoxItem *pLineOuter, SvxBoxInfoItem *pLineInner, ScLineFlags &rFlags, SCROW nStartRow, SCROW nEndRow, bool bLeft, SCCOL nDistRight) const |
void | ApplyBlockFrame (const SvxBoxItem &rLineOuter, const SvxBoxInfoItem *pLineInner, SCROW nStartRow, SCROW nEndRow, bool bLeft, SCCOL nDistRight) |
void | SetPattern (SCROW nRow, const ScPatternAttr *pPattern, bool bPutToPool=false) |
const ScPatternAttr * | SetPattern (SCROW nRow, std::unique_ptr< ScPatternAttr > pPattern, bool bPutToPool=false) |
void | SetPatternArea (SCROW nStartRow, SCROW nEndRow, std::unique_ptr< ScPatternAttr > pPattern, bool bPutToPool=false, ScEditDataArray *pDataArray=nullptr) |
void | SetPatternArea (SCROW nStartRow, SCROW nEndRow, const ScPatternAttr *pPattern, bool bPutToPool=false, ScEditDataArray *pDataArray=nullptr) |
void | ApplyStyleArea (SCROW nStartRow, SCROW nEndRow, const ScStyleSheet &rStyle) |
void | ApplyCacheArea (SCROW nStartRow, SCROW nEndRow, SfxItemPoolCache *pCache, ScEditDataArray *pDataArray=nullptr, bool *const pIsChanged=nullptr) |
void | SetAttrEntries (std::vector< ScAttrEntry > &&vNewData) |
void | ApplyLineStyleArea (SCROW nStartRow, SCROW nEndRow, const ::editeng::SvxBorderLine *pLine, bool bColorOnly) |
void | AddCondFormat (SCROW nStartRow, SCROW nEndRow, sal_uInt32 nIndex) |
void | RemoveCondFormat (SCROW nStartRow, SCROW nEndRow, sal_uInt32 nIndex) |
if nIndex == 0, remove all conditional format data More... | |
void | ClearItems (SCROW nStartRow, SCROW nEndRow, const sal_uInt16 *pWhich) |
void | ChangeIndent (SCROW nStartRow, SCROW nEndRow, bool bIncrement) |
SCROW | GetNextUnprotected (SCROW nRow, bool bUp) const |
Including current, may return -1. More... | |
SCROW | SearchStyle (SCROW nRow, const ScStyleSheet *pSearchStyle, bool bUp, const ScMarkArray *pMarkArray=nullptr) const |
May return -1 if not found. More... | |
bool | SearchStyleRange (SCROW &rRow, SCROW &rEndRow, const ScStyleSheet *pSearchStyle, bool bUp, const ScMarkArray *pMarkArray=nullptr) const |
bool | ApplyFlags (SCROW nStartRow, SCROW nEndRow, ScMF nFlags) |
bool | RemoveFlags (SCROW nStartRow, SCROW nEndRow, ScMF nFlags) |
bool | Search (SCROW nRow, SCSIZE &nIndex) const |
bool | HasAttrib (SCROW nRow1, SCROW nRow2, HasAttrFlags nMask) const |
bool | HasAttrib (SCROW nRow, HasAttrFlags nMask, SCROW *nStartRow=nullptr, SCROW *nEndRow=nullptr) const |
bool | IsMerged (SCROW nRow) const |
bool | ExtendMerge (SCCOL nThisCol, SCROW nStartRow, SCROW nEndRow, SCCOL &rPaintCol, SCROW &rPaintRow, bool bRefresh) |
Area around any given summaries expand and adapt any MergeFlag (bRefresh) More... | |
void | RemoveAreaMerge (SCROW nStartRow, SCROW nEndRow) |
void | FindStyleSheet (const SfxStyleSheetBase *pStyleSheet, ScFlatBoolRowSegments &rUsedRows, bool bReset) |
bool | IsStyleSheetUsed (const ScStyleSheet &rStyle) const |
void | SetPatternAreaSafe (SCROW nStartRow, SCROW nEndRow, const ScPatternAttr *pWantedPattern, bool bDefault) |
void | CopyAreaSafe (SCROW nStartRow, SCROW nEndRow, tools::Long nDy, ScAttrArray &rAttrArray) |
Leave flags summarized with CopyArea. More... | |
bool | IsEmpty () const |
bool | GetFirstVisibleAttr (SCROW &rFirstRow) const |
bool | GetLastVisibleAttr (SCROW &rLastRow, SCROW nLastData, bool bSkipEmpty) const |
bool | HasVisibleAttrIn (SCROW nStartRow, SCROW nEndRow) const |
bool | IsVisibleEqual (const ScAttrArray &rOther, SCROW nStartRow, SCROW nEndRow) const |
bool | IsAllEqual (const ScAttrArray &rOther, SCROW nStartRow, SCROW nEndRow) const |
bool | TestInsertCol (SCROW nStartRow, SCROW nEndRow) const |
bool | TestInsertRow (SCSIZE nSize) const |
void | InsertRow (SCROW nStartRow, SCSIZE nSize) |
void | DeleteRow (SCROW nStartRow, SCSIZE nSize) |
void | DeleteRange (SCSIZE nStartIndex, SCSIZE nEndIndex) |
void | DeleteArea (SCROW nStartRow, SCROW nEndRow) |
void | MoveTo (SCROW nStartRow, SCROW nEndRow, ScAttrArray &rAttrArray) |
Move within a document. More... | |
void | CopyArea (SCROW nStartRow, SCROW nEndRow, tools::Long nDy, ScAttrArray &rAttrArray, ScMF nStripFlags=ScMF::NONE) const |
Copy between documents (Clipboard) More... | |
void | DeleteHardAttr (SCROW nStartRow, SCROW nEndRow) |
bool | Reserve (SCSIZE nReserve) |
SCSIZE | Count () const |
SCSIZE | Count (SCROW nRow1, SCROW nRow2) const |
Private Member Functions | |
bool | ApplyFrame (const SvxBoxItem &rLineOuter, const SvxBoxInfoItem *pLineInner, SCROW nStartRow, SCROW nEndRow, bool bLeft, SCCOL nDistRight, bool bTop, SCROW nDistBottom) |
void | RemoveCellCharAttribs (SCROW nStartRow, SCROW nEndRow, const ScPatternAttr *pPattern, ScEditDataArray *pDataArray) |
void | SetDefaultIfNotInit (SCSIZE nNeeded=1) |
bool | HasAttrib_Impl (const ScPatternAttr *pPattern, HasAttrFlags nMask, SCROW nRow1, SCROW nRow2, SCSIZE i) const |
ScAttrArray (const ScAttrArray &)=delete | |
ScAttrArray & | operator= (const ScAttrArray &)=delete |
const ScPatternAttr * | SetPatternAreaImpl (SCROW nStartRow, SCROW nEndRow, const ScPatternAttr *pPattern, bool bPutToPool=false, ScEditDataArray *pDataArray=nullptr, bool bPassingPatternOwnership=false) |
Private Attributes | |
SCCOL | nCol |
SCTAB | nTab |
ScDocument & | rDocument |
std::vector< ScAttrEntry > | mvData |
Friends | |
class | ScDocument |
class | ScDocumentIterator |
class | ScAttrIterator |
class | ScHorizontalAttrIterator |
Definition at line 91 of file attarray.hxx.
|
privatedelete |
ScAttrArray::ScAttrArray | ( | SCCOL | nNewCol, |
SCTAB | nNewTab, | ||
ScDocument & | rDoc, | ||
ScAttrArray * | pNextColAttrArray | ||
) |
Definition at line 50 of file attarray.cxx.
References ScGlobal::CheckWidthInvalidate(), ScDocument::GetDefPattern(), ScPatternAttr::GetItemSet(), ScDocument::GetPool(), ScDocument::InvalidateTextWidth(), mvData, nCol, nTab, SfxItemPool::Put(), rDocument, and ScAddress::SetRow().
ScAttrArray::~ScAttrArray | ( | ) |
Definition at line 77 of file attarray.cxx.
References ScDocument::GetPool(), mvData, rDocument, and SfxItemPool::Remove().
Definition at line 278 of file attarray.cxx.
References ATTR_CONDITIONAL(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SfxItemSet::GetItemIfSet(), ScPatternAttr::GetItemSet(), GetPattern(), GetPatternRange(), ScDocument::GetPool(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), nIndex, rDocument, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::reserve(), SetPatternArea(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and ScDocument::ValidRow().
void ScAttrArray::ApplyBlockFrame | ( | const SvxBoxItem & | rLineOuter, |
const SvxBoxInfoItem * | pLineInner, | ||
SCROW | nStartRow, | ||
SCROW | nEndRow, | ||
bool | bLeft, | ||
SCCOL | nDistRight | ||
) |
Definition at line 1234 of file attarray.cxx.
References ApplyFrame(), i, mvData, Search(), and SetDefaultIfNotInit().
void ScAttrArray::ApplyCacheArea | ( | SCROW | nStartRow, |
SCROW | nEndRow, | ||
SfxItemPoolCache * | pCache, | ||
ScEditDataArray * | pDataArray = nullptr , |
||
bool *const | pIsChanged = nullptr |
||
) |
Definition at line 836 of file attarray.cxx.
References SfxItemPoolCache::ApplyTo(), ScGlobal::CheckWidthInvalidate(), Concat(), ScPatternAttr::GetItemSet(), ScDocument::GetPool(), ScDocument::InvalidateTextWidth(), mvData, nCol, nPos, nTab, rDocument, SfxItemPool::Remove(), Search(), SetDefaultIfNotInit(), SetPatternArea(), ScAddress::SetRow(), ScDocument::SetStreamValid(), and ScDocument::ValidRow().
Referenced by ApplyFrame().
Definition at line 1622 of file attarray.cxx.
References ATTR_MERGE_FLAG(), ScPatternAttr::GetItem(), mvData, nIndex, Search(), SetDefaultIfNotInit(), and SetPatternArea().
|
private |
Definition at line 1165 of file attarray.cxx.
References ApplyCacheArea(), ATTR_BORDER(), ATTR_MERGE(), SfxItemSet::Get(), SvxBoxItem::GetBottom(), ScMergeAttr::GetColMerge(), SvxBoxInfoItem::GetHori(), ScPatternAttr::GetItem(), ScPatternAttr::GetItemSet(), SvxBoxItem::GetLeft(), GetPattern(), ScDocument::GetPool(), SvxBoxItem::GetRight(), ScMergeAttr::GetRowMerge(), SvxBoxItem::GetTop(), SvxBoxInfoItem::GetVert(), ScDocument::IsLayoutRTL(), SvxBoxInfoItem::IsValid(), nTab, rBoxItem, rDocument, and SvxBoxItem::SetLine().
Referenced by ApplyBlockFrame().
void ScAttrArray::ApplyLineStyleArea | ( | SCROW | nStartRow, |
SCROW | nEndRow, | ||
const ::editeng::SvxBorderLine * | pLine, | ||
bool | bColorOnly | ||
) |
Definition at line 716 of file attarray.cxx.
References ATTR_BORDER(), ATTR_BORDER_BLTR(), ATTR_BORDER_TLBR(), SvxBoxItem::Clone(), SvxLineItem::Clone(), Concat(), SfxItemSet::GetItemIfSet(), ScPatternAttr::GetItemSet(), ScDocument::GetPool(), mvData, nPos, SfxItemSet::Put(), SfxItemPool::Put(), rDocument, SfxItemPool::Remove(), Search(), SetDefaultIfNotInit(), SetLine(), SetLineColor(), SetPatternArea(), and ScDocument::ValidRow().
void ScAttrArray::ApplyStyleArea | ( | SCROW | nStartRow, |
SCROW | nEndRow, | ||
const ScStyleSheet & | rStyle | ||
) |
Definition at line 622 of file attarray.cxx.
References ScGlobal::CheckWidthInvalidate(), Concat(), ScPatternAttr::GetItemSet(), ScDocument::GetPool(), ScDocument::InvalidateTextWidth(), mvData, nCol, nPos, nTab, SfxItemPool::Put(), rDocument, SfxItemPool::Remove(), Search(), SetDefaultIfNotInit(), SetPatternArea(), ScAddress::SetRow(), ScDocument::SetStreamValid(), and ScDocument::ValidRow().
Definition at line 1726 of file attarray.cxx.
References ATTR_HOR_JUSTIFY(), ATTR_INDENT(), SfxItemSet::Get(), ScDocument::GetColWidth(), SfxItemSet::GetItemIfSet(), ScPatternAttr::GetItemSet(), ScDocument::MaxCol(), mvData, nCol, nIndex, nTab, rDocument, SC_INDENT_STEP, Search(), SetDefaultIfNotInit(), and SetPatternArea().
Definition at line 1696 of file attarray.cxx.
References ScPatternAttr::HasItemsSet(), mvData, nIndex, Search(), SetDefaultIfNotInit(), and SetPatternArea().
bool ScAttrArray::Concat | ( | SCSIZE | nPos | ) |
Definition at line 154 of file attarray.cxx.
References ScDocument::GetPool(), mvData, nPos, rDocument, and SfxItemPool::Remove().
Referenced by ApplyCacheArea(), ApplyLineStyleArea(), ApplyStyleArea(), and FindStyleSheet().
void ScAttrArray::CopyArea | ( | SCROW | nStartRow, |
SCROW | nEndRow, | ||
tools::Long | nDy, | ||
ScAttrArray & | rAttrArray, | ||
ScMF | nStripFlags = ScMF::NONE |
||
) | const |
Copy between documents (Clipboard)
Definition at line 2421 of file attarray.cxx.
References All, ATTR_MERGE_FLAG(), ATTR_PATTERN(), SfxItemSet::ClearItem(), SfxItemPool::GetDefaultItem(), ScPatternAttr::GetItem(), ScPatternAttr::GetItemSet(), ScDocument::GetPool(), i, IsDefaultItem(), ScDocument::MaxRow(), mvData, NONE, SfxItemSet::Put(), SfxItemPool::Put(), ScPatternAttr::PutInPool(), rDocument, and SetPatternArea().
Referenced by CopyAreaSafe().
void ScAttrArray::CopyAreaSafe | ( | SCROW | nStartRow, |
SCROW | nEndRow, | ||
tools::Long | nDy, | ||
ScAttrArray & | rAttrArray | ||
) |
Leave flags summarized with CopyArea.
Definition at line 2493 of file attarray.cxx.
References CopyArea(), ScDocument::GetDefPattern(), ScDocument::GetPool(), HasAttrib(), i, ScDocument::MaxRow(), mvData, Overlapped, SfxItemPool::Put(), ScPatternAttr::PutInPool(), rDocument, and SetPatternAreaSafe().
|
inline |
Definition at line 226 of file attarray.hxx.
References mvData.
Referenced by ScDocument::ExtendOverlapped(), ScDocument::FillInfo(), ScHorizontalAttrIterator::InitForNextRow(), IsAllEqual(), IsVisibleEqual(), ScAttrIterator::Next(), ScAttrIterator::Resync(), and ScAttrIterator::ScAttrIterator().
Definition at line 2686 of file attarray.cxx.
Definition at line 2345 of file attarray.cxx.
References AutoFilter, ScDocument::GetDefPattern(), HasAttrib(), nCol, Overlapped, rDocument, RemoveAreaMerge(), SetDefaultIfNotInit(), SetPatternArea(), and SetPatternAreaSafe().
Referenced by MoveTo().
Definition at line 2357 of file attarray.cxx.
References ATTR_MERGE(), ATTR_MERGE_FLAG(), ATTR_PATTERN_END(), ATTR_PATTERN_START(), SfxItemSet::ClearItem(), SfxItemSet::Count(), ScDocument::GetDefPattern(), ScPatternAttr::GetItemSet(), mvData, nId, nIndex, rDocument, rSet, Search(), SetDefaultIfNotInit(), and SetPatternArea().
Definition at line 2335 of file attarray.cxx.
References ScDocument::GetPool(), i, mvData, rDocument, SfxItemPool::Remove(), and SetDefaultIfNotInit().
Referenced by DeleteRow(), and InsertRow().
Definition at line 2287 of file attarray.cxx.
References Auto, DeleteRange(), Hor, i, ScDocument::MaxRow(), mvData, rDocument, RemoveFlags(), SetDefaultIfNotInit(), and Ver.
bool ScAttrArray::ExtendMerge | ( | SCCOL | nThisCol, |
SCROW | nStartRow, | ||
SCROW | nEndRow, | ||
SCCOL & | rPaintCol, | ||
SCROW & | rPaintRow, | ||
bool | bRefresh | ||
) |
Area around any given summaries expand and adapt any MergeFlag (bRefresh)
Definition at line 1459 of file attarray.cxx.
References ScDocument::ApplyFlagsTab(), ATTR_MERGE(), ScMergeAttr::GetColMerge(), ScPatternAttr::GetItem(), ScMergeAttr::GetRowMerge(), Hor, i, ScDocument::MaxCol(), ScDocument::MaxRow(), mvData, nCol, nTab, rDocument, Search(), SetDefaultIfNotInit(), and Ver.
void ScAttrArray::FindStyleSheet | ( | const SfxStyleSheetBase * | pStyleSheet, |
ScFlatBoolRowSegments & | rUsedRows, | ||
bool | bReset | ||
) |
Definition at line 1827 of file attarray.cxx.
References Concat(), ScDocument::GetPool(), ScDocument::GetStyleSheetPool(), mvData, nPos, SfxItemPool::Put(), rDocument, SfxItemPool::Remove(), ScResId(), Search(), SetDefaultIfNotInit(), ScPatternAttr::SetStyleSheet(), and ScFlatBoolRowSegments::setTrue().
|
inline |
Definition at line 121 of file attarray.hxx.
References rDocument.
Referenced by ScAttrIterator::Next().
|
inline |
Definition at line 122 of file attarray.hxx.
References rDocument.
bool ScAttrArray::GetFirstVisibleAttr | ( | SCROW & | rFirstRow | ) | const |
Definition at line 1909 of file attarray.cxx.
References mvData.
Definition at line 1945 of file attarray.cxx.
References ScDocument::MaxRow(), mvData, nPos, rDocument, SC_VISATTR_STOP, and Search().
Including current, may return -1.
Definition at line 1790 of file attarray.cxx.
References ATTR_PROTECTION(), GetItem(), ScDocument::MaxRow(), mvData, nIndex, rDocument, Search(), and ScDocument::ValidRow().
const ScPatternAttr * ScAttrArray::GetPattern | ( | SCROW | nRow | ) | const |
Definition at line 239 of file attarray.cxx.
References ScDocument::GetDefPattern(), i, mvData, rDocument, Search(), and ScDocument::ValidRow().
Referenced by AddCondFormat(), ApplyFrame(), MergeBlockFrame(), and RemoveCondFormat().
const ScPatternAttr * ScAttrArray::GetPatternRange | ( | SCROW & | rStartRow, |
SCROW & | rEndRow, | ||
SCROW | nRow | ||
) | const |
Returns if you search for attributes at nRow the range from rStartRow to rEndRow where that attribute combination (ScPatternAttr) is applied.
The next ScPatternAttr different from this one starts at rEndRow+1 (if that is <= MAXROW).
Definition at line 254 of file attarray.cxx.
References ScDocument::GetDefPattern(), ScDocument::MaxRow(), mvData, nIndex, rDocument, Search(), and ScDocument::ValidRow().
Referenced by AddCondFormat(), RemoveCondFormat(), and ScAttrArray_IterGetNumberFormat().
bool ScAttrArray::HasAttrib | ( | SCROW | nRow, |
HasAttrFlags | nMask, | ||
SCROW * | nStartRow = nullptr , |
||
SCROW * | nEndRow = nullptr |
||
) | const |
Definition at line 1421 of file attarray.cxx.
References ScDocument::GetDefPattern(), HasAttrib_Impl(), ScDocument::MaxRow(), mvData, nIndex, rDocument, and Search().
bool ScAttrArray::HasAttrib | ( | SCROW | nRow1, |
SCROW | nRow2, | ||
HasAttrFlags | nMask | ||
) | const |
Definition at line 1396 of file attarray.cxx.
References ScDocument::GetDefPattern(), HasAttrib_Impl(), i, ScDocument::MaxRow(), mvData, rDocument, and Search().
Referenced by CopyAreaSafe(), and DeleteArea().
|
private |
Definition at line 1273 of file attarray.cxx.
References ATTR_BORDER(), ATTR_CONDITIONAL(), ATTR_HOR_JUSTIFY(), ATTR_LINEBREAK(), ATTR_MERGE(), ATTR_MERGE_FLAG(), ATTR_PROTECTION(), ATTR_ROTATE_VALUE(), ATTR_SHADOW(), AutoFilter, Conditional, SvxBoxItem::GetBottom(), ScPatternAttr::GetCellOrientation(), ScMergeAttr::GetColMerge(), ScDocument::GetCondResult(), ScProtectionAttr::GetHideCell(), ScPatternAttr::GetItem(), SfxItemSet::GetItemIfSet(), SvxBoxItem::GetLeft(), SvxShadowItem::GetLocation(), ScProtectionAttr::GetProtection(), SvxBoxItem::GetRight(), ScMergeAttr::GetRowMerge(), SvxBoxItem::GetTop(), SdrAngleItem::GetValue(), ScMergeFlagAttr::HasAutoFilter(), i, ScMergeFlagAttr::IsOverlapped(), Lines, Merged, mvData, nCol, NeedHeight, NotOverlapped, nTab, Overlapped, Protected, rDocument, RightOrCenter, Rotate, Shadow, ShadowDown, and ShadowRight.
Referenced by HasAttrib().
Definition at line 2014 of file attarray.cxx.
References ScDocument::GetDefPattern(), ScPatternAttr::IsVisible(), mvData, nIndex, rDocument, and Search().
Definition at line 2238 of file attarray.cxx.
References ScDocument::ApplyAttr(), ATTR_MERGE(), Auto, Button, DeleteRange(), SfxItemPool::GetDefaultItem(), ScDocument::GetPool(), Hor, i, ScDocument::MaxRow(), mvData, nCol, nIndex, nTab, rDocument, RemoveFlags(), Search(), SetDefaultIfNotInit(), and Ver.
bool ScAttrArray::IsAllEqual | ( | const ScAttrArray & | rOther, |
SCROW | nStartRow, | ||
SCROW | nEndRow | ||
) | const |
Definition at line 2115 of file attarray.cxx.
References Count(), ScDocument::GetDefPattern(), mvData, nPos, rDocument, and Search().
bool ScAttrArray::IsEmpty | ( | ) | const |
Definition at line 1896 of file attarray.cxx.
References ScDocument::GetDefPattern(), mvData, and rDocument.
Referenced by TestInsertCol().
bool ScAttrArray::IsMerged | ( | SCROW | nRow | ) | const |
Definition at line 1442 of file attarray.cxx.
References ATTR_MERGE(), ScDocument::GetDefPattern(), ScPatternAttr::GetItem(), ScMergeAttr::IsMerged(), mvData, nIndex, rDocument, and Search().
bool ScAttrArray::IsStyleSheetUsed | ( | const ScStyleSheet & | rStyle | ) | const |
Definition at line 1862 of file attarray.cxx.
References ScDocument::GetDefPattern(), ScPatternAttr::GetStyleSheet(), mvData, nPos, rDocument, ScStyleSheet::SetUsage(), and ScStyleSheet::USED.
bool ScAttrArray::IsVisibleEqual | ( | const ScAttrArray & | rOther, |
SCROW | nStartRow, | ||
SCROW | nEndRow | ||
) | const |
Definition at line 2035 of file attarray.cxx.
References Count(), ScDocument::GetDefPattern(), ScPatternAttr::IsVisibleEqual(), mvData, nPos, rDocument, and Search().
void ScAttrArray::MergeBlockFrame | ( | SvxBoxItem * | pLineOuter, |
SvxBoxInfoItem * | pLineInner, | ||
ScLineFlags & | rFlags, | ||
SCROW | nStartRow, | ||
SCROW | nEndRow, | ||
bool | bLeft, | ||
SCCOL | nDistRight | ||
) | const |
Definition at line 1123 of file attarray.cxx.
References ScDocument::GetDefPattern(), GetPattern(), i, lcl_MergeToFrame(), mvData, rDocument, and Search().
void ScAttrArray::MergePatternArea | ( | SCROW | nStartRow, |
SCROW | nEndRow, | ||
ScMergePatternState & | rState, | ||
bool | bDeep | ||
) | const |
Definition at line 973 of file attarray.cxx.
References ScDocument::GetDefPattern(), ScPatternAttr::GetItemSet(), ScPatternAttr::GetKey(), SfxItemSet::GetPool(), SfxItemSet::GetRanges(), lcl_MergeDeep(), ScDocument::MaxRow(), ScMergePatternState::mbValidPatternId, ScMergePatternState::mnPatternId, mvData, nPos, ScMergePatternState::pItemSet, ScMergePatternState::pOld1, ScMergePatternState::pOld2, rDocument, Search(), and ScDocument::ValidRow().
void ScAttrArray::MoveTo | ( | SCROW | nStartRow, |
SCROW | nEndRow, | ||
ScAttrArray & | rAttrArray | ||
) |
Move within a document.
Definition at line 2401 of file attarray.cxx.
References DeleteArea(), i, mvData, SetDefaultIfNotInit(), and SetPatternArea().
|
privatedelete |
Definition at line 1512 of file attarray.cxx.
References ScDocument::ApplyAttr(), ScDocument::ApplyPatternAreaTab(), ATTR_MERGE(), ATTR_MERGE_FLAG(), ScMergeAttr::GetColMerge(), SfxItemPool::GetDefaultItem(), ScPatternAttr::GetItem(), ScPatternAttr::GetItemSet(), ScDocument::GetPool(), ScMergeAttr::GetRowMerge(), ScDocument::MaxRow(), mvData, nCol, nIndex, nTab, SfxItemSet::Put(), rDocument, Search(), and SetDefaultIfNotInit().
Referenced by DeleteArea().
|
private |
Definition at line 393 of file attarray.cxx.
References ScEditDataArray::AddItem(), CELLTYPE_EDIT, EditTextObject::Clone(), ScRefCellValue::getEditText(), ScRefCellValue::getType(), ScDocument::InitColumnBlockPosition(), nCol, nTab, rDocument, and ScEditUtil::RemoveCharAttribs().
Referenced by SetPatternAreaImpl().
if nIndex == 0, remove all conditional format data
Definition at line 336 of file attarray.cxx.
References ATTR_CONDITIONAL(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase_at(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SfxItemSet::GetItemIfSet(), ScPatternAttr::GetItemSet(), GetPattern(), GetPatternRange(), nIndex, rDocument, SetPatternArea(), and ScDocument::ValidRow().
Definition at line 1659 of file attarray.cxx.
References ATTR_MERGE_FLAG(), ScPatternAttr::GetItem(), mvData, nIndex, Search(), SetDefaultIfNotInit(), and SetPatternArea().
Referenced by DeleteRow(), and InsertRow().
bool ScAttrArray::Reserve | ( | SCSIZE | nReserve | ) |
Definition at line 423 of file attarray.cxx.
References ScDocument::GetDefPattern(), ScDocument::MaxRow(), mvData, and rDocument.
void ScAttrArray::Reset | ( | const ScPatternAttr * | pPattern | ) |
Definition at line 121 of file attarray.cxx.
References ScGlobal::CheckWidthInvalidate(), ScPatternAttr::GetItemSet(), ScDocument::GetPool(), i, ScDocument::InvalidateTextWidth(), ScDocument::MaxRow(), mvData, nCol, nTab, SfxItemPool::Put(), rDocument, SfxItemPool::Remove(), ScAddress::SetRow(), and ScDocument::SetStreamValid().
Referenced by SetPatternAreaImpl().
Definition at line 194 of file attarray.cxx.
References i, mvData, and nIndex.
Referenced by ApplyBlockFrame(), ApplyCacheArea(), ApplyFlags(), ApplyLineStyleArea(), ApplyStyleArea(), ChangeIndent(), ClearItems(), Count(), DeleteHardAttr(), ExtendMerge(), ScDocument::ExtendOverlapped(), ScDocument::FillInfo(), FindStyleSheet(), GetLastVisibleAttr(), GetNextUnprotected(), GetPattern(), GetPatternRange(), HasAttrib(), HasVisibleAttrIn(), ScHorizontalAttrIterator::InitForNextRow(), InsertRow(), IsAllEqual(), IsMerged(), IsVisibleEqual(), MergeBlockFrame(), MergePatternArea(), RemoveAreaMerge(), RemoveFlags(), ScAttrIterator::Resync(), ScAttrIterator::ScAttrIterator(), SearchStyle(), SearchStyleRange(), SetPatternAreaImpl(), SetPatternAreaSafe(), and TestInsertCol().
SCROW ScAttrArray::SearchStyle | ( | SCROW | nRow, |
const ScStyleSheet * | pSearchStyle, | ||
bool | bUp, | ||
const ScMarkArray * | pMarkArray = nullptr |
||
) | const |
May return -1 if not found.
Definition at line 2546 of file attarray.cxx.
References ScDocument::GetDefPattern(), ScMarkArray::GetNextMarked(), ScPatternAttr::GetStyleSheet(), ScDocument::MaxRow(), mvData, nIndex, rDocument, Search(), and ScDocument::ValidRow().
Referenced by SearchStyleRange().
bool ScAttrArray::SearchStyleRange | ( | SCROW & | rRow, |
SCROW & | rEndRow, | ||
const ScStyleSheet * | pSearchStyle, | ||
bool | bUp, | ||
const ScMarkArray * | pMarkArray = nullptr |
||
) | const |
Definition at line 2618 of file attarray.cxx.
References ScMarkArray::GetMarkEnd(), ScDocument::MaxRow(), mvData, nIndex, rDocument, Search(), SearchStyle(), and ScDocument::ValidRow().
void ScAttrArray::SetAttrEntries | ( | std::vector< ScAttrEntry > && | vNewData | ) |
Definition at line 919 of file attarray.cxx.
References ScDocument::GetPool(), mvData, rDocument, and SfxItemPool::Remove().
|
inline |
Definition at line 124 of file attarray.hxx.
References nCol.
|
private |
Definition at line 109 of file attarray.cxx.
References ScDocument::GetDefPattern(), ScDocument::MaxRow(), mvData, rDocument, and SC_ATTRARRAY_DELTA.
Referenced by ApplyBlockFrame(), ApplyCacheArea(), ApplyFlags(), ApplyLineStyleArea(), ApplyStyleArea(), ChangeIndent(), ClearItems(), DeleteArea(), DeleteHardAttr(), DeleteRange(), DeleteRow(), ExtendMerge(), FindStyleSheet(), InsertRow(), MoveTo(), RemoveAreaMerge(), RemoveFlags(), SetPatternAreaImpl(), and SetPatternAreaSafe().
|
inline |
Definition at line 147 of file attarray.hxx.
References ScHorizontalAttrIterator::nRow, and SetPatternAreaImpl().
|
inline |
Definition at line 149 of file attarray.hxx.
References ScHorizontalAttrIterator::nRow, and SetPatternAreaImpl().
|
inline |
Definition at line 154 of file attarray.hxx.
References ScHorizontalAttrIterator::nEndRow, ScHorizontalAttrIterator::nStartRow, and SetPatternAreaImpl().
|
inline |
Definition at line 151 of file attarray.hxx.
References ScHorizontalAttrIterator::nEndRow, ScHorizontalAttrIterator::nStartRow, and SetPatternAreaImpl().
Referenced by AddCondFormat(), ApplyCacheArea(), ApplyFlags(), ApplyLineStyleArea(), ApplyStyleArea(), ChangeIndent(), ClearItems(), CopyArea(), DeleteArea(), DeleteHardAttr(), MoveTo(), RemoveCondFormat(), RemoveFlags(), and SetPatternAreaSafe().
|
private |
Definition at line 450 of file attarray.cxx.
References ScGlobal::CheckWidthInvalidate(), ScDocument::GetDocumentShell(), ScPatternAttr::GetItemSet(), ScDocument::GetPool(), ScDocument::InvalidateTextWidth(), SfxObjectShell::IsLoading(), ScDocument::MaxRow(), mvData, nCol, nIndex, ns, nTab, nx, SfxItemPool::Put(), rDocument, SfxItemPool::Remove(), RemoveCellCharAttribs(), Reset(), Search(), SetDefaultIfNotInit(), ScAddress::SetRow(), ScDocument::SetStreamValid(), and ScDocument::ValidRow().
Referenced by SetPattern(), and SetPatternArea().
void ScAttrArray::SetPatternAreaSafe | ( | SCROW | nStartRow, |
SCROW | nEndRow, | ||
const ScPatternAttr * | pWantedPattern, | ||
bool | bDefault | ||
) |
Definition at line 1567 of file attarray.cxx.
References ATTR_MERGE_FLAG(), ScPatternAttr::GetItem(), ScDocument::GetPool(), ScMergeFlagAttr::HasAutoFilter(), ScMergeFlagAttr::IsOverlapped(), mvData, nIndex, SfxItemPool::Put(), rDocument, Search(), SetDefaultIfNotInit(), and SetPatternArea().
Referenced by CopyAreaSafe(), and DeleteArea().
|
inline |
Definition at line 123 of file attarray.hxx.
References nTab.
Definition at line 2193 of file attarray.cxx.
References ATTR_MERGE_FLAG(), GetItem(), IsEmpty(), mvData, nIndex, and Search().
bool ScAttrArray::TestInsertRow | ( | SCSIZE | nSize | ) | const |
Definition at line 2220 of file attarray.cxx.
References ATTR_MERGE_FLAG(), ScDocument::GetDefPattern(), GetItem(), ScDocument::MaxRow(), mvData, and rDocument.
|
friend |
Definition at line 102 of file attarray.hxx.
|
friend |
Definition at line 100 of file attarray.hxx.
|
friend |
Definition at line 101 of file attarray.hxx.
|
friend |
Definition at line 103 of file attarray.hxx.
|
private |
Definition at line 98 of file attarray.hxx.
Referenced by ApplyBlockFrame(), ApplyCacheArea(), ApplyFlags(), ApplyLineStyleArea(), ApplyStyleArea(), ChangeIndent(), ClearItems(), Concat(), CopyArea(), CopyAreaSafe(), Count(), DeleteHardAttr(), DeleteRange(), DeleteRow(), ExtendMerge(), ScDocument::ExtendOverlapped(), ScDocument::FillInfo(), FindStyleSheet(), GetFirstVisibleAttr(), GetLastVisibleAttr(), GetNextUnprotected(), GetPattern(), GetPatternRange(), HasAttrib(), HasAttrib_Impl(), HasVisibleAttrIn(), ScHorizontalAttrIterator::InitForNextRow(), InsertRow(), IsAllEqual(), IsEmpty(), IsMerged(), IsStyleSheetUsed(), IsVisibleEqual(), MergeBlockFrame(), MergePatternArea(), MoveTo(), ScAttrIterator::Next(), RemoveAreaMerge(), RemoveFlags(), Reserve(), Reset(), ScAttrIterator::Resync(), ScAttrArray(), Search(), SearchStyle(), SearchStyleRange(), SetAttrEntries(), SetDefaultIfNotInit(), SetPatternAreaImpl(), SetPatternAreaSafe(), TestInsertCol(), TestInsertRow(), and ~ScAttrArray().
|
private |
Definition at line 94 of file attarray.hxx.
Referenced by ApplyCacheArea(), ApplyStyleArea(), ChangeIndent(), DeleteArea(), ExtendMerge(), HasAttrib_Impl(), InsertRow(), RemoveAreaMerge(), RemoveCellCharAttribs(), Reset(), ScAttrArray(), SetCol(), and SetPatternAreaImpl().
|
private |
Definition at line 95 of file attarray.hxx.
Referenced by ApplyCacheArea(), ApplyFrame(), ApplyStyleArea(), ChangeIndent(), ExtendMerge(), HasAttrib_Impl(), InsertRow(), RemoveAreaMerge(), RemoveCellCharAttribs(), Reset(), ScAttrArray(), SetPatternAreaImpl(), and SetTab().
|
private |
Definition at line 96 of file attarray.hxx.
Referenced by AddCondFormat(), ApplyCacheArea(), ApplyFrame(), ApplyLineStyleArea(), ApplyStyleArea(), ChangeIndent(), Concat(), CopyArea(), CopyAreaSafe(), DeleteArea(), DeleteHardAttr(), DeleteRange(), DeleteRow(), ExtendMerge(), FindStyleSheet(), GetDoc(), GetLastVisibleAttr(), GetNextUnprotected(), GetPattern(), GetPatternRange(), HasAttrib(), HasAttrib_Impl(), HasVisibleAttrIn(), InsertRow(), IsAllEqual(), IsEmpty(), IsMerged(), IsStyleSheetUsed(), IsVisibleEqual(), MergeBlockFrame(), MergePatternArea(), RemoveAreaMerge(), RemoveCellCharAttribs(), RemoveCondFormat(), Reserve(), Reset(), ScAttrArray(), SearchStyle(), SearchStyleRange(), SetAttrEntries(), SetDefaultIfNotInit(), SetPatternAreaImpl(), SetPatternAreaSafe(), TestInsertRow(), and ~ScAttrArray().