LibreOffice Module sc (master)
1
|
#include <drwlayer.hxx>
Static Public Member Functions | |
static void | MirrorRectRTL (tools::Rectangle &rRect) |
static tools::Rectangle | GetCellRect (const ScDocument &rDoc, const ScAddress &rPos, bool bMergedCell) |
Returns the rectangle for the passed cell address in 1/100 mm. More... | |
static OUString | GetVisibleName (const SdrObject *pObj) |
static bool | IsCellAnchored (const SdrObject &rObj) |
static bool | IsResizeWithCell (const SdrObject &rObj) |
static void | SetPageAnchored (SdrObject &) |
static void | SetCellAnchored (SdrObject &, const ScDrawObjData &rAnchor) |
static void | SetNonRotatedAnchor (SdrObject &, const ScDrawObjData &rAnchor) |
static void | GetCellAnchorFromPosition (const tools::Rectangle &rRectangle, ScDrawObjData &rAnchor, const ScDocument &rDoc, SCTAB nTab, bool bHiddenAsZero=true) |
static void | SetCellAnchoredFromPosition (SdrObject &rObj, const ScDocument &rDoc, SCTAB nTab, bool bResizeWithCell) |
static void | UpdateCellAnchorFromPositionEnd (const SdrObject &rObj, ScDrawObjData &rAnchor, const ScDocument &rDoc, SCTAB nTab, bool bUseLogicRect=true) |
static ScAnchorType | GetAnchorType (const SdrObject &) |
static ScDrawObjData * | GetObjData (SdrObject *pObj, bool bCreate=false) |
static ScDrawObjData * | GetNonRotatedObjData (SdrObject *pObj, bool bCreate=false) |
static ScDrawObjData * | GetObjDataTab (SdrObject *pObj, SCTAB nTab) |
static bool | IsNoteCaption (SdrObject *pObj) |
Returns true, if the passed object is the caption of a cell note. More... | |
static ScDrawObjData * | GetNoteCaptionData (SdrObject *pObj, SCTAB nTab) |
Returns the object data, if the passed object is a cell note caption. More... | |
static ScMacroInfo * | GetMacroInfo (SdrObject *pObj, bool bCreate=false) |
static void | SetGlobalDrawPersist (SfxObjectShell *pPersist) |
![]() | |
static void | SetTextDefaults (SfxItemPool *pItemPool, sal_Int32 nDefTextHgt) |
static OUString | GetUnitString (FieldUnit eUnit) |
static OUString | GetAngleString (Degree100 nAngle) |
static OUString | GetPercentString (const Fraction &rVal) |
static void | MigrateItemSet (const SfxItemSet *pSourceSet, SfxItemSet *pDestSet, SdrModel *pNewModel) |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Private Member Functions | |
void | MoveCells (SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCCOL nDx, SCROW nDy, bool bUpdateNoteCaptionPos) |
void | ResizeLastRectFromAnchor (const SdrObject *pObj, ScDrawObjData &rData, bool bNegativePage, bool bCanResize) |
virtual css::uno::Reference< css::uno::XInterface > | createUnoModel () override |
Private Attributes | |
OUString | aName |
ScDocument * | pDoc |
std::unique_ptr< SdrUndoGroup > | pUndoGroup |
bool | bRecording |
bool | bAdjustEnabled |
bool | bHyphenatorSet |
Static Private Attributes | |
static SfxObjectShell * | pGlobalDrawPersist = nullptr |
Definition at line 97 of file drwlayer.hxx.
ScDrawLayer::ScDrawLayer | ( | ScDocument * | pDocument, |
const OUString & | rName | ||
) |
Definition at line 231 of file drwlayer.cxx.
References aName, EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_PARA_ASIANCJKSPACING(), EE_PARA_WRITINGDIR(), SdrModel::EnableUndo(), false, SfxItemPool::FreezeIdRanges(), o3tl::strong_int< UNDERLYING_TYPE, PHANTOM_TYPE >::get(), SvxColorListItem::GetColorList(), SdrLayerAdmin::GetControlLayerName(), ScDocument::GetDocumentShell(), SdrModel::GetDrawOutliner(), Outliner::GetEditTextObjectPool(), SdrModel::GetHitTestOutliner(), SfxShell::GetItem(), SdrModel::GetItemPool(), AllSettings::GetLanguageTag(), LanguageTag::getLanguageType(), SdrModel::GetLayerAdmin(), SfxItemPool::GetSecondaryPool(), Application::GetSettings(), XColorList::GetStdColorList(), MsLangId::isKorean(), ScDocument::IsUndoEnabled(), LANGUAGE_JAPANESE, LINK, SdrModel::m_pItemPool, makeSdrShadowXDistItem(), makeSdrShadowYDistItem(), SdrLayerAdmin::NewLayer(), nInst, pDoc, pGlobalDrawPersist, SC_LAYER_BACK(), SC_LAYER_CONTROLS(), SC_LAYER_FRONT(), SC_LAYER_HIDDEN(), SC_LAYER_INTERN(), SC_MOD, Outliner::SetCalcFieldValueHdl(), SfxItemPool::SetDefaultMetric(), FmFormModel::SetObjectShell(), SfxItemPool::SetPoolDefaultItem(), SdrModel::SetPropertyList(), SdrModel::SetScaleUnit(), SdrModel::SetSwapGraphics(), and SdrModel::SetVOCInvalidationIsReliable().
Referenced by AllocModel().
|
overridevirtual |
Definition at line 325 of file drwlayer.cxx.
References SdrModel::ClearModel(), nInst, pF3d, and pUndoGroup.
void ScDrawLayer::AddCalcUndo | ( | std::unique_ptr< SdrUndoAction > | pUndo | ) |
Definition at line 1415 of file drwlayer.cxx.
References bRecording, and pUndoGroup.
Referenced by CopyFromClip(), ScPostIt::CreateCaption(), ScDetectiveFunc::DeleteAll(), ScDetectiveFunc::DeleteArrowsAt(), ScDetectiveFunc::DeleteBox(), ScDetectiveFunc::DeleteCirclesAt(), DeleteObjectsInArea(), DeleteObjectsInSelection(), ScDetectiveFunc::DrawCircle(), ScDetectiveFunc::InsertArrow(), ScDetectiveFunc::InsertToOtherTab(), MirrorRTL(), MoveCells(), MoveRTL(), ScDocFunc::NotifyDrawUndo(), RecalcPos(), ScCaptionPtr::removeFromDrawPageAndFree(), ScAddPage(), ScCopyPage(), and ScRemovePage().
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 370 of file drwlayer.cxx.
References aName, and ScDrawLayer().
|
overridevirtual |
Reimplemented from FmFormModel.
Definition at line 353 of file drwlayer.cxx.
Referenced by ScAddPage().
void ScDrawLayer::BeginCalcUndo | ( | bool | bDisableTextEditUsesCommonUndoManager | ) |
Definition at line 1426 of file drwlayer.cxx.
References bRecording, pUndoGroup, and SdrModel::SetDisableTextEditUsesCommonUndoManager().
Referenced by ScDrawView::DeleteMarked(), ScDocFunc::DetectiveRefresh(), ScViewFunc::EditNote(), ScDocFunc::ReplaceNote(), and FuText::StopEditMode().
void ScDrawLayer::CopyFromClip | ( | ScDrawLayer * | pClipModel, |
SCTAB | nSourceTab, | ||
const tools::Rectangle & | rSourceRange, | ||
const ScAddress & | rDestPos, | ||
const tools::Rectangle & | rDestRange | ||
) |
Definition at line 1799 of file drwlayer.cxx.
References AddCalcUndo(), ScRange::aStart, bDrawIsInUndo, bRecording, SdrObject::CloneSdrObject(), tools::Rectangle::Contains(), ScRange::Contains(), ScChartHelper::GetChartFromSdrObject(), ScDocument::GetChartRanges(), SdrObject::GetCurrentBoundRect(), GetDocument(), tools::Rectangle::GetHeight(), SdrObject::GetLayer(), ScDocument::GetName(), GetObjData(), SdrModel::GetPage(), ScDocument::GetPool(), tools::Rectangle::GetWidth(), SdrObjList::InsertObject(), SotExchange::IsChart(), ScDocument::IsClipboard(), IsNoteCaption(), lcl_getClipRangeFromClipDoc(), lcl_IsAllInRange(), lcl_MoveRanges(), tools::Rectangle::Left(), ScDrawObjData::maStart, MirrorRectRTL(), MirrorRTL(), SdrObjListIter::Next(), Point, ScDocument::RenameTab(), tools::Rectangle::Right(), SC_LAYER_INTERN(), ScDocument::SetChartRanges(), ScAddress::Tab(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), and ScDocument::ValidNewTabName().
Referenced by ScTable::CopyOneCellFromClip().
void ScDrawLayer::CopyToClip | ( | ScDocument * | pClipDoc, |
SCTAB | nTab, | ||
const tools::Rectangle & | rRange | ||
) |
Definition at line 1689 of file drwlayer.cxx.
References SdrObject::CloneSdrObject(), tools::Rectangle::Contains(), ScRange::Contains(), ScChartHelper::GetChartFromSdrObject(), SdrObject::GetCurrentBoundRect(), ScDocument::GetDrawLayer(), SdrObject::GetLayer(), GetObjData(), SdrModel::GetPage(), ScDocument::InitDrawLayer(), SdrObjList::InsertObject(), IsNoteCaption(), lcl_getClipRangeFromClipDoc(), ScDrawObjData::maStart, SdrObjListIter::Next(), and SC_LAYER_INTERN().
|
overrideprivatevirtual |
Reimplemented from SdrModel.
Definition at line 2668 of file drwlayer.cxx.
References ScDocument::GetDocumentShell(), and SfxObjectShell::GetModel().
void ScDrawLayer::DeleteObjectsInArea | ( | SCTAB | nTab, |
SCCOL | nCol1, | ||
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
bool | bAnchored = false |
||
) |
Definition at line 1541 of file drwlayer.cxx.
References AddCalcUndo(), tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), bRecording, tools::Rectangle::Contains(), GetAnchorType(), SdrObject::GetCurrentBoundRect(), SdrObject::GetLogicRect(), ScDocument::GetMMRect(), SdrObjList::GetObjCount(), GetObjData(), SdrModel::GetPage(), IsNoteCaption(), ScDrawObjData::meType, SdrObjListIter::Next(), p, pObject, SdrObjList::RecalcObjOrdNums(), SdrObjList::RemoveObject(), SCA_CELL, SCA_CELL_RESIZE, and ScDrawObjData::ValidationCircle.
void ScDrawLayer::DeleteObjectsInSelection | ( | const ScMarkData & | rMark | ) |
Definition at line 1613 of file drwlayer.cxx.
References AddCalcUndo(), ScRange::aEnd, ScRange::aStart, bRecording, ScAddress::Col(), tools::Rectangle::Contains(), GetAnchorType(), SdrObject::GetCurrentBoundRect(), ScDocument::GetMMRect(), ScMarkData::GetMultiMarkArea(), SdrObjList::GetObjCount(), GetObjData(), SdrModel::GetPage(), ScDocument::GetRange(), ScDocument::GetTableCount(), ScMarkData::IsMultiMarked(), IsNoteCaption(), ScDrawObjData::maStart, SdrObjListIter::Next(), p, pObject, SdrObjList::RecalcObjOrdNums(), SdrObjList::RemoveObject(), ScAddress::Row(), SCA_CELL, and SCA_CELL_RESIZE.
|
inline |
Definition at line 138 of file drwlayer.hxx.
Referenced by EnableDrawAdjust().
void ScDrawLayer::EnsureGraphicNames | ( | ) |
Definition at line 2221 of file drwlayer.cxx.
References SdrObject::GetName(), GetNewGraphicName(), SdrObject::GetObjIdentifier(), SdrModel::GetPage(), SdrModel::GetPageCount(), SdrObjListIter::Next(), pObject, and SdrObject::SetName().
|
static |
Definition at line 2446 of file drwlayer.cxx.
References GetObjData(), ScDrawObjData::mbResizeWithCell, SCA_CELL, SCA_CELL_RESIZE, and SCA_PAGE.
Referenced by DeleteObjectsInArea(), DeleteObjectsInSelection(), ScDrawView::FitToCellSize(), ScDrawView::GetAnchorType(), GetEditAs(), ScShapeObj::getPropertyValue(), XclExpDffSheetAnchor::ImplSetFlags(), InitializeCellAnchoredObj(), and ScShapeObj::setPropertyValue().
std::unique_ptr< SdrUndoGroup > ScDrawLayer::GetCalcUndo | ( | ) |
Definition at line 1433 of file drwlayer.cxx.
References bRecording, pUndoGroup, and SdrModel::SetDisableTextEditUsesCommonUndoManager().
Referenced by ScDrawView::DeleteMarked(), ScDocFunc::DetectiveRefresh(), GetSdrUndoAction(), ScDocFunc::MergeCells(), ScDocFunc::ReplaceNote(), and FuText::StopEditMode().
|
static |
Definition at line 2371 of file drwlayer.cxx.
References ScRange::aEnd, ScRange::aStart, tools::Rectangle::Bottom(), ScAddress::Col(), ScDocument::GetMMRect(), ScDocument::GetRange(), tools::Rectangle::IsEmpty(), ScDocument::IsNegativePage(), tools::Rectangle::Left(), ScDrawObjData::maEnd, ScDrawObjData::maEndOffset, ScDrawObjData::maStart, ScDrawObjData::maStartOffset, tools::Rectangle::Right(), ScAddress::Row(), ScAddress::Tab(), and tools::Rectangle::Top().
Referenced by ScDrawView::calculateGridOffsetForB2DRange(), ScDrawView::calculateGridOffsetForSdrObject(), InitializeCellAnchoredObj(), MirrorRTL(), SetCellAnchoredFromPosition(), and ScDrawView::SyncForGrid().
|
static |
Returns the rectangle for the passed cell address in 1/100 mm.
bMergedCell | True = regards merged cells. False = use single column/row size. |
Definition at line 2107 of file drwlayer.cxx.
References ATTR_MERGE(), ScAddress::Col(), o3tl::convert(), ScDocument::GetAttr(), ScMergeAttr::GetColMerge(), ScDocument::GetColWidth(), ScDocument::GetRowHeight(), ScMergeAttr::GetRowMerge(), ScAddress::IncCol(), ScAddress::IncRow(), ScDocument::IsNegativePage(), MirrorRectRTL(), o3tl::mm100, Point, ScAddress::Row(), ScAddress::Tab(), o3tl::twip, and ScDocument::ValidColRowTab().
Referenced by ScPostIt::CreateCaptionFromInitData(), ScNoteUtil::CreateNoteFromObjectData(), ScDetectiveFunc::DeleteCirclesAt(), ScDetectiveFunc::DrawCircle(), ScDrawView::FitToCellSize(), RecalcPos(), ResizeLastRectFromAnchor(), and ScDrawObjData::setShapeRect().
|
inline |
Definition at line 130 of file drwlayer.hxx.
Referenced by CopyFromClip(), ScDrawShell::ExecDrawFunc(), ScShapeObj::getAnchor(), ScShapeObj::getParent(), ScShapeObj::getPropertyValue(), IMPL_LINK(), InitializeCellAnchoredObj(), ScTabView::MakeDrawView(), MirrorRTL(), MoveRTL(), ScDocFunc::NotifyDrawUndo(), RecalcPos(), ResizeLastRectFromAnchor(), and ScShapeObj::setPropertyValue().
|
static |
Definition at line 2641 of file drwlayer.cxx.
References SdrObject::AppendUserData(), and SC_UD_MACRODATA.
Referenced by ScDrawShell::ExecuteMacroAssign(), FuDraw::ForcePointer(), FuSelection::MouseButtonDown(), ShapeInteractionHelper::PopulateShapeInteractionInfo(), XclImpDrawObjBase::PreProcessSdrObject(), ScShapeObj_getShapeHyperMacroInfo(), and XclExpShapeObj::XclExpShapeObj().
SdrObject * ScDrawLayer::GetNamedObject | ( | std::u16string_view | rName, |
SdrObjKind | nId, | ||
SCTAB & | rFoundTab | ||
) | const |
Definition at line 2172 of file drwlayer.cxx.
References SdrObject::GetObjIdentifier(), SdrModel::GetPage(), SdrModel::GetPageCount(), IsNamedObject(), SdrObjListIter::Next(), and pObject.
Referenced by sc::TablePivotCharts::addNewByName(), ScChartsObj::addNewByName(), GetNewGraphicName(), IMPL_LINK(), and lcl_DoDragObject().
OUString ScDrawLayer::GetNewGraphicName | ( | tools::Long * | pnCounter = nullptr | ) | const |
Definition at line 2200 of file drwlayer.cxx.
References GetNamedObject(), nId, and ScResId().
Referenced by EnsureGraphicNames(), and ScDrawShell::ExecDrawFunc().
|
static |
Definition at line 2583 of file drwlayer.cxx.
References SdrObject::AppendUserData(), SdrObjUserData::GetId(), SdrObjUserData::GetInventor(), SdrObject::GetUserData(), SdrObject::GetUserDataCount(), i, and SC_UD_OBJDATA.
Referenced by ScXMLExport::CollectSharedData(), InitializeCellAnchoredObj(), MirrorRTL(), MoveCells(), MoveRTL(), RecalcPos(), ScUndoObjData::Redo(), SetCellAnchoredFromPosition(), SetNonRotatedAnchor(), ScUndoObjData::Undo(), and ScXMLExport::WriteShapes().
|
static |
Returns the object data, if the passed object is a cell note caption.
Definition at line 2635 of file drwlayer.cxx.
References ScDrawObjData::CellNote, GetObjDataTab(), and ScDrawObjData::meType.
Referenced by ScXMLExport::CollectInternalShape(), ScDrawView::GetMarkedNoteCaption(), ScShapeObj::getParent(), FuSelection::IsNoteCaptionClicked(), FuText::StopEditMode(), and ScDetectiveFunc::UpdateAllComments().
|
static |
Definition at line 2602 of file drwlayer.cxx.
References SdrObject::AppendUserData(), and SC_UD_OBJDATA.
Referenced by ScDrawView::calculateGridOffsetForSdrObject(), CopyFromClip(), CopyToClip(), DeleteObjectsInArea(), DeleteObjectsInSelection(), ScDetectiveFunc::DrawCircle(), ScGridWindow::dumpGraphicInformation(), XMLTableShapeImportHelper::finishShape(), ScDrawView::FitToCellSize(), ScChildrenShapes::GetAnchor(), GetAnchorType(), GetObjDataTab(), GetObjectsAnchoredToCols(), GetObjectsAnchoredToRange(), GetObjectsAnchoredToRows(), HasObjectsAnchoredInRange(), ScDetectiveFunc::InsertArrow(), ScDetectiveFunc::InsertToOtherTab(), IsNoteCaption(), IsResizeWithCell(), MirrorRTL(), MoveObject(), MoveRTL(), ScUndoObjData::Redo(), ResetTab(), ScCopyPage(), SetCellAnchored(), SetCellAnchoredFromPosition(), ScTable::SetColHidden(), ScShapeObj::setPropertyValue(), ScTable::SetRowHidden(), ScDrawView::SyncForGrid(), ScUndoObjData::Undo(), and ScXMLExport::WriteShapes().
|
static |
Definition at line 2616 of file drwlayer.cxx.
References GetObjData(), ScAddress::IsValid(), ScDrawObjData::maEnd, ScDrawObjData::maStart, and ScAddress::SetTab().
Referenced by ScDrawView::AddCustomHdl(), ScXMLImport::endDocument(), ScDetectiveFunc::FindFrameForObject(), ScDetectiveFunc::GetDetectiveObjectType(), GetNoteCaptionData(), ScShapeObj::getPropertyValue(), MoveCells(), and SetPageSize().
std::vector< SdrObject * > ScDrawLayer::GetObjectsAnchoredToCols | ( | SCTAB | nTab, |
SCCOL | nStartCol, | ||
SCCOL | nEndCol | ||
) |
Definition at line 2535 of file drwlayer.cxx.
References SdrObjList::GetObjCount(), GetObjData(), SdrModel::GetPage(), ScDrawObjData::maStart, ScDocument::MaxRow(), SdrObjListIter::Next(), and pObject.
Referenced by ScTable::SetColHidden().
std::map< SCROW, std::vector< SdrObject * > > ScDrawLayer::GetObjectsAnchoredToRange | ( | SCTAB | nTab, |
SCCOL | nCol, | ||
SCROW | nStartRow, | ||
SCROW | nEndRow | ||
) |
Definition at line 2488 of file drwlayer.cxx.
References ScRange::Contains(), SdrObjList::GetObjCount(), GetObjData(), SdrModel::GetPage(), ScDrawObjData::maStart, SdrObjListIter::Next(), pObject, and ScAddress::Row().
Referenced by ScColumn::Swap().
std::vector< SdrObject * > ScDrawLayer::GetObjectsAnchoredToRows | ( | SCTAB | nTab, |
SCROW | nStartRow, | ||
SCROW | nEndRow | ||
) |
Definition at line 2464 of file drwlayer.cxx.
References SdrObjList::GetObjCount(), GetObjData(), SdrModel::GetPage(), ScDrawObjData::maStart, ScDocument::MaxCol(), SdrObjListIter::Next(), and pObject.
Referenced by ScTable::SetRowHidden().
bool ScDrawLayer::GetPrintArea | ( | ScRange & | rRange, |
bool | bSetHor, | ||
bool | bSetVer | ||
) | const |
Definition at line 1255 of file drwlayer.cxx.
References ScRange::aEnd, ScRange::aStart, tools::Rectangle::Bottom(), ScAddress::Col(), convertTwipToMm100(), ScDocument::GetColumnsRange(), ScDocument::GetColWidth(), SdrObject::GetCurrentBoundRect(), SdrObject::GetLayer(), SdrModel::GetPage(), ScDocument::GetRowForHeight(), ScDocument::GetRowHeight(), i, ScDocument::IsNegativePage(), tools::Rectangle::Left(), LONG_MAX, ScDocument::MaxCol(), ScDocument::MaxRow(), o3tl::mm100, SdrObjListIter::Next(), pObject, tools::Rectangle::Right(), ScAddress::Row(), SC_LAYER_HIDDEN(), ScAddress::SetCol(), ScAddress::SetRow(), ScAddress::Tab(), tools::Rectangle::Top(), and o3tl::toTwips().
|
static |
Definition at line 2146 of file drwlayer.cxx.
References aName, SdrObject::GetName(), and SdrObject::GetObjIdentifier().
Referenced by ScContentTree::DrawNamesChanged(), ScTabViewShell::ExecuteObject(), ScContentTree::GetDrawNames(), ScDrawView::GetObjectByName(), lcl_ParseTarget(), ScDrawView::SelectCurrentViewObject(), and ScDrawView::SelectObject().
bool ScDrawLayer::HasObjects | ( | ) | const |
Definition at line 358 of file drwlayer.cxx.
References SdrModel::GetPage(), SdrModel::GetPageCount(), i, and nCount.
Referenced by ScShapeChildren::GetDrawPage(), and ScViewFunc::PasteDataFormat().
bool ScDrawLayer::HasObjectsAnchoredInRange | ( | const ScRange & | rRange | ) |
Definition at line 2511 of file drwlayer.cxx.
References ScRange::aEnd, ScRange::aStart, ScRange::Contains(), GetObjData(), SdrModel::GetPage(), ScDrawObjData::maStart, SdrObjListIter::Next(), pObject, and ScAddress::Tab().
Referenced by ScColumn::IsDrawObjectsEmptyBlock().
Definition at line 1487 of file drwlayer.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustTop(), tools::Rectangle::Bottom(), tools::Rectangle::BottomLeft(), tools::Rectangle::Contains(), convertTwipToMm100(), SdrObjList::GetObjCount(), SdrModel::GetPage(), ScDocument::GetRowHeight(), SdrObject::GetSnapRect(), ScDocument::IsNegativePage(), MAXMM, ScDocument::MaxRow(), MirrorRectRTL(), SdrObjListIter::Next(), pObject, tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), tools::Rectangle::Top(), and tools::Rectangle::TopLeft().
Referenced by ScHTMLExport::PrepareGraphics(), ScTable::SetRowHeightRange(), and ScTable::ShowRows().
void ScDrawLayer::InitializeCellAnchoredObj | ( | SdrObject * | pObj, |
ScDrawObjData & | rData | ||
) |
Definition at line 904 of file drwlayer.cxx.
References ScDrawObjData::CellNote, ScAddress::Col(), ScDrawObjData::DetectiveArrow, FRound(), GetAnchorType(), basegfx::B2DPolygon::getB2DPoint(), GetCellAnchorFromPosition(), GetDocument(), SdrObject::GetLogicRect(), ScDocument::GetMMRect(), GetNonRotatedObjData(), SdrObject::GetObjIdentifier(), SdrObject::getSdrModelFromSdrObject(), ScDrawObjData::getShapeRect(), SdrObject::GetSnapRect(), tools::Rectangle::IsEmpty(), SdrModel::isLocked(), SdrObject::IsVisible(), tools::Rectangle::Left(), ScDrawObjData::maEnd, ScDrawObjData::maEndOffset, ScDrawObjData::maStart, ScDrawObjData::maStartOffset, ScDrawObjData::meType, SdrObject::NbcMove(), pDoc, Point, ScAddress::Row(), SCA_CELL_RESIZE, SdrModel::setLock(), ScDrawObjData::setShapeRect(), SdrObject::SetVisible(), ScAddress::Tab(), SdrMeasureObj::TakeUnrotatedSnapRect(), tools::Rectangle::Top(), UpdateCellAnchorFromPositionEnd(), and ScDrawObjData::ValidationCircle.
Referenced by ScXMLImport::endDocument().
|
static |
Definition at line 2422 of file drwlayer.cxx.
References SC_UD_OBJDATA.
Referenced by ScViewFunc::PasteDraw(), and ScUndoAnchorData::ScUndoAnchorData().
|
static |
Returns true, if the passed object is the caption of a cell note.
Definition at line 2629 of file drwlayer.cxx.
References ScDrawObjData::CellNote, GetObjData(), and ScDrawObjData::meType.
Referenced by FuSelection::ActivateNoteHandles(), CopyFromClip(), CopyToClip(), ScDetectiveFunc::DeleteAll(), DeleteObjectsInArea(), DeleteObjectsInSelection(), ScHTMLExport::FillGraphList(), ScDrawShell::GetState(), ScDocument::HasDetectiveObjects(), FuDraw::IsEditingANote(), FuSelection::IsNoteCaptionMarked(), ScDrawTextObjectBar::IsNoteEdit(), FuDraw::IsSizingOrMovingNote(), FuDraw::KeyInput(), lcl_UnLockComment(), FuSelection::MouseButtonDown(), FuText::MouseButtonDown(), FuSelection::MouseButtonUp(), ScShapeObj::ScShapeObj(), and XclEscherEx::StartShape().
|
inline |
Definition at line 142 of file drwlayer.hxx.
Referenced by ScPostIt::CreateCaption(), ScDetectiveFunc::DeleteArrowsAt(), ScDocFunc::NotifyDrawUndo(), and ScCaptionPtr::removeFromDrawPageAndFree().
|
static |
Definition at line 2429 of file drwlayer.cxx.
References GetObjData(), and ScDrawObjData::mbResizeWithCell.
Referenced by ScXMLExport::CollectSharedData(), ScViewFunc::PasteDraw(), and ScUndoAnchorData::ScUndoAnchorData().
|
static |
Definition at line 2099 of file drwlayer.cxx.
References tools::Rectangle::Left(), tools::Rectangle::Right(), tools::Rectangle::SetLeft(), and tools::Rectangle::SetRight().
Referenced by CopyFromClip(), GetCellRect(), ScDocument::GetMMRect(), ScDocument::GetRange(), ScDocShell::GetVisArea(), HasObjectsInRows(), RecalcPos(), ResizeLastRectFromAnchor(), SetCellAnchoredFromPosition(), and ScDocShell::SnapVisArea().
Definition at line 1994 of file drwlayer.cxx.
References AddCalcUndo(), SdrObjTransformInfoRec::bMirror90Allowed, bRecording, GetCellAnchorFromPosition(), GetDocument(), SdrObject::GetLogicRect(), GetNonRotatedObjData(), GetObjData(), SdrObject::GetObjIdentifier(), SdrObject::GetSnapRect(), SdrObject::IsVisible(), tools::Rectangle::Left(), ScDrawObjData::maEndOffset, ScDrawObjData::maStart, ScDrawObjData::maStartOffset, ScDrawObjData::mbResizeWithCell, SdrObject::Mirror(), SdrObject::Move(), pData, Point, tools::Rectangle::Right(), SetNonRotatedAnchor(), ScDrawObjData::setShapeRect(), ScAddress::Tab(), SdrObject::TakeObjInfo(), and tools::Rectangle::TopLeft().
Referenced by CopyFromClip(), and SetPageSize().
void ScDrawLayer::MoveArea | ( | SCTAB | nTab, |
SCCOL | nCol1, | ||
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
SCCOL | nDx, | ||
SCROW | nDy, | ||
bool | bInsDel, | ||
bool | bUpdateNoteCaptionPos | ||
) |
Definition at line 1441 of file drwlayer.cxx.
References bAdjustEnabled, ScDocument::GetColWidth(), ScDocument::GetMMRect(), ScDocument::GetRowHeight(), ScDocument::IsNegativePage(), lcl_ReverseTwipsToMM(), MoveCells(), Point, and tools::Rectangle::TopLeft().
Referenced by ScTable::UpdateDrawRef().
|
private |
Definition at line 507 of file drwlayer.cxx.
References AddCalcUndo(), GetNonRotatedObjData(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), GetObjDataTab(), SdrModel::GetPage(), i, ScAddress::IncCol(), ScAddress::IncRow(), IsInBlock(), ScDocument::IsNegativePage(), ScAddress::IsValid(), ScDrawObjData::maEnd, ScDrawObjData::maStart, nCount, pData, pDoc, ScAddress::PutInOrder(), and RecalcPos().
Referenced by MoveArea().
Definition at line 2559 of file drwlayer.cxx.
References ScAddress::Col(), GetObjData(), ScAddress::IncCol(), ScAddress::IncRow(), ScDrawObjData::maEnd, ScDrawObjData::maStart, RecalcPos(), and ScAddress::Row().
Referenced by ScColumn::UpdateDrawObjectsForRow().
Definition at line 2081 of file drwlayer.cxx.
References AddCalcUndo(), bRecording, GetDocument(), SdrObject::GetLogicRect(), GetNonRotatedObjData(), GetObjData(), SdrObject::GetSnapRect(), SdrObject::IsVisible(), tools::Rectangle::Left(), SdrObject::Move(), pData, tools::Rectangle::Right(), and ScDrawObjData::setShapeRect().
Referenced by SetPageSize().
void ScDrawLayer::RecalcPos | ( | SdrObject * | pObj, |
ScDrawObjData & | rData, | ||
bool | bNegativePage, | ||
bool | bUpdateNoteCaptionPos | ||
) |
Definition at line 1021 of file drwlayer.cxx.
References AddCalcUndo(), tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), SdrObject::AdjustToMaxRect(), tools::Rectangle::AdjustTop(), basegfx::B2DPolygon::append(), bRecording, SdrObject::BroadcastObjectChange(), ScDrawObjData::CellNote, ScAddress::Col(), ScDocument::ColHidden(), convertTwipToMm100(), DET_ARROW_OFFSET, ScDrawObjData::DetectiveArrow, GetCellRect(), ScDocument::GetColOffset(), ScDocument::GetColWidth(), GetDocument(), tools::Rectangle::GetHeight(), SdrObject::GetLogicRect(), GetNonRotatedObjData(), ScDocument::GetNote(), SdrObject::GetObjIdentifier(), SdrObject::GetPoint(), SdrObject::GetRelativePos(), ScDocument::GetRowHeight(), ScDocument::GetRowOffset(), SdrObject::getSdrModelFromSdrObject(), ScDrawObjData::getShapeRect(), SdrObject::GetSnapRect(), tools::Rectangle::GetWidth(), SdrModel::isLocked(), SdrObject::IsPolyObj(), SdrObject::IsResizeProtect(), ScAddress::IsValid(), SdrObject::IsVisible(), tools::Rectangle::Left(), ScDrawObjData::maEnd, ScDrawObjData::maStart, ScDrawObjData::mbResizeWithCell, ScDrawObjData::meType, MirrorRectRTL(), SdrObject::NbcMove(), SdrObject::NbcResize(), Point, ResizeLastRectFromAnchor(), ScAddress::Row(), ScDocument::RowHidden(), SdrModel::setLock(), SdrObject::SetLogicRect(), SdrObject::SetPoint(), SdrObject::SetRelativePos(), ScDrawObjData::setShapeRect(), SdrObject::SetSnapRect(), ScAddress::Tab(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), UpdateCellAnchorFromPositionEnd(), and ScDrawObjData::ValidationCircle.
Referenced by ScXMLImport::endDocument(), MoveCells(), MoveObject(), and SetPageSize().
Definition at line 471 of file drwlayer.cxx.
References GetObjData(), SdrModel::GetPage(), SdrModel::GetPageCount(), i, ScDrawObjData::maEnd, ScDrawObjData::maStart, SdrObjListIter::Next(), pData, and ScAddress::SetTab().
Referenced by ScAddPage(), ScCopyPage(), ScMovePage(), and ScRemovePage().
|
private |
Definition at line 751 of file drwlayer.cxx.
References vcl::unotools::b2DRectangleFromRectangle(), tools::Rectangle::Bottom(), ScAddress::Col(), convertTwipToMm100(), basegfx::fround(), GetCellRect(), ScDocument::GetColOffset(), GetDocument(), tools::Rectangle::GetHeight(), ScDrawObjData::getLastCellRect(), Range2D< double, DoubleTraits >::getMaxX(), Range2D< double, DoubleTraits >::getMaxY(), Range2D< double, DoubleTraits >::getMinX(), Range2D< double, DoubleTraits >::getMinY(), ScDocument::GetRowOffset(), SdrObject::GetSnapRect(), tools::Rectangle::GetWidth(), SdrObject::IsVisible(), tools::Rectangle::Left(), ScDrawObjData::maEnd, ScDrawObjData::maEndOffset, ScDrawObjData::maStart, ScDrawObjData::maStartOffset, ScDrawObjData::mbWasInHiddenRow, MirrorRectRTL(), Point, tools::Rectangle::Right(), ScAddress::Row(), basegfx::B2DHomMatrix::scale(), tools::Rectangle::setHeight(), tools::Rectangle::SetPos(), ScDrawObjData::setShapeRect(), tools::Rectangle::setWidth(), SdrObject::shouldKeepAspectRatio(), ScAddress::Tab(), tools::Rectangle::Top(), basegfx::B2DRange::transform(), and basegfx::B2DHomMatrix::translate().
Referenced by RecalcPos().
bool ScDrawLayer::ScAddPage | ( | SCTAB | nTab | ) |
Definition at line 378 of file drwlayer.cxx.
References AddCalcUndo(), AllocPage(), bDrawIsInUndo, bRecording, ScDocument::GetTableCount(), FmFormModel::InsertPage(), pDoc, and ResetTab().
Referenced by DoSdrUndoAction(), and ScTable::ScTable().
void ScDrawLayer::ScCopyPage | ( | sal_uInt16 | nOldPos, |
sal_uInt16 | nNewPos | ||
) |
Definition at line 424 of file drwlayer.cxx.
References AddCalcUndo(), bDrawIsInUndo, bRecording, SdrObject::CloneSdrObject(), GetObjData(), SdrModel::GetPage(), ScDocument::GetTableCount(), SdrObjList::InsertObject(), ScDrawObjData::maEnd, ScDrawObjData::maStart, SdrObjListIter::Next(), pDoc, ResetTab(), and ScAddress::SetTab().
void ScDrawLayer::ScMovePage | ( | sal_uInt16 | nOldPos, |
sal_uInt16 | nNewPos | ||
) |
Definition at line 417 of file drwlayer.cxx.
References ScDocument::GetTableCount(), SdrModel::MovePage(), pDoc, and ResetTab().
Definition at line 392 of file drwlayer.cxx.
References AddCalcUndo(), bDrawIsInUndo, bRecording, SdrModel::DeletePage(), SdrModel::GetPage(), ScDocument::GetTableCount(), pDoc, FmFormModel::RemovePage(), and ResetTab().
Referenced by ScTable::~ScTable().
Definition at line 410 of file drwlayer.cxx.
References SdrModel::GetPage(), and FmFormPage::SetName().
Referenced by ScTable::ScTable().
|
static |
Definition at line 2287 of file drwlayer.cxx.
References GetObjData(), ScDrawObjData::maEnd, ScDrawObjData::maEndOffset, ScDrawObjData::maStart, ScDrawObjData::maStartOffset, and ScDrawObjData::mbResizeWithCell.
Referenced by XMLTableShapeImportHelper::finishShape(), SetCellAnchoredFromPosition(), and ScShapeObj::setPropertyValue().
|
static |
Definition at line 2297 of file drwlayer.cxx.
References tools::Rectangle::Bottom(), GetCellAnchorFromPosition(), SdrObject::GetLogicRect(), GetNonRotatedObjData(), GetObjData(), SdrObject::GetObjIdentifier(), SdrObject::GetSnapRect(), ScDocument::IsNegativePage(), SdrObject::IsVisible(), tools::Rectangle::Left(), ScDrawObjData::mbResizeWithCell, MirrorRectRTL(), tools::Rectangle::Move(), SdrObject::NbcMirror(), Point, SetCellAnchored(), SetNonRotatedAnchor(), and tools::Rectangle::Top().
Referenced by XclImpDffConverter::FinalizeObj(), lcl_InsertGraphic(), oox::xls::DrawingFragment::onEndElement(), ScViewFunc::PasteDraw(), ScUndoAnchorData::Redo(), ScDrawView::SetCellAnchored(), and ScUndoAnchorData::Undo().
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 2661 of file drwlayer.cxx.
References SdrModel::SetChanged(), and ScDocument::SetChartListenerCollectionNeedsUpdate().
|
static |
Definition at line 2655 of file drwlayer.cxx.
References pGlobalDrawPersist.
Referenced by ScDrawView::BeginDrag(), ScViewFunc::CopyToClipSingleRange(), ScViewFunc::CopyToTransferable(), ScDrawView::CopyToTransferable(), ScSelectionTransferObj::CreateCellData(), ScSelectionTransferObj::CreateDrawData(), ScDrawView::DoCopy(), lcl_DoDragObject(), ScDocFunc::MoveBlock(), and ScViewFunc::PasteFromClip().
|
static |
Definition at line 2277 of file drwlayer.cxx.
References GetNonRotatedObjData(), ScDrawObjData::maEnd, ScDrawObjData::maEndOffset, ScDrawObjData::maStart, ScDrawObjData::maStartOffset, and ScDrawObjData::mbResizeWithCell.
Referenced by MirrorRTL(), and SetCellAnchoredFromPosition().
Definition at line 2440 of file drwlayer.cxx.
References SC_UD_OBJDATA.
Referenced by XMLTableShapeImportHelper::finishShape(), ScUndoAnchorData::Redo(), ScDrawView::SetPageAnchored(), ScShapeObj::setPropertyValue(), and ScUndoAnchorData::Undo().
void ScDrawLayer::SetPageSize | ( | sal_uInt16 | nPageNo, |
const Size & | rSize, | ||
bool | bUpdateNoteCaptionPos, | ||
const ScObjectHandling | eObjectHandling = ScObjectHandling::RecalcPosMode |
||
) |
Definition at line 569 of file drwlayer.cxx.
References ScDrawObjData::DrawingObject, SdrObjList::GetObj(), SdrObjList::GetObjCount(), GetObjDataTab(), SdrModel::GetPage(), SdrPage::GetSize(), i, ScDocument::IsImportingXML(), SdrModel::isLocked(), ScDocument::IsNegativePage(), ScDrawObjData::meType, MirrorRTL(), MirrorRTLMode, MoveRTL(), MoveRTLMode, nCount, pData, pDoc, RecalcPos(), RecalcPosMode, SdrModel::setLock(), SdrPage::SetSize(), and ScDrawObjData::ValidationCircle.
Referenced by ScTable::ScTable(), and ScTable::SetDrawPageSize().
|
static |
Definition at line 2405 of file drwlayer.cxx.
References SdrObject::GetLogicRect(), ScDocument::GetMMRect(), ScDocument::GetRange(), SdrObject::GetSnapRect(), ScDocument::IsNegativePage(), tools::Rectangle::Left(), ScDrawObjData::maEnd, ScDrawObjData::maEndOffset, tools::Rectangle::Right(), and tools::Rectangle::Top().
Referenced by InitializeCellAnchoredObj(), RecalcPos(), and ScShapeObj::setPropertyValue().
void ScDrawLayer::UseHyphenator | ( | ) |
Definition at line 339 of file drwlayer.cxx.
References bHyphenatorSet, SdrModel::GetDrawOutliner(), SdrModel::GetHitTestOutliner(), and LinguMgr::GetHyphenator().
Referenced by ScOutputData::DrawSelectiveObjects().
|
private |
Definition at line 100 of file drwlayer.hxx.
Referenced by AllocModel(), and GetVisibleName().
|
private |
Definition at line 104 of file drwlayer.hxx.
Referenced by MoveArea().
|
private |
Definition at line 105 of file drwlayer.hxx.
Referenced by UseHyphenator().
|
private |
Definition at line 103 of file drwlayer.hxx.
Referenced by AddCalcUndo(), BeginCalcUndo(), CopyFromClip(), DeleteObjectsInArea(), DeleteObjectsInSelection(), GetCalcUndo(), MirrorRTL(), MoveRTL(), RecalcPos(), ScAddPage(), ScCopyPage(), and ScRemovePage().
|
private |
Definition at line 101 of file drwlayer.hxx.
Referenced by InitializeCellAnchoredObj(), MoveCells(), ScAddPage(), ScCopyPage(), ScDrawLayer(), ScMovePage(), ScRemovePage(), and SetPageSize().
|
staticprivate |
Definition at line 224 of file drwlayer.hxx.
Referenced by ScDrawLayer(), and SetGlobalDrawPersist().
|
private |
Definition at line 102 of file drwlayer.hxx.
Referenced by AddCalcUndo(), BeginCalcUndo(), GetCalcUndo(), and ~ScDrawLayer().