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

#include <svdoutl.hxx>

Inheritance diagram for SdrOutliner:
[legend]
Collaboration diagram for SdrOutliner:
[legend]

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, o3tl::optional< Color > &rpTxtColor, o3tl::optional< Color > &rpFldColor) override
 
bool hasEditViewCallbacks () const
 
- Public Member Functions inherited from Outliner
 Outliner (SfxItemPool *pPool, OutlinerMode nOutlinerMode)
 
virtual ~Outliner () override
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 
void Init (OutlinerMode nOutlinerMode)
 
OutlinerMode GetMode () const
 
void SetVertical (bool bVertical)
 
void SetRotation (TextRotation nRotation)
 
bool IsVertical () const
 
bool IsTopToBottom () const
 
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::unique_ptr< 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
 
void SetUpdateMode (bool bUpdate)
 
bool GetUpdateMode () 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)
 
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::unique_ptr< NonOverflowingTextGetNonOverflowingText () const
 
std::unique_ptr< OverflowingTextGetOverflowingText () const
 
void ClearOverflowingParaNum ()
 
bool IsPageOverflow ()
 
std::unique_ptr< OutlinerParaObjectGetEmptyParaObject () 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 *pOutDev, const tools::Rectangle &rOutRect)
 
void Draw (OutputDevice *pOutDev, 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 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, const long *pDXArray, 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, 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)
 
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_uLong GetLineCount (sal_Int32 nParagraph) const
 
sal_Int32 GetLineLen (sal_Int32 nParagraph, sal_Int32 nLine) const
 
sal_uLong 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;})
 
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_uLong 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 SetGlobalCharStretching (sal_uInt16 nX=100, sal_uInt16 nY=100)
 
void GetGlobalCharStretching (sal_uInt16 &rX, sal_uInt16 &rY) 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)
 
void SetNumberingStartValue (sal_Int32 nPara, sal_Int16 nNumberingStartValue)
 
bool IsParaIsNumberingRestart (sal_Int32 nPara)
 
void SetParaIsNumberingRestart (sal_Int32 nPara, bool bParaIsNumberingRestart)
 
sal_Int32 GetBulletsNumberingStatus (const sal_Int32 nParaStart, const sal_Int32 nParaEnd) const
 
sal_Int32 GetBulletsNumberingStatus () const
 

Private Attributes

tools::WeakReference< SdrTextObjmpTextObj
 
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, short nOrientation, OutputDevice *pOutDev)
 
const SvxNumberFormatGetNumberFormat (sal_Int32 nPara) const
 

Detailed Description

Definition at line 30 of file svdoutl.hxx.

Constructor & Destructor Documentation

SdrOutliner::SdrOutliner ( SfxItemPool pItemPool,
OutlinerMode  nMode 
)

Definition at line 30 of file svdoutl.cxx.

SdrOutliner::~SdrOutliner ( )
overridevirtual

Definition at line 38 of file svdoutl.cxx.

Member Function Documentation

OUString SdrOutliner::CalcFieldValue ( const SvxFieldItem rField,
sal_Int32  nPara,
sal_Int32  nPos,
o3tl::optional< Color > &  rpTxtColor,
o3tl::optional< Color > &  rpFldColor 
)
overridevirtual
const SdrTextObj * SdrOutliner::GetTextObj ( ) const
const SdrPage* SdrOutliner::getVisualizedPage ( ) const
inline

Definition at line 44 of file svdoutl.hxx.

bool SdrOutliner::hasEditViewCallbacks ( ) const
void SdrOutliner::SetTextObj ( const SdrTextObj pObj)
void SdrOutliner::SetTextObjNoInit ( const SdrTextObj pObj)

Definition at line 69 of file svdoutl.cxx.

References mpTextObj, and tools::WeakReference< reference_type >::reset().

void SdrOutliner::setVisualizedPage ( const SdrPage pPage)
inline

Member Data Documentation

tools::WeakReference<SdrTextObj> SdrOutliner::mpTextObj
private

Definition at line 32 of file svdoutl.hxx.

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

const SdrPage* SdrOutliner::mpVisualizedPage
private

Definition at line 33 of file svdoutl.hxx.


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