LibreOffice Module sw (master) 1
|
Public Member Functions | |
SaveTable (const SwTable &rTable, sal_uInt16 nLnCnt=USHRT_MAX, bool bSaveFormula=true) | |
sal_uInt16 | AddFormat (SwFrameFormat *pFormat, bool bIsLine) |
void | NewFrameFormatForLine (const SwTableLine &, sal_uInt16 nFormatPos, SwFrameFormat *pOldFormat) |
void | NewFrameFormatForBox (const SwTableBox &, sal_uInt16 nFormatPos, SwFrameFormat *pOldFormat) |
void | RestoreAttr (SwTable &rTable, bool bModifyBox=false) |
void | SaveContentAttrs (SwDoc *pDoc) |
void | CreateNew (SwTable &rTable, bool bCreateFrames=true, bool bRestoreChart=true) |
bool | IsNewModel () const |
Private Member Functions | |
SaveTable (const SaveTable &)=delete | |
SaveTable & | operator= (const SaveTable &)=delete |
SwFrameFormat & | CreateNewFormat (SwFrameFormat &rFormat, sal_uInt16 nFormatPos) |
Private Attributes | |
friend | SaveBox |
friend | SaveLine |
SfxItemSet | m_aTableSet |
std::unique_ptr< SaveLine > | m_pLine |
const SwTable * | m_pSwTable |
SfxItemSets | m_aSets |
SwFrameFormatsV | m_aFrameFormats |
sal_uInt16 | m_nLineCount |
bool | m_bModifyBox: 1 |
bool | m_bSaveFormula: 1 |
bool | m_bNewModel: 1 |
|
privatedelete |
SaveTable::SaveTable | ( | const SwTable & | rTable, |
sal_uInt16 | nLnCnt = USHRT_MAX , |
||
bool | bSaveFormula = true |
||
) |
Definition at line 881 of file untbl.cxx.
References SwVectorModifyBase< Value >::clear(), SwFormat::GetAttrSet(), SwTable::GetFrameFormat(), SwTable::GetTabLines(), SwTable::IsNewModel(), m_aFrameFormats, m_aTableSet, m_bModifyBox, m_bNewModel, m_pLine, m_pSwTable, n, SfxItemSet::Put(), SaveLine, and SwTableLines::size().
sal_uInt16 SaveTable::AddFormat | ( | SwFrameFormat * | pFormat, |
bool | bIsLine | ||
) |
Definition at line 900 of file untbl.cxx.
References aTableBoxSetRange, aTableLineSetRange, SwVectorModifyBase< Value >::begin(), SwTableBoxFormula::ChgDefinedIn(), SwFormat::GetAttrSet(), SwAttrSet::GetPool(), SwFormatsModifyBase< Value >::GetPos(), SwVectorModifyBase< Value >::insert(), m_aFrameFormats, m_aSets, m_bSaveFormula, m_pSwTable, RES_BOXATR_FORMULA(), RES_BOXATR_VALUE(), and SwTableFormula::ToRelBoxNm().
void SaveTable::CreateNew | ( | SwTable & | rTable, |
bool | bCreateFrames = true , |
||
bool | bRestoreChart = true |
||
) |
Definition at line 1008 of file untbl.cxx.
References SwTableLines::begin(), SwVectorModifyBase< Value >::clear(), SfxItemSet::ClearItem(), SwChartDataProvider::DeleteBox(), FndBox_::DelFrames(), SwTableLines::empty(), SwTableLines::erase(), SwFormat::GetAttrSet(), IDocumentChartDataProviderAccess::GetChartDataProvider(), SwFormat::GetDoc(), SwTable::GetFrameFormat(), SwDoc::getIDocumentChartDataProviderAccess(), SwFormat::GetName(), SwTableLine::GetTabBoxes(), SwTable::GetTabLines(), SwTableBox::GetTabLines(), SwTableLines::insert(), sw::BorderCacheOwner::InvalidateInSwCache(), m_aFrameFormats, m_aSets, m_aTableSet, m_nLineCount, m_pLine, FndBox_::MakeFrames(), SwDoc::MakeTableBoxFormat(), n, SwVectorModifyBase< Value >::push_back(), SfxItemSet::Put(), RES_ATTRSET_CHG(), SwTableLine::SetUpper(), SwTableLines::size(), and SwDoc::UpdateCharts().
|
private |
Definition at line 1101 of file untbl.cxx.
References m_aFrameFormats, m_aSets, and SwFormat::SetFormatAttr().
Referenced by NewFrameFormatForBox(), and NewFrameFormatForLine().
|
inline |
Definition at line 143 of file untbl.cxx.
References m_bNewModel.
void SaveTable::NewFrameFormatForBox | ( | const SwTableBox & | rTableBx, |
sal_uInt16 | nFormatPos, | ||
SwFrameFormat * | pOldFormat | ||
) |
Definition at line 1118 of file untbl.cxx.
References CreateNewFormat(), SwFormat::GetDoc(), m_aFrameFormats, m_bModifyBox, SwDoc::MakeTableBoxFormat(), and SwFrameFormat::MoveTableBox().
void SaveTable::NewFrameFormatForLine | ( | const SwTableLine & | rTableLn, |
sal_uInt16 | nFormatPos, | ||
SwFrameFormat * | pOldFormat | ||
) |
Definition at line 1108 of file untbl.cxx.
References CreateNewFormat(), SwFormat::GetDoc(), m_aFrameFormats, and SwDoc::MakeTableLineFormat().
void SaveTable::RestoreAttr | ( | SwTable & | rTable, |
bool | bModifyBox = false |
||
) |
Definition at line 931 of file untbl.cxx.
References SwVectorModifyBase< Value >::clear(), SfxItemSet::ClearItem(), SwTableNode::DelFrames(), FndBox_::DelFrames(), SwIterator< TElementType, TSource, eMode >::First(), SwFormat::GetAttrSet(), IDocumentLayoutAccess::GetCurrentLayout(), SwFormat::GetDoc(), SwTable::GetFrameFormat(), SwDoc::getIDocumentLayoutAccess(), SwTable::GetTableNode(), SwTable::GetTabLines(), sw::BorderCacheOwner::InvalidateInSwCache(), SwRootFrame::IsHideRedlines(), m_aFrameFormats, m_aSets, m_aTableSet, m_bModifyBox, m_nLineCount, m_pLine, FndBox_::MakeFrames(), SwTableNode::MakeOwnFrames(), n, SwIterator< TElementType, TSource, eMode >::Next(), SwVectorModifyBase< Value >::push_back(), SfxItemSet::Put(), RES_ATTRSET_CHG(), SaveLine, and SwTableLines::size().
void SaveTable::SaveContentAttrs | ( | SwDoc * | pDoc | ) |
Definition at line 1003 of file untbl.cxx.
References m_pLine.
Referenced by SwUndoTableAutoFormat::UndoRedo().
|
private |
Definition at line 121 of file untbl.cxx.
Referenced by AddFormat(), CreateNew(), CreateNewFormat(), NewFrameFormatForBox(), NewFrameFormatForLine(), RestoreAttr(), and SaveTable().
|
private |
Definition at line 120 of file untbl.cxx.
Referenced by AddFormat(), CreateNew(), CreateNewFormat(), and RestoreAttr().
|
private |
Definition at line 117 of file untbl.cxx.
Referenced by CreateNew(), RestoreAttr(), and SaveTable().
|
private |
Definition at line 123 of file untbl.cxx.
Referenced by NewFrameFormatForBox(), RestoreAttr(), and SaveTable().
|
private |
Definition at line 125 of file untbl.cxx.
Referenced by IsNewModel(), and SaveTable().
|
private |
Definition at line 124 of file untbl.cxx.
Referenced by AddFormat().
|
private |
Definition at line 122 of file untbl.cxx.
Referenced by CreateNew(), and RestoreAttr().
|
private |
Definition at line 118 of file untbl.cxx.
Referenced by CreateNew(), RestoreAttr(), SaveContentAttrs(), and SaveTable().
|
private |
Definition at line 119 of file untbl.cxx.
Referenced by AddFormat(), and SaveTable().
|
private |
Definition at line 116 of file untbl.cxx.
Referenced by RestoreAttr(), and SaveTable().