LibreOffice Module svx (master) 1
Public Member Functions | Private Attributes | List of all members
SdrOutliner Class Reference

#include <svdoutl.hxx>

Inheritance diagram for SdrOutliner:
Collaboration diagram for SdrOutliner:

Public Member Functions

 SdrOutliner (SfxItemPool *pItemPool, OutlinerMode nMode)
virtual ~SdrOutliner () override
void SetTextObj (const SdrTextObj *pObj)
void SetTextObjNoInit (const SdrTextObj *pObj)
const SdrTextObjGetTextObj () const
void setVisualizedPage (const SdrPage *pPage)
const SdrPagegetVisualizedPage () const
virtual OUString CalcFieldValue (const SvxFieldItem &rField, sal_Int32 nPara, sal_Int32 nPos, std::optional< Color > &rpTxtColor, std::optional< Color > &rpFldColor) override
bool hasEditViewCallbacks () const
virtual std::optional< bool > GetCompatFlag (SdrCompatibilityFlag eFlag) const override
- Public Member Functions inherited from Outliner
 Outliner (SfxItemPool *pPool, OutlinerMode nMode)
virtual ~Outliner () override
void dumpAsXml (xmlTextWriterPtr pWriter) const
void Init (OutlinerMode nMode)
void SetVertical (bool bVertical)
void SetRotation (TextRotation nRotation)
bool IsVertical () const
bool IsTopToBottom () const
void SetTextColumns (sal_Int16 nColumns, sal_Int32 nSpacing)
void SetFixedCellHeight (bool bUseFixedCellHeight)
void SetDefaultHorizontalTextDirection (EEHorizontalTextDirection eHTextDir)
EEHorizontalTextDirection GetDefaultHorizontalTextDirection () const
LanguageType GetLanguage (sal_Int32 nPara, sal_Int32 nPos) const
void SetAsianCompressionMode (CharCompressType nCompressionMode)
void SetKernAsianPunctuation (bool bEnabled)
void SetAddExtLeading (bool b)
size_t InsertView (OutlinerView *pView, size_t nIndex=size_t(-1))
void RemoveView (OutlinerView const *pView)
void RemoveView (size_t nIndex)
OutlinerViewGetView (size_t nIndex) const
size_t GetViewCount () const
ParagraphInsert (const OUString &rText, sal_Int32 nAbsPos=EE_PARA_APPEND, sal_Int16 nDepth=0)
void SetText (const OutlinerParaObject &)
void AddText (const OutlinerParaObject &, bool bAppend=false)
void SetText (const OUString &rText, Paragraph *pParagraph)
OUString GetText (Paragraph const *pPara, sal_Int32 nParaCount=1) const
void SetToEmptyText ()
std::optional< OutlinerParaObjectCreateParaObject (sal_Int32 nStartPara=0, sal_Int32 nParaCount=EE_PARA_ALL) const
const SfxItemSetGetEmptyItemSet () const
void SetRefMapMode (const MapMode &)
MapMode const & GetRefMapMode () const
void SetBackgroundColor (const Color &rColor)
Color const & GetBackgroundColor () const
void SetMaxDepth (sal_Int16 nDepth)
sal_Int16 GetMaxDepth () const
bool SetUpdateLayout (bool bUpdate)
bool IsUpdateLayout () const
void Clear ()
void RemoveAttribs (const ESelection &rSelection, bool bRemoveParaAttribs, sal_uInt16 nWhich)
sal_Int32 GetParagraphCount () const
ParagraphGetParagraph (sal_Int32 nAbsPos) const
bool HasChildren (Paragraph const *pParagraph) const
sal_Int32 GetChildCount (Paragraph const *pParent) const
bool IsExpanded (Paragraph const *pPara) const
ParagraphGetParent (Paragraph const *pParagraph) const
sal_Int32 GetAbsPos (Paragraph const *pPara) const
sal_Int16 GetDepth (sal_Int32 nPara) const
void SetDepth (Paragraph *pParagraph, sal_Int16 nNewDepth)
void EnableUndo (bool bEnable)
bool IsUndoEnabled () const
void UndoActionStart (sal_uInt16 nId)
void UndoActionEnd ()
void InsertUndo (std::unique_ptr< EditUndo > pUndo)
bool IsInUndo () const
void ClearModifyFlag ()
bool IsModified () const
void ParagraphInsertedHdl (Paragraph *)
void SetParaInsertedHdl (const Link< ParagraphHdlParam, void > &rLink)
const Link< ParagraphHdlParam, void > & GetParaInsertedHdl () const
void SetParaRemovingHdl (const Link< ParagraphHdlParam, void > &rLink)
const Link< ParagraphHdlParam, void > & GetParaRemovingHdl () const
std::optional< NonOverflowingTextGetNonOverflowingText () const
std::optional< OverflowingTextGetOverflowingText () const
void ClearOverflowingParaNum ()
bool IsPageOverflow ()
OutlinerParaObject GetEmptyParaObject () const
void DepthChangedHdl (Paragraph *, ParaFlag nPrevFlags)
void SetDepthChangedHdl (const Link< DepthChangeHdlParam, void > &rLink)
const Link< DepthChangeHdlParam, void > & GetDepthChangedHdl () const
sal_Int16 GetPrevDepth () const
bool RemovingPagesHdl (OutlinerView *)
void SetRemovingPagesHdl (const Link< OutlinerView *, bool > &rLink)
bool IndentingPagesHdl (OutlinerView *)
void SetIndentingPagesHdl (const Link< OutlinerView *, bool > &rLink)
sal_Int32 GetSelPageCount () const
void SetCalcFieldValueHdl (const Link< EditFieldInfo *, void > &rLink)
const Link< EditFieldInfo *, void > & GetCalcFieldValueHdl () const
void SetDrawPortionHdl (const Link< DrawPortionInfo *, void > &rLink)
void SetDrawBulletHdl (const Link< DrawBulletInfo *, void > &rLink)
void SetPaintFirstLineHdl (const Link< PaintFirstLineInfo *, void > &rLink)
void SetModifyHdl (const Link< LinkParamNone *, void > &rLink)
Link< LinkParamNone *, void > const & GetModifyHdl () const
void SetNotifyHdl (const Link< EENotify &, void > &rLink)
void SetStatusEventHdl (const Link< EditStatus &, void > &rLink)
Link< EditStatus &, void > const & GetStatusEventHdl () const
void Draw (OutputDevice &rOutDev, const tools::Rectangle &rOutRect)
void Draw (OutputDevice &rOutDev, const Point &rStartPos)
const SizeGetPaperSize () const
void SetPaperSize (const Size &rSize)
void SetPolygon (const basegfx::B2DPolyPolygon &rPolyPolygon)
void SetPolygon (const basegfx::B2DPolyPolygon &rPolyPolygon, const basegfx::B2DPolyPolygon *pLinePolyPolygon)
void ClearPolygon ()
const SizeGetMinAutoPaperSize () const
void SetMinAutoPaperSize (const Size &rSz)
const SizeGetMaxAutoPaperSize () const
void SetMaxAutoPaperSize (const Size &rSz)
void SetMinColumnWrapHeight (tools::Long nVal)
void SetDefTab (sal_uInt16 nTab)
bool IsFlatMode () const
void SetFlatMode (bool bFlat)
void EnableAutoColor (bool b)
void ForceAutoColor (bool b)
bool IsForceAutoColor () const
EBulletInfo GetBulletInfo (sal_Int32 nPara)
void SetWordDelimiters (const OUString &rDelimiters)
OUString const & GetWordDelimiters () const
OUString GetWord (sal_Int32 nPara, sal_Int32 nIndex)
void StripPortions ()
void DrawingText (const Point &rStartPos, const OUString &rText, sal_Int32 nTextStart, sal_Int32 nTextLen, o3tl::span< const sal_Int32 > pDXArray, o3tl::span< const sal_Bool > pKashidaArray, const SvxFont &rFont, sal_Int32 nPara, sal_uInt8 nRightToLeft, const EEngineData::WrongSpellVector *pWrongSpellVector, const SvxFieldData *pFieldData, bool bEndOfLine, bool bEndOfParagraph, bool bEndOfBullet, const css::lang::Locale *pLocale, const Color &rOverlineColor, const Color &rTextLineColor)
void DrawingTab (const Point &rStartPos, tools::Long nWidth, const OUString &rChar, const SvxFont &rFont, sal_Int32 nPara, sal_uInt8 nRightToLeft, bool bEndOfLine, bool bEndOfParagraph, const Color &rOverlineColor, const Color &rTextLineColor)
Size CalcTextSize ()
Size CalcTextSizeNTP ()
void SetStyleSheetPool (SfxStyleSheetPool *pSPool)
SfxStyleSheetPoolGetStyleSheetPool ()
bool IsInSelectionMode () const
void SetStyleSheet (sal_Int32 nPara, SfxStyleSheet *pStyle)
SfxStyleSheetGetStyleSheet (sal_Int32 nPara)
void SetParaAttribs (sal_Int32 nPara, const SfxItemSet &)
SfxItemSet const & GetParaAttribs (sal_Int32 nPara) const
void Remove (Paragraph const *pPara, sal_Int32 nParaCount)
bool Expand (Paragraph const *)
bool Collapse (Paragraph const *)
void SetParaFlag (Paragraph *pPara, ParaFlag nFlag)
void SetControlWord (EEControlBits nWord)
EEControlBits GetControlWord () const
const Link< Outliner *, void > & GetBeginMovingHdl () const
void SetBeginMovingHdl (const Link< Outliner *, void > &rLink)
const Link< Outliner *, void > & GetEndMovingHdl () const
void SetEndMovingHdl (const Link< Outliner *, void > &rLink)
sal_uInt32 GetLineCount (sal_Int32 nParagraph) const
sal_Int32 GetLineLen (sal_Int32 nParagraph, sal_Int32 nLine) const
sal_uInt32 GetLineHeight (sal_Int32 nParagraph)
ErrCode Read (SvStream &rInput, const OUString &rBaseURL, EETextFormat, SvKeyValueIterator *pHTTPHeaderAttrs=nullptr)
SfxUndoManagerGetUndoManager ()
SfxUndoManagerSetUndoManager (SfxUndoManager *pNew)
void QuickSetAttribs (const SfxItemSet &rSet, const ESelection &rSel)
void QuickInsertField (const SvxFieldItem &rFld, const ESelection &rSel)
void QuickInsertLineBreak (const ESelection &rSel)
void QuickInsertText (const OUString &rText, const ESelection &rSel)
void QuickDelete (const ESelection &rSel)
void SetCharAttribs (sal_Int32 nPara, const SfxItemSet &rSet)
void RemoveCharAttribs (sal_Int32 nPara, sal_uInt16 nWhich=0)
void QuickFormatDoc ()
bool UpdateFields ()
void RemoveFields (const std::function< bool(const SvxFieldData *)> &isFieldData=[](const SvxFieldData *){return true;})
virtual OUString CalcFieldValue (const SvxFieldItem &rField, sal_Int32 nPara, sal_Int32 nPos, std::optional< Color > &rTxtColor, std::optional< Color > &rFldColor)
void SetSpeller (css::uno::Reference< css::linguistic2::XSpellChecker1 > const &xSpeller)
css::uno::Reference< css::linguistic2::XSpellChecker1 > const & GetSpeller ()
void SetHyphenator (css::uno::Reference< css::linguistic2::XHyphenator > const &xHyph)
void SetDefaultLanguage (LanguageType eLang)
void CompleteOnlineSpelling ()
EESpellState HasSpellErrors ()
bool HasText (const SvxSearchItem &rSearchItem)
virtual bool SpellNextDocument ()
bool HasConvertibleTextPortion (LanguageType nLang)
virtual bool ConvertNextDocument ()
void SetEditTextObjectPool (SfxItemPool *pPool)
SfxItemPoolGetEditTextObjectPool () const
void SetRefDevice (OutputDevice *pRefDev)
OutputDeviceGetRefDevice () const
sal_uInt32 GetTextHeight () const
tools::Rectangle GetParaBounds (sal_Int32 nParagraph) const
Point GetDocPos (const Point &rPaperPos) const
bool IsTextPos (const Point &rPaperPos, sal_uInt16 nBorder)
bool IsTextPos (const Point &rPaperPos, sal_uInt16 nBorder, bool *pbBulletPos)
void setGlobalScale (double rFontX=100.0, double rFontY=100.0, double rSpacingX=100.0, double rSpacingY=100.0)
void getGlobalScale (double &rFontX, double &rFontY, double &rSpacingX, double &rSpacingY) const
void setRoundFontSizeToPt (bool bRound) const
void EraseVirtualDevice ()
bool ShouldCreateBigTextObject () const
const EditEngineGetEditEngine () const
void SetLevelDependentStyleSheet (sal_Int32 nPara)
OutlinerMode GetOutlinerMode () const
bool SpellSentence (EditView const &rEditView, svx::SpellPortions &rToFill)
void PutSpellingToSentenceStart (EditView const &rEditView)
void ApplyChangedSentence (EditView const &rEditView, const svx::SpellPortions &rNewPortions, bool bRecheck)
void SetBeginDropHdl (const Link< EditView *, void > &rLink)
void SetEndDropHdl (const Link< EditView *, void > &rLink)
void SetBeginPasteOrDropHdl (const Link< PasteOrDropInfos *, void > &rLink)
void SetEndPasteOrDropHdl (const Link< PasteOrDropInfos *, void > &rLink)
sal_Int16 GetNumberingStartValue (sal_Int32 nPara) const
void SetNumberingStartValue (sal_Int32 nPara, sal_Int16 nNumberingStartValue)
bool IsParaIsNumberingRestart (sal_Int32 nPara) const
void SetParaIsNumberingRestart (sal_Int32 nPara, bool bParaIsNumberingRestart)
sal_Int32 GetBulletsNumberingStatus (const sal_Int32 nParaStart, const sal_Int32 nParaEnd) const
sal_Int32 GetBulletsNumberingStatus () const
virtual std::optional< bool > GetCompatFlag (SdrCompatibilityFlag) const

Private Attributes

::unotools::WeakReference< SdrTextObjmxWeakTextObj
const SdrPagempVisualizedPage

Additional Inherited Members

- Static Public Member Functions inherited from Outliner
static bool HasParaFlag (const Paragraph *pPara, ParaFlag nFlag)
static void SetForbiddenCharsTable (const std::shared_ptr< SvxForbiddenCharactersTable > &xForbiddenChars)
- Protected Member Functions inherited from Outliner
void ParagraphInserted (sal_Int32 nParagraph)
void ParagraphDeleted (sal_Int32 nParagraph)
void ParaAttribsChanged (sal_Int32 nParagraph)
void StyleSheetChanged (SfxStyleSheet const *pStyle)
void InvalidateBullet (sal_Int32 nPara)
void PaintBullet (sal_Int32 nPara, const Point &rStartPos, const Point &rOrigin, Degree10 nOrientation, OutputDevice &rOutDev)
const SvxNumberFormatGetNumberFormat (sal_Int32 nPara) const

Detailed Description

Definition at line 31 of file svdoutl.hxx.

Constructor & Destructor Documentation

◆ SdrOutliner()

SdrOutliner::SdrOutliner ( SfxItemPool pItemPool,
OutlinerMode  nMode 

Definition at line 31 of file svdoutl.cxx.

◆ ~SdrOutliner()

SdrOutliner::~SdrOutliner ( )

Definition at line 38 of file svdoutl.cxx.

Member Function Documentation

◆ CalcFieldValue()

OUString SdrOutliner::CalcFieldValue ( const SvxFieldItem rField,
sal_Int32  nPara,
sal_Int32  nPos,
std::optional< Color > &  rpTxtColor,
std::optional< Color > &  rpFldColor 

◆ GetCompatFlag()

std::optional< bool > SdrOutliner::GetCompatFlag ( SdrCompatibilityFlag  eFlag) const
state of the SdrCompatibilityFlag

Reimplemented from Outliner.

Definition at line 110 of file svdoutl.cxx.

References SdrModel::GetCompatibilityFlag(), SdrPage::getSdrModelFromSdrPage(), and mpVisualizedPage.

◆ GetTextObj()

const SdrTextObj * SdrOutliner::GetTextObj ( ) const

◆ getVisualizedPage()

const SdrPage * SdrOutliner::getVisualizedPage ( ) const

Definition at line 45 of file svdoutl.hxx.

◆ hasEditViewCallbacks()

bool SdrOutliner::hasEditViewCallbacks ( ) const

◆ SetTextObj()

void SdrOutliner::SetTextObj ( const SdrTextObj pObj)

◆ SetTextObjNoInit()

void SdrOutliner::SetTextObjNoInit ( const SdrTextObj pObj)

Definition at line 70 of file svdoutl.cxx.

References mxWeakTextObj.

◆ setVisualizedPage()

void SdrOutliner::setVisualizedPage ( const SdrPage pPage)

Member Data Documentation

◆ mpVisualizedPage

const SdrPage* SdrOutliner::mpVisualizedPage

Definition at line 34 of file svdoutl.hxx.

Referenced by GetCompatFlag().

◆ mxWeakTextObj

::unotools::WeakReference<SdrTextObj> SdrOutliner::mxWeakTextObj

Definition at line 33 of file svdoutl.hxx.

Referenced by CalcFieldValue(), GetTextObj(), SetTextObj(), and SetTextObjNoInit().

The documentation for this class was generated from the following files: