diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-03-10 15:03:25 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-03-11 10:09:03 +0100 |
commit | dddee125cc32f1ad5228e598a7de04e9654e65c1 (patch) | |
tree | 19c35052c83886c8807fa6d7d45d333b2e57eeac /sc/inc/column.hxx | |
parent | 69b5f0b6579c6574a8fe68ab2a64208ec767db55 (diff) |
load ods/xlsx with full row attributes without allocating all columns
If there's e.g. an entire row bold, it's enough to set default
attribute for unallocated columns.
This also reverts the workaround from commit 297ab561c6754, as it's
no longer necessary.
Change-Id: I0b208709aeaff1c0d59da2410926876715cfe642
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131320
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/inc/column.hxx')
-rw-r--r-- | sc/inc/column.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 2cf4bdd66573..b6fde6801a2f 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -140,6 +140,8 @@ public: return static_cast<const T&>(GetAttr(nRow, sal_uInt16(nWhich), nStartRow, nEndRow)); } + void SetAttrEntries(std::vector<ScAttrEntry> && vNewData); + const ScPatternAttr* GetPattern( SCROW nRow ) const; const ScPatternAttr* GetMostUsedPattern( SCROW nStartRow, SCROW nEndRow ) const; SCROW ApplySelectionCache( SfxItemPoolCache* pCache, const ScMarkData& rMark, ScEditDataArray* pDataArray, bool* const pIsChanged, @@ -1009,4 +1011,9 @@ inline void ScColumn::SetPatternArea( SCROW nStartRow, SCROW nEndRow, pAttrArray->SetPatternArea( nStartRow, nEndRow, &rPatAttr, true/*bPutToPool*/ ); } +inline void ScColumnData::SetAttrEntries(std::vector<ScAttrEntry> && vNewData) +{ + pAttrArray->SetAttrEntries( std::move( vNewData )); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |