47 OutlinerMode nOutlinerMode = OutlinerMode::OutlineObject;
49 nOutlinerMode = OutlinerMode::TextObject;
50 rOutl.
Init( nOutlinerMode );
59 nStat|=EEControlBits::AUTOPAGESIZE;
61 nStat|=EEControlBits::STRETCHING;
76 if(pOutlinerParaObject!=
nullptr)
116 if(pOutlinerParaObject)
134 Size aPaperMin,aPaperMax;
140 Point aCenter0(aCenter);
143 aViewInit.
Move(aCenter.
X(),aCenter.
Y());
147 Size aMaxSiz(1000000,1000000);
162 if (nMinWdt<1) nMinWdt=1;
163 if (nMinHgt<1) nMinHgt=1;
165 if (nMaxWdt==0 || nMaxWdt>aMaxSiz.
Width()) nMaxWdt=aMaxSiz.
Width();
166 if (nMaxHgt==0 || nMaxHgt>aMaxSiz.
Height()) nMaxHgt=aMaxSiz.
Height();
170 nMinWdt = aAnkSiz.
Width();
176 nMinHgt = aAnkSiz.
Height();
194 if (!bChainedFrame) {
229 if (pViewMin!=
nullptr) {
259 if (pPaperMin!=
nullptr) *pPaperMin=aPaperMin;
260 if (pPaperMax!=
nullptr) *pPaperMax=aPaperMax;
261 if (pViewInit!=
nullptr) *pViewInit=aViewInit;
311 eRet=EEAnchorMode::TopLeft;
313 eRet=EEAnchorMode::BottomLeft;
315 eRet=EEAnchorMode::VCenterLeft;
319 eRet=EEAnchorMode::TopRight;
321 eRet=EEAnchorMode::BottomRight;
323 eRet=EEAnchorMode::VCenterRight;
327 eRet=EEAnchorMode::TopHCenter;
329 eRet=EEAnchorMode::BottomHCenter;
331 eRet=EEAnchorMode::VCenterHCenter;
double mfCosRotationAngle
double mfSinRotationAngle
Degree100 m_nRotationAngle
void SetMaxAutoPaperSize(const Size &rSz)
void SetText(const OutlinerParaObject &)
void ClearOverflowingParaNum()
void SetTextColumns(sal_Int16 nColumns, sal_Int32 nSpacing)
Paragraph * GetParagraph(sal_Int32 nAbsPos) const
void SetMinAutoPaperSize(const Size &rSz)
std::optional< OutlinerParaObject > CreateParaObject(sal_Int32 nStartPara=0, sal_Int32 nParaCount=EE_PARA_ALL) const
void SetPaperSize(const Size &rSize)
void SetStyleSheet(sal_Int32 nPara, SfxStyleSheet *pStyle)
bool SetUpdateLayout(bool bUpdate)
void SetParaAttribs(sal_Int32 nPara, const SfxItemSet &)
void SetFixedCellHeight(bool bUseFixedCellHeight)
EEControlBits GetControlWord() const
void SetControlWord(EEControlBits nWord)
void SetRefDevice(OutputDevice *pRefDev)
void Init(OutlinerMode nMode)
sal_Int32 GetParagraphCount() const
constexpr tools::Long Y() const
constexpr tools::Long X() const
const SfxPoolItem & GetMergedItem(const sal_uInt16 nWhich) const
void SetOutlinerParaObject(std::optional< OutlinerParaObject > pTextObject)
void BroadcastObjectChange() const
SdrModel & getSdrModelFromSdrObject() const
SfxStyleSheet * GetStyleSheet() const
const SfxItemSet & GetObjectItemSet() const
SdrTextHorzAdjust GetTextHorizontalAdjust() const
virtual bool IsAutoGrowWidth() const
tools::Long GetMaxTextFrameHeight() const
virtual void TakeTextEditArea(Size *pPaperMin, Size *pPaperMax, tools::Rectangle *pViewInit, tools::Rectangle *pViewMin) const
sal_Int32 GetTextColumnsSpacing() const
tools::Long GetMinTextFrameHeight() const
bool IsAutoFit() const
returns true if the PPT autofit of text into shape bounds is enabled. implies IsFitToSize()==false!
virtual bool BegTextEdit(SdrOutliner &rOutl)
bool IsFitToSize() const
returns true if the old feature for fitting shape content should into shape is enabled....
bool IsInEditMode() const
static void ImpSetCharStretching(SdrOutliner &rOutliner, const Size &rTextSize, const Size &rShapeSize, Fraction &rFitXCorrection)
virtual SdrText * getActiveText() const
returns the currently active text.
SdrOutliner * mpEditingOutliner
tools::Long GetMaxTextFrameWidth() const
virtual void TakeTextAnchorRect(::tools::Rectangle &rAnchorRect) const
void ImpSetContourPolygon(SdrOutliner &rOutliner, tools::Rectangle const &rAnchorRect, bool bLineWidth) const
virtual OutlinerParaObject * GetOutlinerParaObject() const override
virtual bool HasTextEdit() const override
virtual bool IsAutoGrowHeight() const
void ImpAutoFitText(SdrOutliner &rOutliner) const
virtual bool IsFontwork() const
SdrTextAniDirection GetTextAniDirection() const
void ImpSetTextEditParams() const
bool IsContourTextFrame() const
static bool HasTextImpl(SdrOutliner const *pOutliner)
returns false if the given pointer is NULL or if the given SdrOutliner contains no text.
virtual void TakeTextRect(SdrOutliner &rOutliner, tools::Rectangle &rTextRect, bool bNoEditText, tools::Rectangle *pAnchorRect, bool bLineWidth=true) const
tools::Long GetMinTextFrameWidth() const
SdrTextVertAdjust GetTextVerticalAdjust() const
TextChain * GetTextChain() const
SdrTextAniKind GetTextAniKind() const
virtual EEAnchorMode GetOutlinerViewAnchorMode() const
virtual void EndTextEdit(SdrOutliner &rOutl)
sal_Int16 GetTextColumnsNumber() const
virtual bool IsVerticalWriting() const
virtual void SetOutlinerParaObject(std::optional< OutlinerParaObject > pTextObject)
SfxItemPool * GetPool() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
void setWidth(tools::Long nWidth)
tools::Long AdjustWidth(tools::Long n)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
void SetSwitchingToNextBox(const SdrTextObj *, bool)
@ SDRTEXTVERTADJUST_BOTTOM
@ SDRTEXTVERTADJUST_BLOCK
@ SDRTEXTHORZADJUST_BLOCK
@ SDRTEXTHORZADJUST_RIGHT
SdrTextAniKind
Animation type for text frame.
@ Slide
scroll back and forth
@ Alternate
scroll through
constexpr TypedWhichId< SdrTextFixedCellHeightItem > SDRATTR_TEXT_USEFIXEDCELLHEIGHT(SDRATTR_MISC_FIRST+23)
void RotatePoint(Point &rPnt, const Point &rRef, double sn, double cs)