LibreOffice Module svx (master) 1
|
#include <svdmark.hxx>
Public Member Functions | |
SdrMarkList () | |
SdrMarkList (const SdrMarkList &rLst) | |
~SdrMarkList () | |
void | Clear () |
void | ForceSort () const |
void | SetUnsorted () |
size_t | GetMarkCount () const |
SdrMark * | GetMark (size_t nNum) const |
size_t | FindObject (const SdrObject *pObj) const |
void | InsertEntry (const SdrMark &rMark, bool bChkSort=true) |
void | DeleteMark (size_t nNum) |
void | ReplaceMark (const SdrMark &rNewMark, size_t nNum) |
void | Merge (const SdrMarkList &rSrcList, bool bReverse=false) |
bool | DeletePageView (const SdrPageView &rPV) |
bool | InsertPageView (const SdrPageView &rPV) |
void | SetNameDirty () |
const OUString & | GetMarkDescription () const |
const OUString & | GetPointMarkDescription () const |
const OUString & | GetGluePointMarkDescription () const |
bool | TakeBoundRect (SdrPageView const *pPageView, tools::Rectangle &rRect) const |
bool | TakeSnapRect (SdrPageView const *pPageView, tools::Rectangle &rRect) const |
SdrMarkList & | operator= (const SdrMarkList &rLst) |
Private Member Functions | |
SVX_DLLPRIVATE void | ImpForceSort () |
SVX_DLLPRIVATE const OUString & | GetPointMarkDescription (bool bGlue) const |
Private Attributes | |
std::vector< std::unique_ptr< SdrMark > > | maList |
OUString | maMarkName |
OUString | maPointName |
OUString | maGluePointName |
bool | mbPointNameOk |
bool | mbGluePointNameOk |
bool | mbNameOk |
bool | mbSorted |
Definition at line 136 of file svdmark.hxx.
|
inline |
Definition at line 153 of file svdmark.hxx.
|
inline |
Definition at line 161 of file svdmark.hxx.
|
inline |
Definition at line 166 of file svdmark.hxx.
References Clear().
void SdrMarkList::Clear | ( | ) |
Definition at line 201 of file svdmark.cxx.
References maList, mbSorted, and SetNameDirty().
Referenced by SdrEditView::CopyMarkedObj(), SdrEditView::DeleteMarkedObj(), operator=(), FmXFormView::restoreMarkList(), FmXFormView::saveMarkList(), and SdrMarkView::UnmarkAllObj().
void SdrMarkList::DeleteMark | ( | size_t | nNum | ) |
Definition at line 316 of file svdmark.cxx.
References DBG_ASSERT, GetMark(), maList, mbSorted, and SetNameDirty().
Referenced by SdrMarkView::CheckMarked(), SdrEditView::DoImportMarkedMtf(), SdrEditView::GroupMarked(), SdrMarkView::MarkNextObj(), SdrMarkView::MarkObj(), FmXFormView::ObjectRemovedInAliveMode(), SdrEditView::PutMarkedBehindObj(), SdrEditView::PutMarkedInFrontOfObj(), and SdrEditView::UnGroupMarked().
bool SdrMarkList::DeletePageView | ( | const SdrPageView & | rPV | ) |
Definition at line 372 of file svdmark.cxx.
References SdrMark::GetPageView(), maList, and SetNameDirty().
Referenced by SdrMarkView::HideSdrPage(), InsertPageView(), and SdrMarkView::UnmarkAllObj().
size_t SdrMarkList::FindObject | ( | const SdrObject * | pObj | ) | const |
Definition at line 235 of file svdmark.cxx.
void SdrMarkList::ForceSort | ( | ) | const |
Definition at line 142 of file svdmark.cxx.
References ImpForceSort(), and mbSorted.
Referenced by SdrEditView::CombineMarkedObjects(), SdrEditView::CopyMarkedObj(), SdrEditView::DeleteMarkedList(), and SdrEditView::MergeMarkedObjects().
|
inline |
Definition at line 208 of file svdmark.hxx.
SdrMark * SdrMarkList::GetMark | ( | size_t | nNum | ) | const |
Definition at line 230 of file svdmark.cxx.
References maList.
Referenced by SdrDragMethod::AddConnectorOverlays(), SdrObjEditView::ApplyFormatPaintBrush(), svxform::NavigatorTreeModel::BroadcastMarkedObjects(), svx::checkForSelectedCustomShapes(), svx::checkForSelectedFontWork(), SvxXConnectionPreview::Construct(), SdrEditView::CopyMarkedObj(), E3dView::CreateMarkedObjModel(), DeleteMark(), SdrEditView::DeleteMarkedList(), SdrEditView::DeleteMarkedObj(), SvxGraphCtrlAccessibleContext::deselectAccessibleChild(), SdrEditView::DoImportMarkedMtf(), E3dDragMethod::E3dDragMethod(), SdrDragCrook::EndSdrDrag(), SdrDragCrop::EndSdrDrag(), SdrEditView::EqualizeMarkedObjects(), svx::MediaShellHelpers::Execute(), svx::FontworkBar::execute(), svx::ExtrusionBar::execute(), SvxGrafAttrHelper::ExecuteGrafAttr(), svx::sidebar::SelectionAnalyzer::GetContextForSelection_SC(), svx::sidebar::SelectionAnalyzer::GetContextForSelection_SD(), getExtrusionColorState(), getExtrusionDepthState(), getExtrusionDirectionState(), getExtrusionLightingDirectionState(), getExtrusionLightingIntensityState(), getExtrusionProjectionState(), getExtrusionSurfaceState(), SdrEditView::GetGeoAttrFromMarked(), SvxGrafAttrHelper::GetGrafAttrState(), svx::sidebar::SelectionAnalyzer::GetInventorTypeFromMark(), GetMarkDescription(), FmFormView::getMarkedGrid(), svx::sidebar::SelectionAnalyzer::GetObjectTypeFromMark(), GetPointMarkDescription(), SvxGraphCtrlAccessibleContext::getSelectedAccessibleChild(), GraphCtrl::GetSelectedSdrObject(), svx::MediaShellHelpers::GetState(), SvxDrawPage::group(), SdrEditView::ImpBroadcastEdgesOfMarkedNodes(), SdrObjListIter::ImpProcessMarkList(), InsertEntry(), isControlList(), SdrView::MarkAll(), SdrObjEditView::MarkListHasChanged(), SdrDragMove::MoveSdrDrag(), svx::sidebar::PosSizePropertyPanel::NotifyItemUpdate(), FmXFormView::ObjectRemovedInAliveMode(), sdr::table::SvxTableController::onSelectionHasChanged(), operator=(), ReplaceMark(), FmXFormView::restoreMarkList(), FmXFormView::saveMarkList(), SdrUndoObjSetText::SdrRepeat(), SetAlignmentState(), SetCharacterSpacingState(), SetFontWorkShapeTypeState(), SdrEditView::SetGeoAttrToMarked(), SetKernCharacterPairsState(), svx::SignatureLineHelper::setShapeCertificate(), TakeBoundRect(), SdrObjEditView::TakeFormatPaintBrush(), and TakeSnapRect().
|
inline |
Definition at line 178 of file svdmark.hxx.
Referenced by SdrDragMethod::AddConnectorOverlays(), svxform::NavigatorTreeModel::BroadcastMarkedObjects(), svx::checkForSelectedCustomShapes(), svx::checkForSelectedFontWork(), IMapWindow::Command(), SvxXConnectionPreview::Construct(), SdrEditView::CopyMarkedObj(), SdrEditView::DeleteMarkedList(), SdrEditView::DeleteMarkedObj(), SvxGraphCtrlAccessibleContext::deselectAccessibleChild(), SdrDragMethod::DoAddConnectorOverlays(), SdrEditView::DoImportMarkedMtf(), E3dDragMethod::E3dDragMethod(), SdrDragCrook::EndSdrDrag(), SdrDragCrop::EndSdrDrag(), SdrEditView::EqualizeMarkedObjects(), svx::MediaShellHelpers::Execute(), svx::FontworkBar::execute(), svx::ExtrusionBar::execute(), SvxGrafAttrHelper::ExecuteGrafAttr(), E3dView::Get3DAttributes(), svx::sidebar::SelectionAnalyzer::GetContextForSelection_SC(), svx::sidebar::SelectionAnalyzer::GetContextForSelection_SD(), getExtrusionColorState(), getExtrusionDepthState(), getExtrusionDirectionState(), getExtrusionLightingDirectionState(), getExtrusionLightingIntensityState(), getExtrusionProjectionState(), getExtrusionSurfaceState(), SdrEditView::GetGeoAttrFromMarked(), SvxGrafAttrHelper::GetGrafAttrState(), svx::sidebar::SelectionAnalyzer::GetInventorTypeFromMark(), GetMarkDescription(), FmFormView::getMarkedGrid(), svx::sidebar::SelectionAnalyzer::GetObjectTypeFromMark(), GetPointMarkDescription(), SvxGraphCtrlAccessibleContext::getSelectedAccessibleChildCount(), GraphCtrl::GetSelectedSdrObject(), svx::MediaShellHelpers::GetState(), SvxDrawPage::group(), SdrEditView::ImpBroadcastEdgesOfMarkedNodes(), SdrObjListIter::ImpProcessMarkList(), isControlList(), SdrView::MarkAll(), SdrObjEditView::MarkListHasChanged(), SdrDragMove::MoveSdrDrag(), svx::sidebar::PosSizePropertyPanel::NotifyItemUpdate(), FmXFormView::ObjectRemovedInAliveMode(), sdr::table::SvxTableController::onSelectionHasChanged(), operator=(), FmXFormView::restoreMarkList(), FmXFormView::saveMarkList(), SdrUndoObjSetText::SdrRepeat(), E3dView::Set3DAttributes(), SetAlignmentState(), SetCharacterSpacingState(), SetFontWorkShapeTypeState(), SdrEditView::SetGeoAttrToMarked(), SetKernCharacterPairsState(), svx::SignatureLineHelper::setShapeCertificate(), TakeBoundRect(), SdrObjEditView::TakeFormatPaintBrush(), and TakeSnapRect().
const OUString & SdrMarkList::GetMarkDescription | ( | ) | const |
Definition at line 416 of file svdmark.cxx.
References DynCastSdrTextObj(), GetMark(), GetMarkCount(), SdrMark::GetMarkedSdrObj(), i, SdrTextObj::IsTextFrame(), maMarkName, mbNameOk, nCount, SvxResId(), SdrObject::TakeObjNamePlural(), and SdrObject::TakeObjNameSingul().
Referenced by SdrEditView::CombineMarkedObjects(), SdrEditView::DismantleMarkedObjects(), SdrEditView::DoImportMarkedMtf(), SdrEditView::EqualizeMarkedObjects(), and SdrEditView::MergeMarkedObjects().
|
inline |
Definition at line 203 of file svdmark.hxx.
|
private |
Definition at line 478 of file svdmark.cxx.
References DynCastSdrTextObj(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), GetMark(), GetMarkCount(), SdrMark::GetMarkedGluePoints(), SdrMark::GetMarkedPoints(), SdrMark::GetMarkedSdrObj(), i, SdrTextObj::IsTextFrame(), maGluePointName, maPointName, mbGluePointNameOk, mbPointNameOk, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), SvxResId(), SdrObject::TakeObjNamePlural(), and SdrObject::TakeObjNameSingul().
|
private |
Definition at line 150 of file svdmark.cxx.
References count, SdrMark::GetMarkedSdrObj(), i, ImpSdrMarkListSorter(), SdrMark::IsCon1(), SdrMark::IsCon2(), maList, mbSorted, nCount, SdrMark::SetCon1(), and SdrMark::SetCon2().
Referenced by ForceSort().
void SdrMarkList::InsertEntry | ( | const SdrMark & | rMark, |
bool | bChkSort = true |
||
) |
Definition at line 260 of file svdmark.cxx.
References GetMark(), SdrMark::GetMarkedSdrObj(), SdrObject::GetOrdNum(), SdrObject::getParentSdrObjListFromSdrObject(), SdrMark::IsCon1(), SdrMark::IsCon2(), maList, mbSorted, nCount, SdrMark::SetCon1(), SdrMark::SetCon2(), and SetNameDirty().
Referenced by SdrEditView::CombineMarkedObjects(), SdrEditView::CopyMarkedObj(), SdrEditView::DeleteMarkedObj(), SdrEditView::DismantleMarkedObjects(), SdrEditView::DoImportMarkedMtf(), SdrEditView::GroupMarked(), SdrMarkView::MarkNextObj(), SdrMarkView::MarkObj(), Merge(), SdrEditView::MergeMarkedObjects(), SdrEditView::PutMarkedBehindObj(), SdrEditView::PutMarkedInFrontOfObj(), and SdrEditView::UnGroupMarked().
bool SdrMarkList::InsertPageView | ( | const SdrPageView & | rPV | ) |
Definition at line 393 of file svdmark.cxx.
References DeletePageView(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdrPageView::GetObjList(), SdrPageView::IsObjMarkable(), maList, and SetNameDirty().
void SdrMarkList::Merge | ( | const SdrMarkList & | rSrcList, |
bool | bReverse = false |
||
) |
Definition at line 343 of file svdmark.cxx.
References i, InsertEntry(), maList, mbSorted, and nCount.
Referenced by SdrEditView::GroupMarked(), and SdrEditView::UnGroupMarked().
SdrMarkList & SdrMarkList::operator= | ( | const SdrMarkList & | rLst | ) |
Definition at line 208 of file svdmark.cxx.
References Clear(), GetMark(), GetMarkCount(), i, maGluePointName, maList, maMarkName, maPointName, mbNameOk, mbPointNameOk, and mbSorted.
void SdrMarkList::ReplaceMark | ( | const SdrMark & | rNewMark, |
size_t | nNum | ||
) |
Definition at line 330 of file svdmark.cxx.
References DBG_ASSERT, GetMark(), maList, mbSorted, and SetNameDirty().
Referenced by SdrEditView::ImpConvertTo().
|
inline |
Definition at line 193 of file svdmark.hxx.
Referenced by Clear(), DeleteMark(), DeletePageView(), InsertEntry(), InsertPageView(), SdrMarkView::MarkListHasChanged(), SdrMarkView::ModelHasChanged(), ReplaceMark(), and SdrObjEditView::SdrEndTextEdit().
|
inline |
Definition at line 173 of file svdmark.hxx.
Referenced by SdrMarkView::ModelHasChanged().
bool SdrMarkList::TakeBoundRect | ( | SdrPageView const * | pPageView, |
tools::Rectangle & | rRect | ||
) | const |
Definition at line 588 of file svdmark.cxx.
References SdrObject::GetCurrentBoundRect(), GetMark(), GetMarkCount(), SdrMark::GetMarkedSdrObj(), SdrMark::GetPageView(), i, and tools::Rectangle::Union().
Referenced by SdrMarkView::SetMarkRects().
bool SdrMarkList::TakeSnapRect | ( | SdrPageView const * | pPageView, |
tools::Rectangle & | rRect | ||
) | const |
Definition at line 619 of file svdmark.cxx.
References GetMark(), GetMarkCount(), SdrMark::GetMarkedSdrObj(), SdrMark::GetPageView(), SdrObject::GetSnapRect(), i, and tools::Rectangle::Union().
|
private |
Definition at line 142 of file svdmark.hxx.
Referenced by GetPointMarkDescription(), and operator=().
|
private |
Definition at line 138 of file svdmark.hxx.
Referenced by Clear(), DeleteMark(), DeletePageView(), FindObject(), GetMark(), ImpForceSort(), InsertEntry(), InsertPageView(), Merge(), operator=(), and ReplaceMark().
|
private |
Definition at line 140 of file svdmark.hxx.
Referenced by GetMarkDescription(), and operator=().
|
private |
Definition at line 141 of file svdmark.hxx.
Referenced by GetPointMarkDescription(), and operator=().
|
private |
Definition at line 145 of file svdmark.hxx.
Referenced by GetPointMarkDescription().
|
private |
Definition at line 146 of file svdmark.hxx.
Referenced by GetMarkDescription(), and operator=().
|
private |
Definition at line 144 of file svdmark.hxx.
Referenced by GetPointMarkDescription(), and operator=().
|
private |
Definition at line 147 of file svdmark.hxx.
Referenced by Clear(), DeleteMark(), ForceSort(), ImpForceSort(), InsertEntry(), Merge(), operator=(), and ReplaceMark().