LibreOffice Module sc (master) 1
|
#include <olinefun.hxx>
Public Member Functions | |
ScOutlineDocFunc (ScDocShell &rDocSh) | |
void | MakeOutline (const ScRange &rRange, bool bColumns, bool bRecord, bool bApi) |
void | RemoveOutline (const ScRange &rRange, bool bColumns, bool bRecord, bool bApi) |
bool | RemoveAllOutlines (SCTAB nTab, bool bRecord) |
void | AutoOutline (const ScRange &rRange, bool bRecord) |
bool | SelectLevel (SCTAB nTab, bool bColumns, sal_uInt16 nLevel, bool bRecord, bool bPaint) |
bool | ShowMarkedOutlines (const ScRange &rRange, bool bRecord) |
bool | HideMarkedOutlines (const ScRange &rRange, bool bRecord) |
void | ShowOutline (SCTAB nTab, bool bColumns, sal_uInt16 nLevel, sal_uInt16 nEntry, bool bRecord, bool bPaint) |
bool | HideOutline (SCTAB nTab, bool bColumns, sal_uInt16 nLevel, sal_uInt16 nEntry, bool bRecord, bool bPaint) |
Private Attributes | |
ScDocShell & | rDocShell |
Definition at line 27 of file olinefun.hxx.
|
inline |
Definition at line 33 of file olinefun.hxx.
void ScOutlineDocFunc::AutoOutline | ( | const ScRange & | rRange, |
bool | bRecord | ||
) |
Definition at line 253 of file olinefun.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocument::CopyToDocument(), ScDocument::DoAutoOutline(), ScOutlineTable::GetColArray(), ScOutlineArray::GetDepth(), ScDocShell::GetDocument(), ScDocument::GetOutlineTable(), ScOutlineArray::GetRange(), ScOutlineTable::GetRowArray(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), ScDocument::IsUndoEnabled(), lcl_InvalidateOutliner(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), NONE, ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), SCDOCMODE_UNDO, SelectLevel(), ScDocShell::SetDocumentModified(), ScDocument::SetOutlineTable(), ScDocument::SetStreamValid(), Size, ScAddress::Tab(), and Top.
Referenced by ScDBFunc::AutoOutline(), ScTableSheetObj::autoOutline(), and ScUndoAutoOutline::Redo().
bool ScOutlineDocFunc::HideMarkedOutlines | ( | const ScRange & | rRange, |
bool | bRecord | ||
) |
Definition at line 540 of file olinefun.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocument::CopyToDocument(), ScOutlineArray::ExtendBlock(), ScOutlineArray::FindTouchedLevel(), ScOutlineTable::GetColArray(), ScOutlineArray::GetCount(), ScDocShell::GetDocument(), ScOutlineEntry::GetEnd(), ScOutlineArray::GetEntry(), ScDocument::GetOutlineTable(), ScOutlineTable::GetRowArray(), ScOutlineEntry::GetStart(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), Grid, HideOutline(), i, comphelper::LibreOfficeKit::isActive(), ScDocument::IsUndoEnabled(), lcl_InvalidateOutliner(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), nCount, NONE, ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), SCDOCMODE_UNDO, ScDocShell::SetDocumentModified(), ScDocument::SetDrawPageSize(), ScAddress::Tab(), Top, and ScDocument::UpdatePageBreaks().
Referenced by ScTableSheetObj::hideDetail(), and ScDBFunc::HideMarkedOutlines().
bool ScOutlineDocFunc::HideOutline | ( | SCTAB | nTab, |
bool | bColumns, | ||
sal_uInt16 | nLevel, | ||
sal_uInt16 | nEntry, | ||
bool | bRecord, | ||
bool | bPaint | ||
) |
always ???
Definition at line 726 of file olinefun.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::CopyToDocument(), ScDocShell::GetBestViewShell(), ScOutlineTable::GetColArray(), ScDocShell::GetDocument(), ScOutlineEntry::GetEnd(), ScOutlineArray::GetEntry(), ScDocument::GetOutlineTable(), ScOutlineTable::GetRowArray(), ScOutlineEntry::GetStart(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), i, ScDocument::InvalidatePageBreaks(), comphelper::LibreOfficeKit::isActive(), ScTabViewShell::isAnyEditViewInRange(), ScDocument::IsUndoEnabled(), lcl_InvalidateOutliner(), lcl_PaintWidthHeight(), ScDocument::MaxCol(), ScDocument::MaxRow(), NONE, ScDBFunc::OnLOKShowHideColRow(), rDocShell, SCDOCMODE_UNDO, ScDocShell::SetDocumentModified(), ScDocument::SetDrawPageSize(), ScOutlineEntry::SetHidden(), ScOutlineArray::SetVisibleBelow(), ScDocument::ShowCol(), ScDocument::ShowRows(), and ScDocument::UpdatePageBreaks().
Referenced by HideMarkedOutlines(), and ScDBFunc::HideOutline().
void ScOutlineDocFunc::MakeOutline | ( | const ScRange & | rRange, |
bool | bColumns, | ||
bool | bRecord, | ||
bool | bApi | ||
) |
Definition at line 80 of file olinefun.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocShell::ErrorMessage(), ScOutlineTable::GetColArray(), ScDocShell::GetDocument(), ScDocument::GetOutlineTable(), ScOutlineTable::GetRowArray(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), ScOutlineArray::Insert(), ScDocument::IsUndoEnabled(), lcl_InvalidateOutliner(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), NONE, ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), ScDocShell::SetDocumentModified(), ScDocument::SetStreamValid(), Size, ScAddress::Tab(), and Top.
Referenced by ScTableSheetObj::group(), and ScDBFunc::MakeOutline().
bool ScOutlineDocFunc::RemoveAllOutlines | ( | SCTAB | nTab, |
bool | bRecord | ||
) |
Definition at line 201 of file olinefun.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::CopyToDocument(), ScOutlineTable::GetColArray(), ScOutlineArray::GetDepth(), ScDocShell::GetDocument(), ScDocument::GetOutlineTable(), ScOutlineArray::GetRange(), ScOutlineTable::GetRowArray(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), Grid, ScDocument::IsUndoEnabled(), lcl_InvalidateOutliner(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), NONE, ScDocShell::PostPaint(), rDocShell, SCDOCMODE_UNDO, SelectLevel(), ScDocShell::SetDocumentModified(), ScDocument::SetOutlineTable(), ScDocument::SetStreamValid(), Size, Top, and ScDocument::UpdatePageBreaks().
Referenced by ScTableSheetObj::clearOutline(), and ScDBFunc::RemoveAllOutlines().
void ScOutlineDocFunc::RemoveOutline | ( | const ScRange & | rRange, |
bool | bColumns, | ||
bool | bRecord, | ||
bool | bApi | ||
) |
Definition at line 138 of file olinefun.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocShell::ErrorMessage(), ScOutlineTable::GetColArray(), ScDocShell::GetDocument(), ScDocument::GetOutlineTable(), ScOutlineTable::GetRowArray(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), ScDocument::IsUndoEnabled(), lcl_InvalidateOutliner(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), NONE, ScDocShell::PostPaint(), rDocShell, ScOutlineArray::Remove(), ScAddress::Row(), ScDocShell::SetDocumentModified(), ScDocument::SetStreamValid(), Size, ScAddress::Tab(), and Top.
Referenced by ScDBFunc::RemoveOutline(), and ScTableSheetObj::ungroup().
bool ScOutlineDocFunc::SelectLevel | ( | SCTAB | nTab, |
bool | bColumns, | ||
sal_uInt16 | nLevel, | ||
bool | bRecord, | ||
bool | bPaint | ||
) |
calculate start and end
Definition at line 314 of file olinefun.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::CopyToDocument(), ScDocShell::GetBestViewShell(), ScOutlineTable::GetColArray(), ScDocShell::GetDocument(), ScOutlineEntry::GetEnd(), ScOutlineArray::GetEntryByPos(), ScSubOutlineIterator::GetNext(), ScDocument::GetOutlineTable(), ScOutlineArray::GetRange(), ScOutlineTable::GetRowArray(), ScOutlineEntry::GetStart(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), i, comphelper::LibreOfficeKit::isActive(), ScTabViewShell::isAnyEditViewInRange(), ScOutlineEntry::IsHidden(), ScDocument::IsUndoEnabled(), ScSubOutlineIterator::LastLevel(), lcl_InvalidateOutliner(), lcl_PaintWidthHeight(), ScDocument::MaxCol(), ScDocument::MaxRow(), NONE, ScDBFunc::OnLOKShowHideColRow(), rDocShell, ScDocument::RowFiltered(), SCDOCMODE_UNDO, ScDocShell::SetDocumentModified(), ScDocument::SetDrawPageSize(), ScOutlineEntry::SetHidden(), ScOutlineEntry::SetVisible(), ScDocument::ShowCol(), ScDocument::ShowRows(), and ScDocument::UpdatePageBreaks().
Referenced by AutoOutline(), RemoveAllOutlines(), ScDBFunc::SelectLevel(), and ScTableSheetObj::showLevel().
bool ScOutlineDocFunc::ShowMarkedOutlines | ( | const ScRange & | rRange, |
bool | bRecord | ||
) |
Definition at line 426 of file olinefun.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocument::CopyToDocument(), ScDocShell::GetBestViewShell(), ScOutlineTable::GetColArray(), ScDocShell::GetDocument(), ScOutlineEntry::GetEnd(), ScSubOutlineIterator::GetNext(), ScDocument::GetOutlineTable(), ScOutlineTable::GetRowArray(), ScOutlineEntry::GetStart(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), Grid, i, comphelper::LibreOfficeKit::isActive(), ScDocument::IsUndoEnabled(), lcl_InvalidateOutliner(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), NONE, ScDBFunc::OnLOKShowHideColRow(), ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), ScDocument::RowFiltered(), SCDOCMODE_UNDO, ScDocShell::SetDocumentModified(), ScDocument::SetDrawPageSize(), ScOutlineEntry::SetHidden(), ScOutlineEntry::SetVisible(), ScDocument::ShowCol(), ScDocument::ShowRows(), ScAddress::Tab(), Top, and ScDocument::UpdatePageBreaks().
Referenced by ScTableSheetObj::showDetail(), and ScDBFunc::ShowMarkedOutlines().
void ScOutlineDocFunc::ShowOutline | ( | SCTAB | nTab, |
bool | bColumns, | ||
sal_uInt16 | nLevel, | ||
sal_uInt16 | nEntry, | ||
bool | bRecord, | ||
bool | bPaint | ||
) |
calc start and end
Definition at line 635 of file olinefun.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::CopyToDocument(), ScDocShell::GetBestViewShell(), ScOutlineTable::GetColArray(), ScDocShell::GetDocument(), ScOutlineEntry::GetEnd(), ScOutlineArray::GetEntry(), ScSubOutlineIterator::GetNext(), ScDocument::GetOutlineTable(), ScOutlineTable::GetRowArray(), ScOutlineEntry::GetStart(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), i, ScDocument::InvalidatePageBreaks(), comphelper::LibreOfficeKit::isActive(), ScOutlineEntry::IsHidden(), ScDocument::IsUndoEnabled(), lcl_InvalidateOutliner(), lcl_PaintWidthHeight(), ScDocument::MaxCol(), ScDocument::MaxRow(), NONE, ScDBFunc::OnLOKShowHideColRow(), rDocShell, ScDocument::RowFiltered(), SCDOCMODE_UNDO, ScDocShell::SetDocumentModified(), ScDocument::SetDrawPageSize(), ScOutlineEntry::SetHidden(), ScOutlineArray::SetVisibleBelow(), ScDocument::ShowCol(), ScDocument::ShowRows(), and ScDocument::UpdatePageBreaks().
Referenced by ScDBFunc::ShowOutline().
|
private |
Definition at line 30 of file olinefun.hxx.
Referenced by AutoOutline(), HideMarkedOutlines(), HideOutline(), MakeOutline(), RemoveAllOutlines(), RemoveOutline(), SelectLevel(), ShowMarkedOutlines(), and ShowOutline().