LibreOffice Module svx (master)
1
|
#include <svdotable.hxx>
Public Member Functions | |
SdrTableObj (SdrModel &rSdrModel) | |
SdrTableObj (SdrModel &rSdrModel, SdrTableObj const &rSource) | |
SdrTableObj (SdrModel &rSdrModel, const ::tools::Rectangle &rNewRect, sal_Int32 nColumns, sal_Int32 nRows) | |
void | CropTableModelToSelection (const CellPos &rStart, const CellPos &rEnd) |
void | DistributeColumns (sal_Int32 nFirstColumn, sal_Int32 nLastColumn, const bool bOptimize, const bool bMinimize) |
void | DistributeRows (sal_Int32 nFirstRow, sal_Int32 nLastRow, const bool bOptimize, const bool bMinimize) |
css::uno::Reference< css::table::XTable > | getTable () const |
bool | isValid (const sdr::table::CellPos &rPos) const |
CellPos | getLastCell () const |
CellPos | getLeftCell (const CellPos &rPos, bool bEdgeTravel) const |
CellPos | getRightCell (const CellPos &rPos, bool bEdgeTravel) const |
CellPos | getUpCell (const CellPos &rPos, bool bEdgeTravel) const |
CellPos | getDownCell (const CellPos &rPos, bool bEdgeTravel) const |
CellPos | getPreviousCell (const CellPos &rPos, bool bEdgeTravel) const |
CellPos | getNextCell (const CellPos &rPos, bool bEdgeTravel) const |
CellPos | getPreviousRow (const CellPos &rPos, bool bEdgeTravel) const |
CellPos | getNextRow (const CellPos &rPos, bool bEdgeTravel) const |
void | createCell (sdr::table::CellRef &xCell) |
const sdr::table::TableStyleSettings & | getTableStyleSettings () const |
void | setTableStyleSettings (const sdr::table::TableStyleSettings &rStyle) |
TableHitKind | CheckTableHit (const Point &rPos, sal_Int32 &rnX, sal_Int32 &rnY, const sal_uInt16 aTol=0) const |
void | uno_lock () |
void | uno_unlock () |
const sdr::table::CellRef & | getActiveCell () const |
The active table has the focus or is currently edited. More... | |
void | setActiveCell (const sdr::table::CellPos &rPos) |
void | getActiveCellPos (sdr::table::CellPos &rPos) const |
sal_Int32 | getColumnCount () const |
sal_Int32 | getRowCount () const |
bool | createTableEdgesJson (boost::property_tree::ptree &rJsonRoot) |
void | changeEdge (bool bHorizontal, int nEdge, sal_Int32 nOffset) |
void | getCellBounds (const sdr::table::CellPos &rPos,::tools::Rectangle &rCellRect) |
const SfxItemSet & | GetActiveCellItemSet () const |
void | setTableStyle (const css::uno::Reference< css::container::XIndexAccess > &xAutoFormatStyle) |
const css::uno::Reference< css::container::XIndexAccess > & | getTableStyle () const |
virtual SdrText * | getActiveText () const override |
Returns the currently active text. More... | |
virtual SdrText * | getText (sal_Int32 nIndex) const override |
Returns the nth available text. More... | |
virtual sal_Int32 | getTextCount () const override |
Returns the number of texts available for this object. More... | |
virtual void | setActiveText (sal_Int32 nIndex) override |
Changes the current active text. More... | |
virtual sal_Int32 | CheckTextHit (const Point &rPnt) const override |
Returns the index of the text that contains the given point or -1. More... | |
virtual bool | HasText () const override |
bool | IsTextEditActive () const |
bool | IsTextEditActive (const sdr::table::CellPos &rPos) |
virtual bool | IsReallyEdited () const override |
Returns true only if we are in edit mode and the user actually changed anything. More... | |
void | TakeTextRect (const sdr::table::CellPos &rPos, SdrOutliner &rOutliner,::tools::Rectangle &rTextRect, bool bNoEditText,::tools::Rectangle *pAnchorRect) const |
At the same time, we set the text in the outliner (if applicable the EditOutliners') as well as the PaperSize. More... | |
virtual void | TakeTextRect (SdrOutliner &rOutliner, tools::Rectangle &rTextRect, bool bNoEditText, tools::Rectangle *pAnchorRect, bool bLineWidth=true) const override |
void | TakeTextAnchorRect (const sdr::table::CellPos &rPos,::tools::Rectangle &rAnchorRect) const |
virtual void | TakeTextAnchorRect (::tools::Rectangle &rAnchorRect) const override |
virtual bool | IsAutoGrowHeight () const override |
virtual bool | IsAutoGrowWidth () const override |
virtual bool | IsFontwork () const override |
virtual void | TakeObjInfo (SdrObjTransformInfoRec &rInfo) const override |
virtual SdrObjKind | GetObjIdentifier () const override |
virtual void | SetChanged () override |
virtual bool | AdjustTextFrameWidthAndHeight (tools::Rectangle &rR, bool bHgt=true, bool bWdt=true) const override |
virtual bool | AdjustTextFrameWidthAndHeight () override |
virtual OUString | TakeObjNameSingul () const override |
virtual OUString | TakeObjNamePlural () const override |
virtual SdrTableObj * | CloneSdrObject (SdrModel &rTargetModel) const override |
virtual void | RecalcSnapRect () override |
Snap is not done on the BoundRect but if possible on logic coordinates (i.e. More... | |
virtual const tools::Rectangle & | GetSnapRect () const override |
virtual void | NbcSetSnapRect (const tools::Rectangle &rRect) override |
virtual const tools::Rectangle & | GetLogicRect () const override |
virtual void | NbcSetLogicRect (const tools::Rectangle &rRect) override |
virtual void | AdjustToMaxRect (const tools::Rectangle &rMaxRect, bool bShrinkOnly=false) override |
virtual sal_uInt32 | GetHdlCount () const override |
Via GetHdlCount the number of Handles can be retrieved. More... | |
virtual void | AddToHdlList (SdrHdlList &rHdlList) const override |
virtual bool | hasSpecialDrag () const override |
The standard transformations (Move,Resize,Rotate,Mirror,Shear) are taken over by the View (TakeXorPoly(),...). More... | |
virtual bool | beginSpecialDrag (SdrDragStat &rDrag) const override |
virtual bool | applySpecialDrag (SdrDragStat &rDrag) override |
virtual basegfx::B2DPolyPolygon | getSpecialDragPoly (const SdrDragStat &rDrag) const override |
virtual bool | BegCreate (SdrDragStat &rStat) override |
Every object must be able to create itself interactively. More... | |
virtual bool | MovCreate (SdrDragStat &rStat) override |
virtual bool | EndCreate (SdrDragStat &rStat, SdrCreateCmd eCmd) override |
virtual bool | BckCreate (SdrDragStat &rStat) override |
virtual void | BrkCreate (SdrDragStat &rStat) override |
virtual basegfx::B2DPolyPolygon | TakeCreatePoly (const SdrDragStat &rDrag) const override |
Polygon dragged by the user when creating the object. More... | |
virtual PointerStyle | GetCreatePointer () const override |
get the cursor/pointer that signals creating this object More... | |
virtual void | NbcMove (const Size &rSiz) override |
The methods Move, Resize, Rotate, Mirror, Shear, SetSnapRect and SetLogicRect call the corresponding Nbc-methods, send a Repaint broadcast and set the Modified state on the Model. More... | |
virtual void | NbcResize (const Point &rRef, const Fraction &xFact, const Fraction &yFact) override |
virtual bool | BegTextEdit (SdrOutliner &rOutl) override |
virtual void | EndTextEdit (SdrOutliner &rOutl) override |
virtual void | TakeTextEditArea (Size *pPaperMin, Size *pPaperMax, tools::Rectangle *pViewInit, tools::Rectangle *pViewMin) const override |
void | TakeTextEditArea (const sdr::table::CellPos &rPos, Size *pPaperMin, Size *pPaperMax, tools::Rectangle *pViewInit, tools::Rectangle *pViewMin) const |
virtual EEAnchorMode | GetOutlinerViewAnchorMode () const override |
virtual void | NbcSetOutlinerParaObject (std::unique_ptr< OutlinerParaObject > pTextObject) override |
virtual OutlinerParaObject * | GetOutlinerParaObject () const override |
virtual void | NbcReformatText () override |
virtual bool | IsVerticalWriting () const override |
virtual void | SetVerticalWriting (bool bVertical) override |
css::text::WritingMode | GetWritingMode () const |
void | AddUndo (SdrUndoAction *pUndo) |
Add an undo action that should be on the undo stack after ending text edit. More... | |
void | SetSkipChangeLayout (bool bSkipChangeLayout) |
Next time layouting would be done, skip it (to layout at the end of multiple actions). More... | |
virtual void | onEditOutlinerStatusEvent (EditStatus *pEditStatus) override |
called from the SdrObjEditView during text edit when the status of the edit outliner changes More... | |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
![]() | |
const Point & | GetTextEditOffset () const |
void | SetTextEditOffset (const Point &rNew) |
bool | IsInEditMode () const |
void | SetTextLink (const OUString &rFileName, const OUString &rFilterName) |
void | ReleaseTextLink () |
bool | IsLinkedText () const |
bool | ReloadLinkedText (bool bForceLoad) |
bool | LoadText (const OUString &rFileName, rtl_TextEncoding eCharSet) |
virtual bool | NbcAdjustTextFrameWidthAndHeight (bool bHgt=true, bool bWdt=true) |
bool | IsTextFrame () const |
bool | IsOutlText () const |
bool | IsAutoFit () const |
returns true if the PPT autofit of text into shape bounds is enabled. implies IsFitToSize()==false! More... | |
bool | IsFitToSize () const |
returns true if the old feature for fitting shape content should into shape is enabled. implies IsAutoFit()==false! More... | |
SdrTextObj * | GetNextLinkInChain () const |
void | SetNextLinkInChain (SdrTextObj *) |
SdrTextObj * | GetPrevLinkInChain () const |
bool | IsChainable () const |
bool | GetPreventChainable () const |
TextChain * | GetTextChain () const |
SdrObjKind | GetTextKind () const |
bool | IsTextEditActive () const |
void | SetDisableAutoWidthOnDragging (bool bOn) |
void | NbcSetText (const OUString &rStr) |
void | SetText (const OUString &rStr) |
void | NbcSetText (SvStream &rInput, const OUString &rBaseURL, EETextFormat eFormat) |
void | SetText (SvStream &rInput, const OUString &rBaseURL, EETextFormat eFormat) |
virtual const Size & | GetTextSize () const |
void | FitFrameToTextSize () |
double | GetFontScaleY () const |
const GeoStat & | GetGeoStat () const |
tools::Long | GetEckenradius () const |
tools::Long | GetMinTextFrameHeight () const |
tools::Long | GetMaxTextFrameHeight () const |
tools::Long | GetMinTextFrameWidth () const |
tools::Long | GetMaxTextFrameWidth () const |
css::drawing::TextFitToSizeType | GetFitToSize () const |
const tools::Rectangle & | GetGeoRect () const |
bool | IsHideContour () const |
bool | IsContourTextFrame () const |
SdrTextHorzAdjust | GetTextHorizontalAdjust (const SfxItemSet &rSet) const |
SdrTextHorzAdjust | GetTextHorizontalAdjust () const |
SdrTextVertAdjust | GetTextVerticalAdjust (const SfxItemSet &rSet) const |
SdrTextVertAdjust | GetTextVerticalAdjust () const |
tools::Long | GetTextLeftDistance () const |
Left inner spacing to borders. More... | |
tools::Long | GetTextRightDistance () const |
Right inner spacing to borders. More... | |
tools::Long | GetTextUpperDistance () const |
Top inner spacing to borders. More... | |
tools::Long | GetTextLowerDistance () const |
Bottom inner spacing to borders. More... | |
SdrTextAniKind | GetTextAniKind () const |
SdrTextAniDirection | GetTextAniDirection () const |
virtual void | handlePageChange (SdrPage *pOldPage, SdrPage *pNewPage) override |
virtual void | TakeUnrotatedSnapRect (tools::Rectangle &rRect) const |
virtual basegfx::B2DPolyPolygon | TakeXorPoly () const override |
The Xor-Polygon is required by the View to drag the object. More... | |
virtual basegfx::B2DPolyPolygon | TakeContour () const override |
contour for TextToContour More... | |
virtual Degree100 | GetRotateAngle () const override |
virtual Degree100 | GetShearAngle (bool bVertical=false) const override |
virtual sal_uInt32 | GetSnapPointCount () const override |
snap to special points of an Object (polygon points, center of circle) More... | |
virtual Point | GetSnapPoint (sal_uInt32 i) const override |
virtual OUString | getSpecialDragComment (const SdrDragStat &rDrag) const override |
virtual void | NbcRotate (const Point &rRef, Degree100 nAngle, double sn, double cs) override |
virtual void | NbcMirror (const Point &rRef1, const Point &rRef2) override |
virtual void | NbcShear (const Point &rRef, Degree100 nAngle, double tn, bool bVShear) override |
virtual bool | HasTextEdit () const override |
void | NbcSetOutlinerParaObjectForText (std::unique_ptr< OutlinerParaObject > pTextObject, SdrText *pText) |
bool | CanCreateEditOutlinerParaObject () const |
std::unique_ptr< OutlinerParaObject > | CreateEditOutlinerParaObject () const |
virtual bool | CalcFieldValue (const SvxFieldItem &rField, sal_Int32 nPara, sal_uInt16 nPos, bool bEdit, std::optional< Color > &rpTxtColor, std::optional< Color > &rpFldColor, OUString &rRet) const |
virtual SdrObjectUniquePtr | DoConvertToPolyObj (bool bBezier, bool bAddText) const override |
void | SetTextEditOutliner (SdrOutliner *pOutl) |
void | SetupOutlinerFormatting (SdrOutliner &rOutl, tools::Rectangle &rPaintRect) const |
Setup given Outliner equivalently to SdrTextObj::Paint() More... | |
void | UpdateOutlinerFormatting (SdrOutliner &rOutl, tools::Rectangle &rPaintRect) const |
Update given Outliner equivalently to SdrTextObj::Paint() More... | |
void | ForceOutlinerParaObject () |
void | onChainingEvent () |
called from the SdrObjEditView during text edit when a chain of boxes is to be updated More... | |
virtual bool | TRGetBaseGeometry (basegfx::B2DHomMatrix &rMatrix, basegfx::B2DPolyPolygon &rPolyPolygon) const override |
virtual void | TRSetBaseGeometry (const basegfx::B2DHomMatrix &rMatrix, const basegfx::B2DPolyPolygon &rPolyPolygon) override |
void | RemoveOutlinerCharacterAttribs (const std::vector< sal_uInt16 > &rCharWhichIds) |
iterates over the paragraphs of a given SdrObject and removes all hard set character attributes with the which ids contained in the given vector More... | |
GDIMetaFile * | GetTextScrollMetaFileAndRectangle (tools::Rectangle &rScrollRectangle, tools::Rectangle &rPaintRectangle) |
void | SetTextAnimationAllowed (bool bNew) |
void | SetObjectItemNoBroadcast (const SfxPoolItem &rItem) |
double | GetCameraZRotation () const |
void | impDecomposeContourTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrContourTextPrimitive2D &rSdrContourTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impDecomposePathTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrPathTextPrimitive2D &rSdrPathTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impDecomposeBlockTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrBlockTextPrimitive2D &rSdrBlockTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impDecomposeAutoFitTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrAutoFitTextPrimitive2D &rSdrAutofitTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impDecomposeStretchTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrStretchTextPrimitive2D &rSdrStretchTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impDecomposeChainedTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrChainedTextPrimitive2D &rSdrChainedTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impHandleChainingEventsDuringDecomposition (SdrOutliner &rOutliner) const |
void | impGetBlinkTextTiming (drawinglayer::animation::AnimationEntryList &rAnimList) const |
void | impGetScrollTextTiming (drawinglayer::animation::AnimationEntryList &rAnimList, double fFrameLength, double fTextLength) const |
![]() | |
bool | HasFill () const |
bool | HasLine () const |
![]() | |
const SdrObject * | getFillGeometryDefiningShape () const |
SdrObject (SdrModel &rSdrModel) | |
SdrObject (SdrModel &rSdrModel, SdrObject const &rSource) | |
SdrPage * | getSdrPageFromSdrObject () const |
SdrModel & | getSdrModelFromSdrObject () const |
virtual SdrObjList * | getChildrenOfSdrObject () const |
SdrObjList * | getParentSdrObjListFromSdrObject () const |
SdrObject * | getParentSdrObjectFromSdrObject () const |
void | AddObjectUser (sdr::ObjectUser &rNewUser) |
void | RemoveObjectUser (sdr::ObjectUser &rOldUser) |
sdr::contact::ViewContact & | GetViewContact () const |
virtual sdr::properties::BaseProperties & | GetProperties () const |
void | ActionChanged () const |
void | SetRelativeWidth (double nValue) |
void | SetRelativeWidthRelation (sal_Int16 eValue) |
void | SetRelativeHeight (double nValue) |
void | SetRelativeHeightRelation (sal_Int16 eValue) |
const double * | GetRelativeWidth () const |
sal_Int16 | GetRelativeWidthRelation () const |
const double * | GetRelativeHeight () const |
sal_Int16 | GetRelativeHeightRelation () const |
void | SetDiagramData (std::shared_ptr< DiagramDataInterface > pDiagramData) |
const std::shared_ptr< DiagramDataInterface > & | GetDiagramData () const |
virtual void | SetRectsDirty (bool bNotMyself=false, bool bRecursive=true) |
virtual void | SetBoundRectDirty () |
SfxItemPool & | GetObjectItemPool () const |
void | AddListener (SfxListener &rListener) |
void | RemoveListener (SfxListener &rListener) |
void | AddReference (SdrVirtObj &rVrtObj) |
void | DelReference (SdrVirtObj &rVrtObj) |
virtual SdrInventor | GetObjInventor () const |
virtual SdrLayerID | GetLayer () const |
virtual void | NbcSetLayer (SdrLayerID nLayer) |
virtual void | SetLayer (SdrLayerID nLayer) |
void | getMergedHierarchySdrLayerIDSet (SdrLayerIDSet &rSet) const |
void | SendUserCall (SdrUserCallType eUserCall, const tools::Rectangle &rBoundRect) const |
void | SetName (const OUString &rStr, const bool bSetChanged=true) |
OUString | GetName () const |
void | MakeNameUnique () |
void | MakeNameUnique (std::unordered_set< OUString > &rNameSet) |
void | SetTitle (const OUString &rStr) |
OUString | GetTitle () const |
void | SetDescription (const OUString &rStr) |
OUString | GetDescription () const |
bool | IsGroupObject () const |
virtual SdrObjList * | GetSubList () const |
sal_uInt32 | GetOrdNum () const |
The order number (aka ZOrder, aka z-index) determines whether a SdrObject is located above or below another. More... | |
void | SetOrdNum (sal_uInt32 nNum) |
void | GetGrabBagItem (css::uno::Any &rVal) const |
void | SetGrabBagItem (const css::uno::Any &rVal) |
sal_uInt32 | GetNavigationPosition () const |
virtual const tools::Rectangle & | GetCurrentBoundRect () const |
virtual const tools::Rectangle & | GetLastBoundRect () const |
virtual void | RecalcBoundRect () |
void | BroadcastObjectChange () const |
const SfxBroadcaster * | GetBroadcaster () const |
void | SingleObjectPainter (OutputDevice &rOut) const |
bool | LineGeometryUsageIsNecessary () const |
virtual bool | HasLimitedRotation () const |
SdrObject & | operator= (const SdrObject &rObj)=delete |
SdrObject & | operator= (SdrObject &&rObj)=delete |
virtual void | AddToPlusHdlList (SdrHdlList &rHdlList, SdrHdl &rHdl) const |
virtual void | addCropHandles (SdrHdlList &rTarget) const |
virtual bool | supportsFullDrag () const |
virtual void | NbcCrop (const basegfx::B2DPoint &rRef, double fxFact, double fyFact) |
void | NbcRotate (const Point &rRef, Degree100 nAngle) |
virtual void | Move (const Size &rSiz) |
virtual void | Resize (const Point &rRef, const Fraction &xFact, const Fraction &yFact, bool bUnsetRelative=true) |
virtual void | Crop (const basegfx::B2DPoint &rRef, double fxFact, double fyFact) |
virtual void | Rotate (const Point &rRef, Degree100 nAngle, double sn, double cs) |
virtual void | Mirror (const Point &rRef1, const Point &rRef2) |
virtual void | Shear (const Point &rRef, Degree100 nAngle, double tn, bool bVShear) |
virtual void | NbcSetRelativePos (const Point &rPnt) |
The relative position of a SdrObject is the distance of the upper left corner of the logic bounding rectangle (SnapRect) to the anchor. More... | |
virtual void | SetRelativePos (const Point &rPnt) |
virtual Point | GetRelativePos () const |
void | ImpSetAnchorPos (const Point &rPnt) |
virtual void | NbcSetAnchorPos (const Point &rPnt) |
virtual void | SetAnchorPos (const Point &rPnt) |
virtual void | SetSnapRect (const tools::Rectangle &rRect) |
virtual void | SetLogicRect (const tools::Rectangle &rRect) |
virtual bool | IsPolyObj () const |
virtual sal_uInt32 | GetPointCount () const |
virtual Point | GetPoint (sal_uInt32 i) const |
void | SetPoint (const Point &rPnt, sal_uInt32 i) |
virtual void | NbcSetPoint (const Point &rPnt, sal_uInt32 i) |
virtual std::unique_ptr< SdrObjGeoData > | GetGeoData () const |
virtual void | SetGeoData (const SdrObjGeoData &rGeo) |
const SfxItemSet & | GetMergedItemSet () const |
void | SetMergedItem (const SfxPoolItem &rItem) |
void | ClearMergedItem (const sal_uInt16 nWhich=0) |
void | SetMergedItemSet (const SfxItemSet &rSet, bool bClearAllItems=false) |
const SfxPoolItem & | GetMergedItem (const sal_uInt16 nWhich) const |
template<class T > | |
const T & | GetMergedItem (TypedWhichId< T > nWhich) const |
void | SetMergedItemSetAndBroadcast (const SfxItemSet &rSet, bool bClearAllItems=false) |
void | TakeNotPersistAttr (SfxItemSet &rAttr) const |
void | ApplyNotPersistAttr (const SfxItemSet &rAttr) |
void | NbcApplyNotPersistAttr (const SfxItemSet &rAttr) |
void | SetStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr) |
virtual void | NbcSetStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr) |
SfxStyleSheet * | GetStyleSheet () const |
void | SetOutlinerParaObject (std::unique_ptr< OutlinerParaObject > pTextObject) |
void | BurnInStyleSheetAttributes () |
virtual bool | HasMacro () const |
virtual SdrObject * | CheckMacroHit (const SdrObjMacroHitRec &rRec) const |
virtual PointerStyle | GetMacroPointer (const SdrObjMacroHitRec &rRec) const |
virtual void | PaintMacro (OutputDevice &rOut, const tools::Rectangle &rDirtyRect, const SdrObjMacroHitRec &rRec) const |
virtual bool | DoMacro (const SdrObjMacroHitRec &rRec) |
bool | IsMacroHit (const SdrObjMacroHitRec &rRec) const |
virtual SdrGluePoint | GetVertexGluePoint (sal_uInt16 nNum) const |
virtual SdrGluePoint | GetCornerGluePoint (sal_uInt16 nNum) const |
virtual const SdrGluePointList * | GetGluePointList () const |
virtual SdrGluePointList * | ForceGluePointList () |
void | SetGlueReallyAbsolute (bool bOn) |
void | NbcRotateGluePoints (const Point &rRef, Degree100 nAngle, double sn, double cs) |
void | NbcMirrorGluePoints (const Point &rRef1, const Point &rRef2) |
void | NbcShearGluePoints (const Point &rRef, double tn, bool bVShear) |
virtual void | ConnectToNode (bool bTail1, SdrObject *pObj) |
virtual void | DisconnectFromNode (bool bTail1) |
virtual SdrObject * | GetConnectedNode (bool bTail1) const |
virtual void | SetContextWritingMode (const sal_Int16 _nContextWritingMode) |
SdrObjectUniquePtr | ConvertToPolyObj (bool bBezier, bool bLineToArea) const |
SdrObject * | ConvertToContourObj (SdrObject *pRet, bool bForceLineDash=false) const |
bool | IsVirtualObj () const |
bool | IsClosedObj () const |
void | InsertedStateChange () |
bool | IsInserted () const |
bool | IsEdgeObj () const |
bool | Is3DObj () const |
bool | IsUnoObj () const |
void | SetMoveProtect (bool bProt) |
bool | IsMoveProtect () const |
void | SetResizeProtect (bool bProt) |
bool | IsResizeProtect () const |
void | SetPrintable (bool bPrn) |
bool | IsPrintable () const |
void | SetVisible (bool bVisible) |
bool | IsVisible () const |
void | SetMarkProtect (bool bProt) |
bool | IsMarkProtect () const |
virtual bool | shouldKeepAspectRatio () const |
Whether the aspect ratio should be kept by default when resizing. More... | |
sal_uInt16 | GetUserDataCount () const |
SdrObjUserData * | GetUserData (sal_uInt16 nNum) const |
void | AppendUserData (std::unique_ptr< SdrObjUserData > pData) |
void | DeleteUserData (sal_uInt16 nNum) |
virtual css::uno::Reference< css::uno::XInterface > | getUnoShape () |
svx::PropertyChangeNotifier & | getShapePropertyChangeNotifier () |
void | notifyShapePropertyChange (const svx::ShapeProperty _eProperty) const |
bool | IsInDestruction () const |
bool | HasFillStyle () const |
bool | HasLineStyle () const |
const tools::Rectangle & | GetBLIPSizeRectangle () const |
void | SetBLIPSizeRectangle (const tools::Rectangle &aRect) |
bool | Equals (const SdrObject &) const |
virtual bool | IsTextBox () const |
Is this a textbox of a drawinglayer shape? More... | |
void | SetEmptyPresObj (bool bEpt) |
bool | IsEmptyPresObj () const |
void | SetNotVisibleAsMaster (bool bFlg) |
bool | IsNotVisibleAsMaster () const |
void | SetUserCall (SdrObjUserCall *pUser) |
SdrObjUserCall * | GetUserCall () const |
void | SetDoNotInsertIntoPageAutomatically (bool bSet) |
bool | IsDoNotInsertIntoPageAutomatically () const |
sal_uInt32 | GetOrdNumDirect () const |
bool | DoesSupportTextIndentingOnLineWidthChange () const |
const Point & | GetAnchorPos () const |
bool | LineIsOutsideGeometry () const |
void | SetNavigationPosition (const sal_uInt32 nPosition) |
void | setUnoShape (const css::uno::Reference< css::uno::XInterface > &_rxUnoShape) |
const css::uno::WeakReference< css::uno::XInterface > & | getWeakUnoShape () const |
void | setSuitableOutlinerBg (Outliner &rOutliner) const |
const Graphic * | getFillGraphic () const |
![]() | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
![]() | |
WeakBase () | |
virtual | ~WeakBase () |
void | clearWeak () |
Static Public Member Functions | |
static CellPos | getFirstCell () |
![]() | |
static void | impDecomposeBlockTextPrimitiveDirect (drawinglayer::primitive2d::Primitive2DContainer &rTarget, SdrOutliner &rOutliner, const basegfx::B2DHomMatrix &rNewTransformA, const basegfx::B2DHomMatrix &rNewTransformB, const basegfx::B2DRange &rClipRange) |
static bool | HasTextImpl (SdrOutliner const *pOutliner) |
returns false if the given pointer is NULL or if the given SdrOutliner contains no text. More... | |
![]() | |
static SdrItemPool & | GetGlobalDrawObjectItemPool () |
static void | Free (SdrObject *&_rpObject) |
static SdrObject * | getSdrObjectFromXShape (const css::uno::Reference< css::uno::XInterface > &xInt) |
Private Member Functions | |
virtual | ~SdrTableObj () override |
void | init (sal_Int32 nColumns, sal_Int32 nRows) |
virtual std::unique_ptr< sdr::properties::BaseProperties > | CreateObjectSpecificProperties () override |
virtual std::unique_ptr< sdr::contact::ViewContact > | CreateObjectSpecificViewContact () override |
virtual std::unique_ptr< SdrObjGeoData > | NewGeoData () const override |
A derived class must override these 3 methods if it has own geometric data that must be saved for Undo. More... | |
virtual void | SaveGeoData (SdrObjGeoData &rGeo) const override |
virtual void | RestoreGeoData (const SdrObjGeoData &rGeo) override |
SdrOutliner * | GetCellTextEditOutliner (const sdr::table::Cell &rCell) const |
const TableLayouter & | getTableLayouter () const |
Private Attributes | |
tools::Rectangle | maLogicRect |
rtl::Reference< SdrTableObjImpl > | mpImpl |
Friends | |
class | Cell |
class | SdrTableObjImpl |
class | sdr::contact::ViewContactOfTableObj |
Definition at line 94 of file svdotable.hxx.
|
overrideprivatevirtual |
Definition at line 923 of file svdotable.cxx.
References mpImpl.
sdr::table::SdrTableObj::SdrTableObj | ( | SdrModel & | rSdrModel | ) |
sdr::table::SdrTableObj::SdrTableObj | ( | SdrModel & | rSdrModel, |
SdrTableObj const & | rSource | ||
) |
Definition at line 867 of file svdotable.cxx.
References SdrTextObj::aGeo, SdrTextObj::aTextSize, SdrTextObj::bDisableAutoWidthOnDragging, SdrTextObj::bNoShear, SdrTextObj::bTextFrame, SdrTextObj::bTextSizeDirty, SdrTextObj::eTextKind, init(), maLogicRect, SdrTextObj::maRect, and mpImpl.
sdr::table::SdrTableObj::SdrTableObj | ( | SdrModel & | rSdrModel, |
const ::tools::Rectangle & | rNewRect, | ||
sal_Int32 | nColumns, | ||
sal_Int32 | nRows | ||
) |
Definition at line 889 of file svdotable.cxx.
References init().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2083 of file svdotable.cxx.
References SdrHdlList::AddHdl(), tools::Rectangle::BottomCenter(), tools::Rectangle::BottomLeft(), tools::Rectangle::BottomRight(), sdr::table::TableLayouter::getBorderLine(), sdr::table::TableLayouter::getColumnWidth(), SdrHdlList::GetHdl(), SdrHdlList::GetHdlCount(), sdr::table::TableLayouter::getRowHeight(), sdr::table::Invisible, sdr::table::TableLayouter::isEdgeVisible(), IsTextEditActive(), Left, tools::Rectangle::LeftCenter(), Lower, LowerLeft, LowerRight, SdrTextObj::maRect, SdrHdlList::MoveTo(), mpImpl, Point, Right, tools::Rectangle::RightCenter(), SdrHdl::SetMoveOutside(), SdrHdl::SetObj(), tools::Rectangle::TopCenter(), tools::Rectangle::TopLeft(), tools::Rectangle::TopRight(), Upper, UpperLeft, UpperRight, and sdr::table::Visible.
void sdr::table::SdrTableObj::AddUndo | ( | SdrUndoAction * | pUndo | ) |
Add an undo action that should be on the undo stack after ending text edit.
Definition at line 2051 of file svdotable.cxx.
References mpImpl.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1983 of file svdotable.cxx.
References tools::Rectangle::IsEmpty(), and mpImpl.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1964 of file svdotable.cxx.
References SdrObject::BroadcastObjectChange(), SdrObject::GetLastBoundRect(), SdrObject::m_pUserCall, maLogicRect, SdrTextObj::maRect, Resize, SdrObject::SendUserCall(), SetChanged(), and SdrObject::SetRectsDirty().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 1936 of file svdotable.cxx.
References GetLogicRect(), tools::Rectangle::setHeight(), and SdrObject::SetLogicRect().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2212 of file svdotable.cxx.
References SdrDragStat::GetDX(), SdrDragStat::GetDY(), SdrDragStat::GetHdl(), SdrHdl::GetKind(), SdrHdl::GetPointNum(), sdr::table::TableEdgeHdl::GetValidDragOffset(), SdrTextObj::ImpDragCalcRect(), sdr::table::TableEdgeHdl::IsHorizontalEdge(), SdrObject::IsInserted(), Left, Lower, LowerLeft, LowerRight, SdrTextObj::maRect, Move, mpImpl, NbcMove(), NbcSetLogicRect(), Right, SdrDragStat::SetEndDragChangesAttributes(), SdrDragStat::SetEndDragChangesLayout(), SdrDragStat::SetNoSnap(), Upper, UpperLeft, UpperRight, and User.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2331 of file svdotable.cxx.
|
overridevirtual |
Every object must be able to create itself interactively.
On MouseDown first an object is created, and its BegCreate() method is called. On every MouseMove, MovCreate() is called. BrkCreate() is called if the user cancels the interactive object creation. EndCreate() is called on the MouseUp event. If EndCreate() returns true, the creation is finished; the object is inserted into the corresponding list. Otherwise it is assumed that further points are necessary to create the object (Polygon, ...). The parameter eCmd contains the number of mouse clicks (if the application provides it). BckCreate() will undo the previous EndCreate(), e.g. to delete the last point of the Polygon. If BckCreate() returns false, creation is cancelled.
Reimplemented from SdrTextObj.
Definition at line 2295 of file svdotable.cxx.
References SdrDragStat::GetNow(), SdrDragStat::GetStart(), tools::Rectangle::Justify(), SdrTextObj::maRect, SdrDragStat::SetActionRect(), and SdrDragStat::SetOrtho4Possible().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 2176 of file svdotable.cxx.
References SdrDragStat::GetHdl(), SdrHdl::GetKind(), Left, Lower, LowerLeft, LowerRight, Move, Right, SdrDragStat::SetEndDragChangesAttributes(), SdrDragStat::SetNoSnap(), Upper, UpperLeft, UpperRight, and User.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1809 of file svdotable.cxx.
References Outliner::ClearModifyFlag(), Outliner::GetControlWord(), GetOutlinerParaObject(), SdrObject::getSdrModelFromSdrObject(), Outliner::GetUpdateMode(), Outliner::Init(), SdrTextObj::mbInEditMode, SdrTextObj::pEdtOutl, Outliner::SetControlWord(), Outliner::SetMaxAutoPaperSize(), Outliner::SetMinAutoPaperSize(), Outliner::SetPaperSize(), Outliner::SetRefDevice(), Outliner::SetText(), Outliner::SetUpdateMode(), TakeTextEditArea(), and Outliner::UpdateFields().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2326 of file svdotable.cxx.
Definition at line 1597 of file svdotable.cxx.
References mpImpl.
TableHitKind sdr::table::SdrTableObj::CheckTableHit | ( | const Point & | rPos, |
sal_Int32 & | rnX, | ||
sal_Int32 & | rnY, | ||
const sal_uInt16 | aTol = 0 |
||
) | const |
Definition at line 1182 of file svdotable.cxx.
References sdr::table::Cell, sdr::table::CellTextArea, sdr::table::findMergeOrigin(), tools::Rectangle::GetHeight(), SdrTextObj::GetTextLeftDistance(), tools::Rectangle::GetWidth(), GetWritingMode(), sdr::table::HorizontalBorder, i, tools::Rectangle::Left(), SdrTextObj::maRect, mpImpl, sdr::table::NONE, tools::Rectangle::Top(), and sdr::table::VerticallBorder.
Referenced by CheckTextHit(), sdr::table::SvxTableController::onMouseMove(), SdrView::PickAnything(), and sdr::table::SvxTableController::setCursorLogicPosition().
|
overridevirtual |
Returns the index of the text that contains the given point or -1.
returns the index of the text that contains the given point or -1
Reimplemented from SdrTextObj.
Definition at line 1390 of file svdotable.cxx.
References sdr::table::CellTextArea, CheckTableHit(), sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, and mpImpl.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1780 of file svdotable.cxx.
References SdrTableObj().
Referenced by sdr::table::SvxTableController::GetMarkedSdrObjClone().
void sdr::table::SdrTableObj::createCell | ( | sdr::table::CellRef & | xCell | ) |
Definition at line 2356 of file svdotable.cxx.
Referenced by sdr::table::TableModel::createCell().
|
overrideprivatevirtual |
Reimplemented from SdrTextObj.
Definition at line 847 of file svdotable.cxx.
|
overrideprivatevirtual |
Reimplemented from SdrTextObj.
Definition at line 856 of file svdotable.cxx.
bool sdr::table::SdrTableObj::createTableEdgesJson | ( | boost::property_tree::ptree & | rJsonRoot | ) |
Definition at line 2456 of file svdotable.cxx.
References aEntries, convertMm100ToTwip(), SdrObject::GetCurrentBoundRect(), tools::Rectangle::Left(), mpImpl, and tools::Rectangle::Top().
Referenced by SdrMarkView::SetMarkHandlesForLOKit().
void sdr::table::SdrTableObj::CropTableModelToSelection | ( | const CellPos & | rStart, |
const CellPos & | rEnd | ||
) |
Definition at line 2390 of file svdotable.cxx.
References mpImpl.
Referenced by sdr::table::SvxTableController::GetMarkedSdrObjClone().
void sdr::table::SdrTableObj::DistributeColumns | ( | sal_Int32 | nFirstColumn, |
sal_Int32 | nLastColumn, | ||
const bool | bOptimize, | ||
const bool | bMinimize | ||
) |
Definition at line 2400 of file svdotable.cxx.
References SdrTextObj::maRect, and mpImpl.
Referenced by sdr::table::SvxTableController::DistributeColumns().
void sdr::table::SdrTableObj::DistributeRows | ( | sal_Int32 | nFirstRow, |
sal_Int32 | nLastRow, | ||
const bool | bOptimize, | ||
const bool | bMinimize | ||
) |
Definition at line 2410 of file svdotable.cxx.
References SdrTextObj::maRect, and mpImpl.
Referenced by sdr::table::SvxTableController::DistributeRows().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 2444 of file svdotable.cxx.
References SdrObject::dumpAsXml(), mpImpl, and void().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2319 of file svdotable.cxx.
References ForceEnd, SdrDragStat::GetPointCount(), SdrTextObj::ImpJustifyRect(), SdrTextObj::maRect, and SdrDragStat::TakeCreateRect().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1850 of file svdotable.cxx.
References SdrModel::AddUndo(), Outliner::Clear(), Outliner::CreateParaObject(), Outliner::GetControlWord(), Outliner::GetParagraph(), Outliner::GetParagraphCount(), SdrObject::getSdrModelFromSdrObject(), Outliner::IsModified(), SdrTextObj::mbInEditMode, mpImpl, SdrTextObj::pEdtOutl, Outliner::SetControlWord(), SdrObject::SetOutlinerParaObject(), and Outliner::UpdateFields().
const CellRef & sdr::table::SdrTableObj::getActiveCell | ( | ) | const |
The active table has the focus or is currently edited.
Definition at line 1568 of file svdotable.cxx.
References mpImpl, and setActiveCell().
Referenced by accessibility::AccessibleTableShape::GetActiveAccessibleCell(), GetActiveCellItemSet(), getActiveText(), GetOutlinerParaObject(), GetOutlinerViewAnchorMode(), NbcSetOutlinerParaObject(), and SvxTextEditSourceImpl::Notify().
const SfxItemSet & sdr::table::SdrTableObj::GetActiveCellItemSet | ( | ) | const |
Definition at line 1297 of file svdotable.cxx.
References getActiveCell().
Referenced by GetTextEditBackgroundColor().
void sdr::table::SdrTableObj::getActiveCellPos | ( | sdr::table::CellPos & | rPos | ) | const |
Definition at line 1630 of file svdotable.cxx.
References mpImpl.
Referenced by accessibility::AccessibleTableShape::GetActiveAccessibleCell(), and sdr::table::SvxTableController::onSelectionHasChanged().
|
overridevirtual |
Returns the currently active text.
returns the currently active text.
Reimplemented from SdrTextObj.
Definition at line 1332 of file svdotable.cxx.
References getActiveCell().
void sdr::table::SdrTableObj::getCellBounds | ( | const sdr::table::CellPos & | rPos, |
::tools::Rectangle & | rCellRect | ||
) |
Definition at line 1636 of file svdotable.cxx.
References mpImpl.
Referenced by sdr::table::SvxTableController::updateSelectionOverlay().
|
private |
Definition at line 1402 of file svdotable.cxx.
References mpImpl, and SdrTextObj::pEdtOutl.
sal_Int32 sdr::table::SdrTableObj::getColumnCount | ( | ) | const |
Definition at line 1587 of file svdotable.cxx.
References mpImpl.
|
overridevirtual |
get the cursor/pointer that signals creating this object
Reimplemented from SdrTextObj.
Definition at line 2350 of file svdotable.cxx.
Definition at line 1006 of file svdotable.cxx.
References getNextCell(), getNextRow(), and GetWritingMode().
Referenced by sdr::table::SvxTableController::executeAction().
|
static |
Definition at line 944 of file svdotable.cxx.
Referenced by sdr::table::SvxTableController::executeAction(), sdr::table::SvxTableController::getKeyboardAction(), and sdr::table::SvxTableController::onSelectionHasChanged().
|
overridevirtual |
Via GetHdlCount the number of Handles can be retrieved.
Normally 8, if it's a line 2. For Polygon objects (Polygon/Spline/Bezier) the number may be much larger. Polygon objects are also allowed to select a point of a selected object. The handle of that point will then be replaced by a new set of handles (PlusHdl). For a Polygon this would be a simple selection Handle, for a Bezier curve this may be up to 3 Handles (including Weights). GetHdl() and GetPlusHdl() must create Handle instances with new! An object that returns true from HasSpacialDrag() must provide these methods (incl. FillHdlList()).
Reimplemented from SdrTextObj.
Definition at line 2071 of file svdotable.cxx.
References SdrTextObj::GetHdlCount(), mpImpl, and nCount.
CellPos sdr::table::SdrTableObj::getLastCell | ( | ) | const |
Definition at line 950 of file svdotable.cxx.
References sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, and mpImpl.
Referenced by sdr::table::SvxTableController::executeAction(), and sdr::table::SvxTableController::onSelectionHasChanged().
Definition at line 962 of file svdotable.cxx.
References getNextCell(), getPreviousCell(), getPreviousRow(), and GetWritingMode().
Referenced by sdr::table::SvxTableController::executeAction().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1798 of file svdotable.cxx.
References maLogicRect.
Referenced by AdjustToMaxRect().
Definition at line 1047 of file svdotable.cxx.
References sdr::table::findMergeOrigin(), sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, and mpImpl.
Referenced by sdr::table::SvxTableController::executeAction(), getDownCell(), getLeftCell(), and getRightCell().
Definition at line 1115 of file svdotable.cxx.
References sdr::table::findMergeOrigin(), sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, and mpImpl.
Referenced by getDownCell(), and getRightCell().
|
overridevirtual |
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1890 of file svdotable.cxx.
References getActiveCell().
Referenced by BegTextEdit(), and sdr::table::SvxTableController::EditCell().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1730 of file svdotable.cxx.
References getActiveCell(), SDRTEXTVERTADJUST_BOTTOM, and SDRTEXTVERTADJUST_TOP.
Definition at line 1020 of file svdotable.cxx.
References sdr::table::findMergeOrigin(), sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, and mpImpl.
Referenced by sdr::table::SvxTableController::executeAction(), getLeftCell(), getRightCell(), and getUpCell().
Definition at line 1089 of file svdotable.cxx.
References sdr::table::findMergeOrigin(), sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, and mpImpl.
Referenced by getLeftCell(), and getUpCell().
Definition at line 977 of file svdotable.cxx.
References getNextCell(), getNextRow(), getPreviousCell(), and GetWritingMode().
Referenced by sdr::table::SvxTableController::executeAction().
sal_Int32 sdr::table::SdrTableObj::getRowCount | ( | ) | const |
Definition at line 1592 of file svdotable.cxx.
References mpImpl.
|
overridevirtual |
Reimplemented from SdrAttrObj.
Definition at line 1786 of file svdotable.cxx.
References SdrTextObj::maRect.
Referenced by sdr::table::SdrTableRTFParser::FillTable().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 2273 of file svdotable.cxx.
References SdrDragStat::GetHdl(), SdrHdl::GetKind(), sdr::table::TableEdgeHdl::getSpecialDragPoly(), and User.
Reference< XTable > sdr::table::SdrTableObj::getTable | ( | ) | const |
Definition at line 932 of file svdotable.cxx.
References mpImpl.
Referenced by sdr::contact::ViewContactOfTableObj::createViewIndependentPrimitive2DSequence(), and sdr::table::SvxTableController::PasteObject().
|
private |
Definition at line 1410 of file svdotable.cxx.
References assert(), and mpImpl.
Referenced by sdr::contact::ViewContactOfTableObj::createViewIndependentPrimitive2DSequence().
const Reference< XIndexAccess > & sdr::table::SdrTableObj::getTableStyle | ( | ) | const |
Definition at line 1314 of file svdotable.cxx.
References mpImpl.
Referenced by sdr::table::TableStyleUndo::getData().
const TableStyleSettings & sdr::table::SdrTableObj::getTableStyleSettings | ( | ) | const |
Definition at line 1158 of file svdotable.cxx.
References mpImpl.
Referenced by sdr::table::TableStyleUndo::getData(), sdr::table::SvxTableController::isColumnHeader(), sdr::table::SvxTableController::isRowHeader(), and sdr::table::SvxTableController::SetTableStyleSettings().
|
overridevirtual |
Returns the nth available text.
returns the nth available text.
Reimplemented from SdrTextObj.
Definition at line 1339 of file svdotable.cxx.
References mpImpl.
Referenced by sdr::contact::ViewContactOfTableObj::createViewIndependentPrimitive2DSequence().
|
overridevirtual |
Returns the number of texts available for this object.
returns the number of texts available for this object.
Reimplemented from SdrTextObj.
Definition at line 1357 of file svdotable.cxx.
References mpImpl.
Definition at line 992 of file svdotable.cxx.
References getPreviousCell(), getPreviousRow(), and GetWritingMode().
Referenced by sdr::table::SvxTableController::executeAction().
WritingMode sdr::table::SdrTableObj::GetWritingMode | ( | ) | const |
Definition at line 2026 of file svdotable.cxx.
References EE_PARA_WRITINGDIR(), SfxStyleSheetBase::GetItemSet(), SfxItemSet::GetItemState(), SdrObject::GetStyleSheet(), SDRATTR_TEXTDIRECTION(), and WritingMode.
Referenced by CheckTableHit(), sdr::contact::ViewContactOfTableObj::createViewIndependentPrimitive2DSequence(), sdr::table::SdrTableObjImpl::DragEdge(), sdr::table::SvxTableController::EditCell(), getDownCell(), getLeftCell(), getRightCell(), getUpCell(), and sdr::table::SdrTableObjImpl::LayoutTable().
|
overridevirtual |
The standard transformations (Move,Resize,Rotate,Mirror,Shear) are taken over by the View (TakeXorPoly(),...).
Object type specific dragging like corner radius of Rectangle, control points of Splines, weights of Bezier curves, pointer of Label objects must be handled by the object itself. To keep the Model free of state, the state is kept in the View and then passed to the object. EndDrag usually returns true for success, false may be returned if the dragging did not modify the object, where the View already handles the case that the pointer was not moved at all.
Reimplemented from SdrTextObj.
Definition at line 2171 of file svdotable.cxx.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1426 of file svdotable.cxx.
|
private |
Definition at line 907 of file svdotable.cxx.
References tools::Rectangle::IsEmpty(), SdrObject::m_bClosedObj, maLogicRect, SdrTextObj::maRect, mpImpl, and SdrTableObjImpl.
Referenced by SdrTableObj().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1416 of file svdotable.cxx.
Referenced by sdr::table::SdrTableObjImpl::LayoutTable().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1421 of file svdotable.cxx.
Referenced by sdr::table::SdrTableObjImpl::LayoutTable().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2066 of file svdotable.cxx.
|
overridevirtual |
Returns true only if we are in edit mode and the user actually changed anything.
Reimplemented from SdrTextObj.
Definition at line 2061 of file svdotable.cxx.
References Outliner::IsModified(), and SdrTextObj::pEdtOutl.
Referenced by sdr::table::SdrTableObjImpl::LayoutTable().
|
inline |
Definition at line 181 of file svdotable.hxx.
Referenced by AddToHdlList(), sdr::table::SvxTableController::EditCell(), sdr::table::SvxTableController::MergeMarkedCells(), sdr::table::SvxTableController::onDelete(), sdr::table::SvxTableController::onInsert(), sdr::table::SvxTableController::onSelectionHasChanged(), and sdr::table::SvxTableController::SplitMarkedCells().
bool sdr::table::SdrTableObj::IsTextEditActive | ( | const sdr::table::CellPos & | rPos | ) |
Definition at line 1431 of file svdotable.cxx.
References mpImpl, and SdrTextObj::pEdtOutl.
bool sdr::table::SdrTableObj::isValid | ( | const sdr::table::CellPos & | rPos | ) | const |
Definition at line 938 of file svdotable.cxx.
References sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, and mpImpl.
Referenced by setActiveText().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2009 of file svdotable.cxx.
References SdrObject::GetObjectItem(), SvxWritingModeItem::GetValue(), and SDRATTR_TEXTDIRECTION().
Referenced by sdr::table::SvxTableController::EditCell(), SetVerticalWriting(), and TakeTextEditArea().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2306 of file svdotable.cxx.
References SdrTextObj::ImpJustifyRect(), SdrObject::m_bSnapRectDirty, SdrTextObj::maRect, SdrDragStat::SetActionRect(), SdrObject::SetBoundRectDirty(), and SdrDragStat::TakeCreateRect().
The methods Move, Resize, Rotate, Mirror, Shear, SetSnapRect and SetLogicRect call the corresponding Nbc-methods, send a Repaint broadcast and set the Modified state on the Model.
Derived classes should usually only override the Nbc methods. Nbc means "no broadcast".
Reimplemented from SdrTextObj.
Definition at line 1944 of file svdotable.cxx.
References maLogicRect, SdrTextObj::maRect, tools::Rectangle::Move(), mpImpl, and SdrTextObj::NbcMove().
Referenced by applySpecialDrag().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2003 of file svdotable.cxx.
References SdrTextObj::NbcAdjustTextFrameWidthAndHeight().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1953 of file svdotable.cxx.
References tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), maLogicRect, SdrTextObj::maRect, SdrTextObj::NbcAdjustTextFrameWidthAndHeight(), ResizeRect(), and SdrObject::SetRectsDirty().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1920 of file svdotable.cxx.
References tools::Rectangle::getHeight(), tools::Rectangle::getWidth(), SdrTextObj::ImpJustifyRect(), maLogicRect, SdrTextObj::maRect, mpImpl, SdrTextObj::NbcAdjustTextFrameWidthAndHeight(), and SdrObject::SetRectsDirty().
Referenced by applySpecialDrag(), and NbcSetSnapRect().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1900 of file svdotable.cxx.
References getActiveCell(), SdrModel::GetHitTestOutliner(), SdrTextObj::GetOutlinerParaObject(), SdrObject::getSdrModelFromSdrObject(), SdrTextObj::NbcAdjustTextFrameWidthAndHeight(), SdrOutliner::SetTextObj(), and SdrTextObj::SetTextSizeDirty().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1792 of file svdotable.cxx.
References NbcSetLogicRect().
Referenced by sdr::table::SdrTableRTFParser::FillTable().
|
overrideprivatevirtual |
A derived class must override these 3 methods if it has own geometric data that must be saved for Undo.
NewGeoData() creates an empty instance of a class derived from SdrObjGeoData.
Reimplemented from SdrTextObj.
Definition at line 2362 of file svdotable.cxx.
|
overridevirtual |
called from the SdrObjEditView during text edit when the status of the edit outliner changes
Reimplemented from SdrTextObj.
Definition at line 1437 of file svdotable.cxx.
References SdrObject::ActionChanged(), SdrObject::BroadcastObjectChange(), EditStatus::GetStatusWord(), maLogicRect, SdrTextObj::maRect, mpImpl, Resize, SdrObject::SendUserCall(), and SdrObject::SetRectsDirty().
|
overridevirtual |
Snap is not done on the BoundRect but if possible on logic coordinates (i.e.
without considering stroke width, ...) SetSnapRect() tries to size the Object so that it fits into the passed Rect (without stroke width, ...)
Reimplemented from SdrTextObj.
Definition at line 1804 of file svdotable.cxx.
|
overrideprivatevirtual |
Reimplemented from SdrTextObj.
Definition at line 2377 of file svdotable.cxx.
References SdrObject::ActionChanged(), DBG_ASSERT, maLogicRect, SdrTextObj::maRect, mpImpl, and SdrTextObj::RestoreGeoData().
|
overrideprivatevirtual |
Reimplemented from SdrTextObj.
Definition at line 2368 of file svdotable.cxx.
References DBG_ASSERT, maLogicRect, and SdrTextObj::SaveGeoData().
void sdr::table::SdrTableObj::setActiveCell | ( | const sdr::table::CellPos & | rPos | ) |
Definition at line 1603 of file svdotable.cxx.
References Exception, sdr::table::findMergeOrigin(), sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, mpImpl, and TOOLS_WARN_EXCEPTION.
Referenced by sdr::table::SvxTableController::EditCell(), getActiveCell(), setActiveText(), and sdr::table::SdrTableObjImpl::update().
|
overridevirtual |
Changes the current active text.
changes the current active text
Reimplemented from SdrTextObj.
Definition at line 1374 of file svdotable.cxx.
References isValid(), mpImpl, and setActiveCell().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 2420 of file svdotable.cxx.
References SdrTextObj::maRect, mpImpl, and SdrObject::SetChanged().
Referenced by AdjustTextFrameWidthAndHeight().
void sdr::table::SdrTableObj::SetSkipChangeLayout | ( | bool | bSkipChangeLayout | ) |
Next time layouting would be done, skip it (to layout at the end of multiple actions).
Definition at line 2056 of file svdotable.cxx.
References mpImpl.
Referenced by SdrUndoGeoObj::Undo().
void sdr::table::SdrTableObj::setTableStyle | ( | const css::uno::Reference< css::container::XIndexAccess > & | xAutoFormatStyle | ) |
Definition at line 1302 of file svdotable.cxx.
References mpImpl.
Referenced by sdr::table::TableStyleUndo::setData(), and sdr::table::SvxTableController::SetTableStyle().
void sdr::table::SdrTableObj::setTableStyleSettings | ( | const sdr::table::TableStyleSettings & | rStyle | ) |
Definition at line 1172 of file svdotable.cxx.
References mpImpl.
Referenced by sdr::table::TableStyleUndo::setData(), and sdr::table::SvxTableController::SetTableStyleSettings().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2016 of file svdotable.cxx.
References IsVerticalWriting(), SDRATTR_TEXTDIRECTION(), and SdrObject::SetObjectItem().
Referenced by sdr::properties::CellProperties::ItemChange().
|
overridevirtual |
Polygon dragged by the user when creating the object.
Reimplemented from SdrTextObj.
Definition at line 2337 of file svdotable.cxx.
References basegfx::B2DPolyPolygon::append(), vcl::unotools::b2DRectangleFromRectangle(), basegfx::utils::createPolygonFromRect(), tools::Rectangle::Justify(), and SdrDragStat::TakeCreateRect().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1453 of file svdotable.cxx.
References SdrObjTransformInfoRec::bCanConvToContour, SdrObjTransformInfoRec::bCanConvToPath, SdrObjTransformInfoRec::bCanConvToPathLineToArea, SdrObjTransformInfoRec::bCanConvToPoly, SdrObjTransformInfoRec::bCanConvToPolyLineToArea, SdrObjTransformInfoRec::bEdgeRadiusAllowed, SdrObjTransformInfoRec::bMirror45Allowed, SdrObjTransformInfoRec::bMirror90Allowed, SdrObjTransformInfoRec::bMirrorFreeAllowed, SdrObjTransformInfoRec::bResizeFreeAllowed, SdrObjTransformInfoRec::bResizePropAllowed, SdrObjTransformInfoRec::bRotate90Allowed, SdrObjTransformInfoRec::bRotateFreeAllowed, SdrObjTransformInfoRec::bShearAllowed, and SdrObjTransformInfoRec::bTransparenceAllowed.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1774 of file svdotable.cxx.
References SvxResId().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1757 of file svdotable.cxx.
References aName, SdrObject::GetName(), sName, and SvxResId().
void sdr::table::SdrTableObj::TakeTextAnchorRect | ( | const sdr::table::CellPos & | rPos, |
::tools::Rectangle & | rAnchorRect | ||
) | const |
Referenced by TakeTextEditArea().
|
overridevirtual |
Reimplemented from SdrTextObj.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1670 of file svdotable.cxx.
References mpImpl.
Referenced by BegTextEdit().
void sdr::table::SdrTableObj::TakeTextEditArea | ( | const sdr::table::CellPos & | rPos, |
Size * | pPaperMin, | ||
Size * | pPaperMax, | ||
tools::Rectangle * | pViewInit, | ||
tools::Rectangle * | pViewMin | ||
) | const |
Definition at line 1677 of file svdotable.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustTop(), Size::AdjustWidth(), SdrObject::getSdrModelFromSdrObject(), tools::Rectangle::GetSize(), Size::Height(), IsVerticalWriting(), mpImpl, SDRTEXTVERTADJUST_BOTTOM, SDRTEXTVERTADJUST_TOP, tools::Rectangle::SetBottom(), Size::setHeight(), Size::setWidth(), TakeTextAnchorRect(), and tools::Rectangle::Top().
void sdr::table::SdrTableObj::TakeTextRect | ( | const sdr::table::CellPos & | rPos, |
SdrOutliner & | rOutliner, | ||
::tools::Rectangle & | rTextRect, | ||
bool | bNoEditText, | ||
::tools::Rectangle * | pAnchorRect | ||
) | const |
At the same time, we set the text in the outliner (if applicable the EditOutliners') as well as the PaperSize.
Referenced by TakeTextRect().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1480 of file svdotable.cxx.
References mpImpl, and TakeTextRect().
void sdr::table::SdrTableObj::uno_lock | ( | ) |
Definition at line 2431 of file svdotable.cxx.
References mpImpl.
void sdr::table::SdrTableObj::uno_unlock | ( | ) |
Definition at line 2438 of file svdotable.cxx.
References mpImpl.
|
friend |
Definition at line 96 of file svdotable.hxx.
|
friend |
Definition at line 278 of file svdotable.hxx.
|
friend |
Definition at line 97 of file svdotable.hxx.
Referenced by init().
|
private |
Definition at line 281 of file svdotable.hxx.
Referenced by AdjustTextFrameWidthAndHeight(), GetLogicRect(), sdr::table::SdrTableObjImpl::init(), init(), NbcMove(), NbcResize(), NbcSetLogicRect(), onEditOutlinerStatusEvent(), sdr::table::SdrTableObjImpl::operator=(), RestoreGeoData(), SaveGeoData(), SdrTableObj(), and sdr::table::SdrTableObjImpl::update().
|
private |
Definition at line 282 of file svdotable.hxx.
Referenced by AddToHdlList(), AddUndo(), AdjustTextFrameWidthAndHeight(), applySpecialDrag(), changeEdge(), CheckTableHit(), CheckTextHit(), createTableEdgesJson(), CropTableModelToSelection(), DistributeColumns(), DistributeRows(), dumpAsXml(), EndTextEdit(), getActiveCell(), getActiveCellPos(), getCellBounds(), GetCellTextEditOutliner(), getColumnCount(), GetHdlCount(), getLastCell(), getNextCell(), getNextRow(), getPreviousCell(), getPreviousRow(), getRowCount(), getTable(), getTableLayouter(), getTableStyle(), getTableStyleSettings(), getText(), getTextCount(), init(), IsTextEditActive(), isValid(), NbcMove(), NbcSetLogicRect(), onEditOutlinerStatusEvent(), RestoreGeoData(), SdrTableObj(), setActiveCell(), setActiveText(), SetChanged(), SetSkipChangeLayout(), setTableStyle(), setTableStyleSettings(), TakeTextEditArea(), TakeTextRect(), uno_lock(), uno_unlock(), and ~SdrTableObj().