LibreOffice Module sc (master) 1
|
#include <drwlayer.hxx>
Public Member Functions | |
ScDrawLayer (ScDocument *pDocument, OUString aName) | |
virtual | ~ScDrawLayer () override |
virtual rtl::Reference< SdrPage > | AllocPage (bool bMasterPage) override |
virtual SdrModel * | AllocModel () const override |
virtual void | SetChanged (bool bFlg=true) override |
void | CreateDefaultStyles () |
bool | HasObjects () const |
bool | ScAddPage (SCTAB nTab) |
void | ScRemovePage (SCTAB nTab) |
void | ScRenamePage (SCTAB nTab, const OUString &rNewName) |
void | ScMovePage (sal_uInt16 nOldPos, sal_uInt16 nNewPos) |
void | ScCopyPage (sal_uInt16 nOldPos, sal_uInt16 nNewPos) |
void | ResetTab (SCTAB nStart, SCTAB nEnd) |
ScDocument * | GetDocument () const |
void | UseHyphenator () |
bool | GetPrintArea (ScRange &rRange, bool bSetHor, bool bSetVer) const |
void | EnableAdjust (bool bSet) |
void | BeginCalcUndo (bool bDisableTextEditUsesCommonUndoManager) |
std::unique_ptr< SdrUndoGroup > | GetCalcUndo () |
bool | IsRecording () const |
void | AddCalcUndo (std::unique_ptr< SdrUndoAction > pUndo) |
void | MoveArea (SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCCOL nDx, SCROW nDy, bool bInsDel, bool bUpdateNoteCaptionPos) |
void | InitializeCellAnchoredObj (SdrObject *pObj, ScDrawObjData &rData) |
void | RecalcPos (SdrObject *pObj, ScDrawObjData &rData, bool bNegativePage, bool bUpdateNoteCaptionPos) |
bool | HasObjectsInRows (SCTAB nTab, SCROW nStartRow, SCROW nEndRow) |
void | DeleteObjectsInArea (SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bool bAnchored=false) |
void | DeleteObjectsInSelection (const ScMarkData &rMark) |
void | CopyToClip (ScDocument *pClipDoc, SCTAB nTab, const tools::Rectangle &rRange) |
void | CopyFromClip (ScDrawLayer *pClipModel, SCTAB nSourceTab, const ScRange &rSourceRange, const ScAddress &rDestPos, const ScRange &rDestRange, bool bTransposing=false) |
void | SetPageSize (sal_uInt16 nPageNo, const Size &rSize, bool bUpdateNoteCaptionPos, const ScObjectHandling eObjectHandling=ScObjectHandling::RecalcPosMode) |
void | MirrorRTL (SdrObject *pObj) |
void | MoveRTL (SdrObject *pObj) |
SdrObject * | GetNamedObject (std::u16string_view rName, SdrObjKind nId, SCTAB &rFoundTab) const |
OUString | GetNewGraphicName (tools::Long *pnCounter=nullptr) const |
void | EnsureGraphicNames () |
std::vector< SdrObject * > | GetObjectsAnchoredToRows (SCTAB nTab, SCROW nStartRow, SCROW nEndRow) |
std::map< SCROW, std::vector< SdrObject * > > | GetObjectsAnchoredToRange (SCTAB nTab, SCCOL nCol, SCROW nStartRow, SCROW nEndRow) |
bool | HasObjectsAnchoredInRange (const ScRange &rRange) |
std::vector< SdrObject * > | GetObjectsAnchoredToCols (SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol) |
void | MoveObject (SdrObject *pObj, const ScAddress &rNewPosition) |
Public Member Functions inherited from FmFormModel | |
FmFormModel (SfxItemPool *pPool=nullptr, SfxObjectShell *pPers=nullptr) | |
virtual | ~FmFormModel () override |
virtual rtl::Reference< SdrPage > | AllocPage (bool bMasterPage) override |
virtual void | InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override |
virtual rtl::Reference< SdrPage > | RemovePage (sal_uInt16 nPgNum) override |
virtual void | InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override |
virtual rtl::Reference< SdrPage > | RemoveMasterPage (sal_uInt16 nPgNum) override |
SfxObjectShell * | GetObjectShell () const |
void | SetObjectShell (SfxObjectShell *pShell) |
bool | GetOpenInDesignMode () const |
void | SetOpenInDesignMode (bool _bOpenDesignMode) |
bool | GetAutoControlFocus () const |
void | SetAutoControlFocus (bool _bAutoControlFocus) |
bool | OpenInDesignModeIsDefaulted () |
bool | ControlsUseRefDevice () const |
FmXUndoEnvironment & | GetUndoEnv () |
Public Member Functions inherited from SdrModel | |
std::vector< SdrOutliner * > | GetActiveOutliners () const |
sal_uInt16 | getHandoutPageCount () const |
void | setHandoutPageCount (sal_uInt16 nHandoutPageCount) |
virtual void | adaptSizeAndBorderForAllPages (const Size &rNewSize, tools::Long nLeft=0, tools::Long nRight=0, tools::Long nUpper=0, tools::Long nLower=0) |
virtual SVX_DLLPRIVATE bool | IsCreatingDataObj () const |
bool | IsTransportContainer () const |
bool | AreControlsThemed () |
bool | IsPasteResize () const |
void | SetPasteResize (bool bOn) |
SdrModel (SfxItemPool *pPool=nullptr, ::comphelper::IEmbeddedHelper *pPers=nullptr, bool bDisablePropertyFiles=false) | |
virtual | ~SdrModel () override |
void | ClearModel (bool bCalledFromDestructor) |
virtual css::uno::Reference< css::embed::XStorage > | GetDocumentStorage () const |
css::uno::Reference< css::io::XInputStream > | GetDocumentStream (OUString const &rURL, ::comphelper::LifecycleProxy const &rProxy) const |
void | BurnInStyleSheetAttributes () |
virtual rtl::Reference< SdrPage > | AllocPage (bool bMasterPage) |
virtual SdrModel * | AllocModel () const |
const SdrLayerAdmin & | GetLayerAdmin () const |
SdrLayerAdmin & | GetLayerAdmin () |
const SfxItemPool & | GetItemPool () const |
SfxItemPool & | GetItemPool () |
SdrOutliner & | GetDrawOutliner (const SdrTextObj *pObj=nullptr) const |
SdrOutliner & | GetHitTestOutliner () const |
const SdrTextObj * | GetFormattingTextObj () const |
void | SetTextDefaults () const |
SdrOutliner & | GetChainingOutliner (const SdrTextObj *pObj) const |
TextChain * | GetTextChain () const |
void | SetRefDevice (OutputDevice *pDev) |
OutputDevice * | GetRefDevice () const |
void | RefDeviceChanged () |
void | SetDefaultFontHeight (sal_Int32 nVal) |
void | SetDefaultTabulator (sal_uInt16 nVal) |
sal_uInt16 | GetDefaultTabulator () const |
SfxStyleSheet * | GetDefaultStyleSheet () const |
void | SetDefaultStyleSheet (SfxStyleSheet *pDefSS) |
SfxStyleSheet * | GetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj () const |
void | SetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj (SfxStyleSheet *pDefSS) |
sfx2::LinkManager * | GetLinkManager () |
void | SetLinkManager (sfx2::LinkManager *pLinkMgr) |
::comphelper::IEmbeddedHelper * | GetPersist () const |
void | SetPersist (::comphelper::IEmbeddedHelper *p) |
MapUnit | GetScaleUnit () const |
void | SetScaleUnit (MapUnit eMap) |
const Size & | GetMaxObjSize () const |
void | SetMaxObjSize (const Size &rSiz) |
void | SetUIUnit (FieldUnit eUnit) |
FieldUnit | GetUIUnit () const |
void | SetUIScale (const Fraction &rScale) |
const Fraction & | GetUIScale () const |
void | SetUIUnit (FieldUnit eUnit, const Fraction &rScale) |
OUString | GetMetricString (tools::Long nVal, bool bNoUnitChars=false, sal_Int32 nNumDigits=-1) const |
bool | IsPagNumsDirty () const |
bool | IsMPgNumsDirty () const |
void | RecalcPageNums (bool bMaster) |
virtual void | InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) |
virtual void | DeletePage (sal_uInt16 nPgNum) |
virtual rtl::Reference< SdrPage > | RemovePage (sal_uInt16 nPgNum) |
virtual void | MovePage (sal_uInt16 nPgNum, sal_uInt16 nNewPos) |
const SdrPage * | GetPage (sal_uInt16 nPgNum) const |
SdrPage * | GetPage (sal_uInt16 nPgNum) |
sal_uInt16 | GetPageCount () const |
virtual void | PageListChanged () |
virtual void | InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) |
void | DeleteMasterPage (sal_uInt16 nPgNum) |
virtual rtl::Reference< SdrPage > | RemoveMasterPage (sal_uInt16 nPgNum) |
void | MoveMasterPage (sal_uInt16 nPgNum, sal_uInt16 nNewPos) |
const SdrPage * | GetMasterPage (sal_uInt16 nPgNum) const |
SdrPage * | GetMasterPage (sal_uInt16 nPgNum) |
sal_uInt16 | GetMasterPageCount () const |
virtual void | MasterPageListChanged () |
bool | IsChanged () const |
virtual void | SetChanged (bool bFlg=true) |
bool | IsSwapGraphics () const |
void | SetSwapGraphics () |
bool | IsPickThroughTransparentTextFrames () const |
void | SetPickThroughTransparentTextFrames (bool bOn) |
virtual bool | IsReadOnly () const |
void | SetReadOnly (bool bYes) |
virtual void | Merge (SdrModel &rSourceModel, sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, bool bMergeMasterPages, bool bAllMasterPages, bool bUndo=true, bool bTreadSourceAsConst=false) |
void | CopyPages (sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, bool bUndo, bool bMoveNoCopy) |
void | BegUndo () |
void | BegUndo (const OUString &rComment) |
void | BegUndo (const OUString &rComment, const OUString &rObjDescr, SdrRepeatFunc eFunc) |
void | EndUndo () |
void | AddUndo (std::unique_ptr< SdrUndoAction > pUndo) |
sal_uInt16 | GetUndoBracketLevel () const |
void | SetUndoComment (const OUString &rComment) |
void | SetUndoComment (const OUString &rComment, const OUString &rObjDescr) |
void | SetMaxUndoActionCount (sal_uInt32 nCount) |
void | ClearUndoBuffer () |
bool | HasUndoActions () const |
bool | HasRedoActions () const |
void | Undo () |
void | Redo () |
void | Repeat (SfxRepeatTarget &) |
void | SetNotifyUndoActionHdl (const std::function< void(std::unique_ptr< SdrUndoAction >)> &rLink) |
void | SetSdrUndoManager (SfxUndoManager *pUndoManager) |
SfxUndoManager * | GetSdrUndoManager () const |
void | SetSdrUndoFactory (SdrUndoFactory *pUndoFactory) |
SdrUndoFactory & | GetSdrUndoFactory () const |
const XPropertyListRef & | GetPropertyList (XPropertyListType t) const |
void | SetPropertyList (XPropertyListRef const &p) |
XDashListRef | GetDashList () const |
XHatchListRef | GetHatchList () const |
XColorListRef | GetColorList () const |
XBitmapListRef | GetBitmapList () const |
XPatternListRef | GetPatternList () const |
XLineEndListRef | GetLineEndList () const |
XGradientListRef | GetGradientList () const |
SfxStyleSheetBasePool * | GetStyleSheetPool () const |
void | SetStyleSheetPool (SfxStyleSheetBasePool *pPool) |
void | setTheme (std::shared_ptr< model::Theme > const &pTheme) |
std::shared_ptr< model::Theme > const & | getTheme () const |
void | SetStarDrawPreviewMode (bool bPreview) |
bool | IsStarDrawPreviewMode () const |
bool | GetDisableTextEditUsesCommonUndoManager () const |
void | SetDisableTextEditUsesCommonUndoManager (bool bNew) |
css::uno::Reference< css::uno::XInterface > const & | getUnoModel () |
void | setUnoModel (const css::uno::Reference< css::uno::XInterface > &xModel) |
bool | isLocked () const |
void | setLock (bool bLock) |
void | SetForbiddenCharsTable (const std::shared_ptr< SvxForbiddenCharactersTable > &xForbiddenChars) |
const std::shared_ptr< SvxForbiddenCharactersTable > & | GetForbiddenCharsTable () const |
void | SetCharCompressType (CharCompressType nType) |
CharCompressType | GetCharCompressType () const |
void | SetKernAsianPunctuation (bool bEnabled) |
bool | IsKernAsianPunctuation () const |
void | SetAddExtLeading (bool bEnabled) |
bool | IsAddExtLeading () const |
void | SetCompatibilityFlag (SdrCompatibilityFlag eFlag, bool bEnabled) |
bool | GetCompatibilityFlag (SdrCompatibilityFlag eFlag) const |
void | ReformatAllTextObjects () |
std::unique_ptr< SdrOutliner > | createOutliner (OutlinerMode nOutlinerMode) |
void | disposeOutliner (std::unique_ptr< SdrOutliner > pOutliner) |
bool | IsWriter () const |
void | ReadUserDataSequenceValue (const css::beans::PropertyValue *pValue) |
void | WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &rValues) |
virtual SvxNumType | GetPageNumType () const |
bool | IsInDestruction () const |
void | EnableUndo (bool bEnable) |
bool | IsUndoEnabled () const |
bool | DoesMakePageObjectsNamesUnique () const |
void | DoMakePageObjectsNamesUnique (bool bDo) |
virtual sal_Int32 | getImagePreferredDPI () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
bool | IsVOCInvalidationIsReliable () const |
void | SetVOCInvalidationIsReliable (bool b) |
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 Public Member Functions inherited from SdrModel | |
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, |
OUString | aName | ||
) |
Definition at line 247 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(), SfxItemPool::FreezeIdRanges(), o3tl::strong_int< typename UNDERLYING_TYPE, typename 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(), SdrModel::GetStyleSheetPool(), ScDocument::GetStyleSheetPool(), MsLangId::isKorean(), ScDocument::IsUndoEnabled(), LANGUAGE_JAPANESE, LINK, SdrModel::m_bThemedControls, SdrModel::m_pItemPool, makeSdrShadowXDistItem(), makeSdrShadowYDistItem(), SdrLayerAdmin::NewLayer(), nInst, pDoc, pF3d, 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::SetStyleSheetPool(), Outliner::SetStyleSheetPool(), SdrModel::SetSwapGraphics(), and SdrModel::SetVOCInvalidationIsReliable().
|
overridevirtual |
Definition at line 346 of file drwlayer.cxx.
References SdrModel::ClearModel(), nInst, pF3d, and pUndoGroup.
void ScDrawLayer::AddCalcUndo | ( | std::unique_ptr< SdrUndoAction > | pUndo | ) |
Definition at line 1503 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(), ScPostIt::RemoveCaption(), ScAddPage(), ScCopyPage(), and ScRemovePage().
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 442 of file drwlayer.cxx.
References aName, ScStyleSheetPool::CopyUsedGraphicStylesFrom(), and SdrModel::GetStyleSheetPool().
|
overridevirtual |
Reimplemented from FmFormModel.
Definition at line 425 of file drwlayer.cxx.
Referenced by ScAddPage().
void ScDrawLayer::BeginCalcUndo | ( | bool | bDisableTextEditUsesCommonUndoManager | ) |
Definition at line 1514 of file drwlayer.cxx.
References bRecording, pUndoGroup, and SdrModel::SetDisableTextEditUsesCommonUndoManager().
Referenced by ScDrawView::DeleteMarked(), ScDocFunc::DetectiveAddError(), ScDocFunc::DetectiveAddPred(), ScDocFunc::DetectiveAddSucc(), ScDocFunc::DetectiveDelAll(), ScDocFunc::DetectiveDelPred(), ScDocFunc::DetectiveDelSucc(), ScDocFunc::DetectiveMarkInvalid(), ScDocFunc::DetectiveRefresh(), ScViewFunc::EditNote(), ScDocFunc::ReplaceNote(), and FuText::StopEditMode().
void ScDrawLayer::CopyFromClip | ( | ScDrawLayer * | pClipModel, |
SCTAB | nSourceTab, | ||
const ScRange & | rSourceRange, | ||
const ScAddress & | rDestPos, | ||
const ScRange & | rDestRange, | ||
bool | bTransposing = false |
||
) |
Definition at line 1912 of file drwlayer.cxx.
References AddCalcUndo(), ScRange::aStart, bDrawIsInUndo, bRecording, SdrObject::CloneSdrObject(), ScAddress::Col(), ScRange::Contains(), ScStyleSheetPool::CopyStyleFrom(), ScDocument::CountNonFilteredRows(), ScDocument::EnableUndo(), GetCellRect(), ScChartHelper::GetChartFromSdrObject(), ScDocument::GetChartRanges(), ScDocument::GetClipParam(), SdrObject::GetCurrentBoundRect(), GetDocument(), SdrObject::GetLayer(), ScDocument::GetMMRect(), ScDocument::GetName(), GetObjData(), SdrObject::GetObjIdentifier(), tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), SdrModel::GetPage(), ScDocument::GetPool(), ScDocument::GetRange(), SdrObject::GetSnapRect(), SdrObject::GetStyleSheet(), SdrModel::GetStyleSheetPool(), ScDocument::GetStyleSheetPool(), Point::getX(), Point::getY(), ScAddress::IncCol(), ScAddress::IncRow(), SdrObjList::InsertObject(), SdrObjList::InsertObjectThenMakeNameUnique(), IsCellAnchored(), SotExchange::IsChart(), ScDocument::IsClipboard(), ScDocument::IsLayoutRTL(), IsNoteCaption(), SdrObject::IsResizeProtect(), IsResizeWithCell(), ScClipParam::isTransposed(), lcl_getClipRangeFromClipDoc(), lcl_IsAllInRange(), lcl_MoveRanges(), ScDrawObjData::maStartOffset, MirrorRectRTL(), MirrorRTL(), SdrObjListIter::Next(), pDoc, ScDocument::RenameTab(), ScAddress::Row(), ScDocument::RowFiltered(), SC_LAYER_INTERN(), SetCellAnchoredFromPosition(), ScDocument::SetChartRanges(), ScAddress::Tab(), tools::Rectangle::TopLeft(), ScDocument::ValidNewTabName(), Point::X(), and Point::Y().
Referenced by ScTable::CopyOneCellFromClip().
void ScDrawLayer::CopyToClip | ( | ScDocument * | pClipDoc, |
SCTAB | nTab, | ||
const tools::Rectangle & | rRange | ||
) |
Definition at line 1778 of file drwlayer.cxx.
References ScRange::aStart, SdrObject::CloneSdrObject(), tools::Rectangle::Contains(), ScRange::Contains(), GetCellRect(), ScChartHelper::GetChartFromSdrObject(), SdrObject::GetCurrentBoundRect(), ScDocument::GetDrawLayer(), SdrObject::GetLayer(), GetObjData(), SdrModel::GetPage(), ScDocument::GetRange(), SdrObject::GetSnapRect(), Point::getX(), Point::getY(), ScDocument::InitDrawLayer(), SdrObjList::InsertObject(), IsNoteCaption(), lcl_getClipRangeFromClipDoc(), ScDrawObjData::maStart, SdrObjListIter::Next(), pDoc, SC_LAYER_INTERN(), and tools::Rectangle::TopLeft().
void ScDrawLayer::CreateDefaultStyles | ( | ) |
Definition at line 360 of file drwlayer.cxx.
References basegfx::B2DPolygon::append(), ATTR_PATTERN(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), ScPatternAttr::FillToEditItemSet(), SfxItemSet::Get(), ScDetectiveFunc::GetCommentColor(), SfxItemPool::GetDefaultItem(), SdrModel::GetItemPool(), ScDocument::GetPool(), SdrModel::GetStyleSheetPool(), SfxStyleSheetBasePool::Make(), makeSdrShadowItem(), makeSdrShadowXDistItem(), makeSdrShadowYDistItem(), makeSdrTextAutoGrowHeightItem(), makeSdrTextAutoGrowWidthItem(), makeSdrTextLeftDistItem(), makeSdrTextLowerDistItem(), makeSdrTextRightDistItem(), makeSdrTextUpperDistItem(), pDoc, ScResId(), basegfx::B2DPolygon::setClosed(), and SdrModel::SetDefaultStyleSheet().
|
overrideprivatevirtual |
Reimplemented from SdrModel.
Definition at line 2940 of file drwlayer.cxx.
References ScDocument::GetDocumentShell(), SfxObjectShell::GetModel(), and pDoc.
void ScDrawLayer::DeleteObjectsInArea | ( | SCTAB | nTab, |
SCCOL | nCol1, | ||
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
bool | bAnchored = false |
||
) |
Definition at line 1629 of file drwlayer.cxx.
References AddCalcUndo(), tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), bRecording, tools::Rectangle::Contains(), GetAnchorType(), ScDocument::GetMMRect(), SdrObjList::GetObjCount(), GetObjData(), SdrModel::GetPage(), IsNoteCaption(), ScDrawObjData::meType, SdrObjListIter::Next(), p, pDoc, pObject, SdrObjList::RecalcObjOrdNums(), SdrObjList::RemoveObject(), SCA_CELL, SCA_CELL_RESIZE, and ScDrawObjData::ValidationCircle.
void ScDrawLayer::DeleteObjectsInSelection | ( | const ScMarkData & | rMark | ) |
Definition at line 1701 of file drwlayer.cxx.
References AddCalcUndo(), ScRange::aEnd, ScRange::aStart, bRecording, ScAddress::Col(), tools::Rectangle::Contains(), GetAnchorType(), ScDocument::GetMMRect(), ScMarkData::GetMultiMarkArea(), SdrObjList::GetObjCount(), GetObjData(), SdrModel::GetPage(), ScDocument::GetRange(), ScDocument::GetTableCount(), ScMarkData::IsAllMarked(), ScMarkData::IsCellMarked(), ScMarkData::IsMultiMarked(), IsNoteCaption(), ScAddress::IsValid(), ScDrawObjData::maStart, SdrObjListIter::Next(), p, pDoc, pObject, SdrObjList::RecalcObjOrdNums(), SdrObjList::RemoveObject(), ScAddress::Row(), SCA_CELL, and SCA_CELL_RESIZE.
|
inline |
Definition at line 139 of file drwlayer.hxx.
Referenced by EnableDrawAdjust().
void ScDrawLayer::EnsureGraphicNames | ( | ) |
Definition at line 2499 of file drwlayer.cxx.
References GetNewGraphicName(), SdrModel::GetPage(), SdrModel::GetPageCount(), SdrObjListIter::Next(), and pObject.
|
static |
Definition at line 2724 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 1521 of file drwlayer.cxx.
References bRecording, pUndoGroup, and SdrModel::SetDisableTextEditUsesCommonUndoManager().
Referenced by ScDrawView::DeleteMarked(), ScDocFunc::DetectiveAddError(), ScDocFunc::DetectiveAddPred(), ScDocFunc::DetectiveAddSucc(), ScDocFunc::DetectiveDelAll(), ScDocFunc::DetectiveDelPred(), ScDocFunc::DetectiveDelSucc(), ScDocFunc::DetectiveMarkInvalid(), ScDocFunc::DetectiveRefresh(), GetSdrUndoAction(), ScDocFunc::MergeCells(), ScDocFunc::ReplaceNote(), and FuText::StopEditMode().
|
static |
Definition at line 2649 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(), Point::setX(), Point::setY(), 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 2385 of file drwlayer.cxx.
References Point::AdjustX(), Point::AdjustY(), 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, ScAddress::Row(), ScAddress::Tab(), o3tl::twip, and ScDocument::ValidColRowTab().
Referenced by CopyFromClip(), CopyToClip(), ScPostIt::CreateCaptionFromInitData(), ScNoteUtil::CreateNoteFromObjectData(), ScDetectiveFunc::DeleteCirclesAt(), ScDetectiveFunc::DrawCircle(), ScDrawView::FitToCellSize(), RecalcPos(), ResizeLastRectFromAnchor(), and ScDrawObjData::setShapeRect().
|
inline |
Definition at line 131 of file drwlayer.hxx.
Referenced by CopyFromClip(), ScShapeObj::getAnchor(), ScShapeObj::getParent(), ScShapeObj::getPropertyValue(), IMPL_LINK(), InitializeCellAnchoredObj(), MirrorRTL(), MoveRTL(), RecalcPos(), ResizeLastRectFromAnchor(), and ScShapeObj::setPropertyValue().
|
static |
Definition at line 2913 of file drwlayer.cxx.
References SdrObject::AppendUserData(), pData, and SC_UD_MACRODATA.
Referenced by ScDrawShell::ExecuteMacroAssign(), FuDraw::ForcePointer(), FuSelection::MouseButtonDown(), ShapeInteractionHelper::PopulateShapeInteractionInfo(), XclImpDrawObjBase::PreProcessSdrObject(), and XclExpShapeObj::XclExpShapeObj().
SdrObject * ScDrawLayer::GetNamedObject | ( | std::u16string_view | rName, |
SdrObjKind | nId, | ||
SCTAB & | rFoundTab | ||
) | const |
Definition at line 2450 of file drwlayer.cxx.
References SdrModel::GetPage(), SdrModel::GetPageCount(), IsNamedObject(), SdrObjListIter::Next(), nId, and pObject.
Referenced by ScChartsObj::addNewByName(), sc::TablePivotCharts::addNewByName(), GetNewGraphicName(), IMPL_LINK(), and lcl_DoDragObject().
OUString ScDrawLayer::GetNewGraphicName | ( | tools::Long * | pnCounter = nullptr | ) | const |
Definition at line 2478 of file drwlayer.cxx.
References GetNamedObject(), nId, and ScResId().
Referenced by EnsureGraphicNames(), ScDrawShell::ExecDrawFunc(), lcl_InsertGraphic(), and ScViewFunc::PasteGraphic().
|
static |
Definition at line 2855 of file drwlayer.cxx.
References SdrObject::AppendUserData(), SdrObject::GetUserData(), SdrObject::GetUserDataCount(), i, nCount, pData, 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 2907 of file drwlayer.cxx.
References ScDrawObjData::CellNote, GetObjDataTab(), and pData.
Referenced by ScXMLExport::CollectInternalShape(), ScDrawView::GetMarkedNoteCaption(), ScShapeObj::getParent(), FuSelection::IsNoteCaptionClicked(), and FuText::StopEditMode().
|
static |
Definition at line 2874 of file drwlayer.cxx.
References SdrObject::AppendUserData(), pData, 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 2888 of file drwlayer.cxx.
References GetObjData(), and pData.
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 2810 of file drwlayer.cxx.
References ScRange::Contains(), SdrObjList::GetObjCount(), GetObjData(), SdrModel::GetPage(), ScDrawObjData::maStart, ScDocument::MaxRow(), SdrObjListIter::Next(), pDoc, 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 2763 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 2742 of file drwlayer.cxx.
References ScRange::Contains(), SdrObjList::GetObjCount(), GetObjData(), SdrModel::GetPage(), ScDrawObjData::maStart, ScDocument::MaxCol(), SdrObjListIter::Next(), pDoc, and pObject.
Referenced by ScTable::SetRowHidden().
bool ScDrawLayer::GetPrintArea | ( | ScRange & | rRange, |
bool | bSetHor, | ||
bool | bSetVer | ||
) | const |
Definition at line 1343 of file drwlayer.cxx.
References ScRange::aEnd, ScRange::aStart, tools::Rectangle::Bottom(), ScAddress::Col(), convertTwipToMm100(), ScDocument::GetColumnsRange(), ScDocument::GetColWidth(), SdrModel::GetPage(), ScDocument::GetRowForHeight(), ScDocument::GetRowHeight(), i, ScDocument::IsNegativePage(), tools::Rectangle::Left(), LONG_MAX, ScDocument::MaxCol(), ScDocument::MaxRow(), o3tl::mm100, SdrObjListIter::Next(), pDoc, 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 2424 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 430 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 2786 of file drwlayer.cxx.
References ScRange::aEnd, ScRange::aStart, ScRange::Contains(), SdrObjList::GetObjCount(), GetObjData(), SdrModel::GetPage(), ScDrawObjData::maStart, SdrObjListIter::Next(), pObject, and ScAddress::Tab().
Referenced by ScColumn::IsDrawObjectsEmptyBlock().
Definition at line 1575 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(), ScDocument::IsNegativePage(), MAXMM, ScDocument::MaxRow(), MirrorRectRTL(), SdrObjListIter::Next(), pDoc, 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 980 of file drwlayer.cxx.
References ScDrawObjData::CellNote, ScAddress::Col(), ScDocument::ColHidden(), ScDrawObjData::DetectiveArrow, FRound(), GetAnchorType(), basegfx::B2DPolygon::getB2DPoint(), GetCellAnchorFromPosition(), GetDocument(), SdrObject::GetLogicRect(), ScDocument::GetMMRect(), GetNonRotatedObjData(), SdrObject::GetObjIdentifier(), SdrObject::getSdrModelFromSdrObject(), ScDrawObjData::getShapeRect(), SdrObject::GetSnapRect(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), tools::Rectangle::IsEmpty(), SdrModel::isLocked(), SdrObject::IsResizeProtect(), SdrObject::IsVisible(), tools::Rectangle::Left(), ScDrawObjData::maEnd, ScDrawObjData::maEndOffset, ScDrawObjData::maStart, ScDrawObjData::maStartOffset, ScDrawObjData::mbResizeWithCell, ScDrawObjData::meType, SdrObject::NbcMove(), pDoc, ScAddress::Row(), ScDocument::RowHidden(), 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 2700 of file drwlayer.cxx.
References SC_UD_OBJDATA.
Referenced by CopyFromClip(), ScViewFunc::PasteDraw(), and ScUndoAnchorData::ScUndoAnchorData().
|
static |
Returns true, if the passed object is the caption of a cell note.
Definition at line 2901 of file drwlayer.cxx.
References ScDrawObjData::CellNote, GetObjData(), and pData.
Referenced by CopyFromClip(), CopyToClip(), ScDetectiveFunc::DeleteAll(), DeleteObjectsInArea(), DeleteObjectsInSelection(), ScDrawShell::ExecDrawAttr(), 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 143 of file drwlayer.hxx.
Referenced by ScPostIt::CreateCaption(), ScDetectiveFunc::DeleteArrowsAt(), ScDocFunc::NotifyDrawUndo(), and ScPostIt::RemoveCaption().
|
static |
Definition at line 2707 of file drwlayer.cxx.
References GetObjData(), and ScDrawObjData::mbResizeWithCell.
Referenced by CopyFromClip(), ScViewFunc::PasteDraw(), and ScUndoAnchorData::ScUndoAnchorData().
|
static |
Definition at line 2377 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().
void ScDrawLayer::MirrorRTL | ( | SdrObject * | pObj | ) |
Definition at line 2272 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::maStartOffset, ScDrawObjData::mbResizeWithCell, SdrObject::Mirror(), SdrObject::Move(), pData, pDoc, tools::Rectangle::Right(), SetNonRotatedAnchor(), ScDrawObjData::setShapeRect(), 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 1529 of file drwlayer.cxx.
References Point::AdjustX(), Point::AdjustY(), bAdjustEnabled, ScDocument::GetColWidth(), ScDocument::GetMMRect(), ScDocument::GetRowHeight(), ScDocument::IsNegativePage(), lcl_ReverseTwipsToMM(), MoveCells(), pDoc, Point::setX(), tools::Rectangle::TopLeft(), Point::X(), and Point::Y().
Referenced by ScTable::UpdateDrawRef().
|
private |
Definition at line 582 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, and RecalcPos().
Referenced by MoveArea().
Definition at line 2831 of file drwlayer.cxx.
References ScAddress::Col(), GetObjData(), ScAddress::IncCol(), ScAddress::IncRow(), ScDrawObjData::maEnd, ScDrawObjData::maStart, pObject, RecalcPos(), and ScAddress::Row().
Referenced by ScColumn::UpdateDrawObjectsForRow().
void ScDrawLayer::MoveRTL | ( | SdrObject * | pObj | ) |
Definition at line 2359 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 1105 of file drwlayer.cxx.
References AddCalcUndo(), tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), SdrObject::AdjustToMaxRect(), tools::Rectangle::AdjustTop(), Point::AdjustX(), Point::AdjustY(), 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(), pDoc, ResizeLastRectFromAnchor(), ScAddress::Row(), ScDocument::RowHidden(), SdrModel::setLock(), SdrObject::SetLogicRect(), SdrObject::SetPoint(), SdrObject::SetRelativePos(), ScDrawObjData::setShapeRect(), SdrObject::SetSnapRect(), Point::setX(), Point::setY(), ScAddress::Tab(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), UpdateCellAnchorFromPositionEnd(), ScDrawObjData::ValidationCircle, Point::X(), and Point::Y().
Referenced by ScXMLImport::endDocument(), MoveCells(), MoveObject(), and SetPageSize().
Definition at line 546 of file drwlayer.cxx.
References GetObjData(), SdrModel::GetPage(), SdrModel::GetPageCount(), i, SdrObjListIter::Next(), and pData.
Referenced by ScAddPage(), ScCopyPage(), ScMovePage(), and ScRemovePage().
|
private |
Definition at line 827 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(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), ScDocument::GetRowOffset(), SdrObject::GetSnapRect(), tools::Rectangle::GetWidth(), tools::Rectangle::IsEmpty(), SdrObject::IsVisible(), tools::Rectangle::Left(), ScDrawObjData::maEnd, ScDrawObjData::maEndOffset, ScDrawObjData::maStart, ScDrawObjData::maStartOffset, ScDrawObjData::mbWasInHiddenRow, MirrorRectRTL(), pDoc, tools::Rectangle::Right(), ScAddress::Row(), basegfx::B2DHomMatrix::scale(), tools::Rectangle::setHeight(), tools::Rectangle::SetPos(), ScDrawObjData::setShapeRect(), tools::Rectangle::setWidth(), Point::setX(), Point::setY(), SdrObject::shouldKeepAspectRatio(), ScAddress::Tab(), tools::Rectangle::Top(), basegfx::B2DRange::transform(), basegfx::B2DHomMatrix::translate(), Point::X(), and Point::Y().
Referenced by RecalcPos().
bool ScDrawLayer::ScAddPage | ( | SCTAB | nTab | ) |
Definition at line 453 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 499 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 492 of file drwlayer.cxx.
References ScDocument::GetTableCount(), SdrModel::MovePage(), pDoc, and ResetTab().
void ScDrawLayer::ScRemovePage | ( | SCTAB | nTab | ) |
Definition at line 467 of file drwlayer.cxx.
References AddCalcUndo(), bDrawIsInUndo, bRecording, SdrModel::DeletePage(), SdrModel::GetPage(), ScDocument::GetTableCount(), pDoc, FmFormModel::RemovePage(), and ResetTab().
Referenced by ScTable::~ScTable().
void ScDrawLayer::ScRenamePage | ( | SCTAB | nTab, |
const OUString & | rNewName | ||
) |
Definition at line 485 of file drwlayer.cxx.
References SdrModel::GetPage(), and FmFormPage::SetName().
Referenced by ScTable::ScTable().
|
static |
Definition at line 2565 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 2575 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(), tools::Rectangle::Right(), SetCellAnchored(), SetNonRotatedAnchor(), tools::Rectangle::Top(), Point::X(), and Point::Y().
Referenced by CopyFromClip(), XclImpDffConverter::FinalizeObj(), lcl_InsertGraphic(), oox::xls::DrawingFragment::onEndElement(), ScViewFunc::PasteDraw(), ScClipUtil::PasteFromClipboard(), ScUndoAnchorData::Redo(), ScDrawView::SetCellAnchored(), and ScUndoAnchorData::Undo().
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 2933 of file drwlayer.cxx.
References pDoc, SdrModel::SetChanged(), and ScDocument::SetChartListenerCollectionNeedsUpdate().
|
static |
Definition at line 2927 of file drwlayer.cxx.
References pGlobalDrawPersist.
Referenced by ScDrawView::BeginDrag(), ScViewFunc::CopyToClipSingleRange(), ScDrawView::CopyToTransferable(), ScViewFunc::CopyToTransferable(), ScSelectionTransferObj::CreateCellData(), ScSelectionTransferObj::CreateDrawData(), ScDrawView::DoCopy(), lcl_DoDragObject(), ScDocFunc::MoveBlock(), and ScViewFunc::PasteFromClip().
|
static |
Definition at line 2555 of file drwlayer.cxx.
References GetNonRotatedObjData(), ScDrawObjData::maEnd, ScDrawObjData::maEndOffset, ScDrawObjData::maStart, ScDrawObjData::maStartOffset, and ScDrawObjData::mbResizeWithCell.
Referenced by MirrorRTL(), and SetCellAnchoredFromPosition().
|
static |
Definition at line 2718 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 644 of file drwlayer.cxx.
References ScDrawObjData::DrawingObject, SdrObjList::GetObj(), SdrObjList::GetObjCount(), GetObjDataTab(), SdrModel::GetPage(), SdrPage::GetSize(), i, ScDocument::IsImportingXML(), SdrModel::isLocked(), ScDocument::IsNegativePage(), 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 2683 of file drwlayer.cxx.
References ScRange::aEnd, tools::Rectangle::Bottom(), ScAddress::Col(), SdrObject::GetLogicRect(), ScDocument::GetMMRect(), ScDocument::GetRange(), SdrObject::GetSnapRect(), ScDocument::IsNegativePage(), tools::Rectangle::Left(), ScDrawObjData::maEnd, ScDrawObjData::maEndOffset, tools::Rectangle::Right(), ScAddress::Row(), Point::setX(), Point::setY(), ScAddress::Tab(), and tools::Rectangle::Top().
Referenced by InitializeCellAnchoredObj(), RecalcPos(), and ScShapeObj::setPropertyValue().
void ScDrawLayer::UseHyphenator | ( | ) |
Definition at line 411 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 CopyFromClip(), CopyToClip(), CreateDefaultStyles(), createUnoModel(), DeleteObjectsInArea(), DeleteObjectsInSelection(), GetObjectsAnchoredToCols(), GetObjectsAnchoredToRows(), GetPrintArea(), HasObjectsInRows(), InitializeCellAnchoredObj(), MirrorRTL(), MoveArea(), MoveCells(), RecalcPos(), ResizeLastRectFromAnchor(), ScAddPage(), ScCopyPage(), ScDrawLayer(), ScMovePage(), ScRemovePage(), SetChanged(), and SetPageSize().
|
staticprivate |
Definition at line 226 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().