LibreOffice Module svx (master) 1
|
#include <svdoutl.hxx>
Public Member Functions | |
SdrOutliner (SfxItemPool *pItemPool, OutlinerMode nMode) | |
virtual | ~SdrOutliner () override |
void | SetTextObj (const SdrTextObj *pObj) |
void | SetTextObjNoInit (const SdrTextObj *pObj) |
const SdrTextObj * | GetTextObj () const |
void | setVisualizedPage (const SdrPage *pPage) |
const SdrPage * | getVisualizedPage () const |
virtual OUString | CalcFieldValue (const SvxFieldItem &rField, sal_Int32 nPara, sal_Int32 nPos, std::optional< Color > &rpTxtColor, std::optional< Color > &rpFldColor, std::optional< FontLineStyle > &rpFldLineStyle) 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) |
OutlinerView * | GetView (size_t nIndex) const |
size_t | GetViewCount () const |
Paragraph * | Insert (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< OutlinerParaObject > | CreateParaObject (sal_Int32 nStartPara=0, sal_Int32 nParaCount=EE_PARA_ALL) const |
const SfxItemSet & | GetEmptyItemSet () 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 |
Paragraph * | GetParagraph (sal_Int32 nAbsPos) const |
bool | HasChildren (Paragraph const *pParagraph) const |
sal_Int32 | GetChildCount (Paragraph const *pParent) const |
bool | IsExpanded (Paragraph const *pPara) const |
Paragraph * | GetParent (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< NonOverflowingText > | GetNonOverflowingText () const |
std::optional< OverflowingText > | GetOverflowingText () 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) |
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 Size & | GetPaperSize () 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 Size & | GetMinAutoPaperSize () const |
void | SetMinAutoPaperSize (const Size &rSz) |
const Size & | GetMaxAutoPaperSize () 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) |
SfxStyleSheetPool * | GetStyleSheetPool () |
bool | IsInSelectionMode () const |
void | SetStyleSheet (sal_Int32 nPara, SfxStyleSheet *pStyle) |
SfxStyleSheet * | GetStyleSheet (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) |
SfxUndoManager & | GetUndoManager () |
SfxUndoManager * | SetUndoManager (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, std::optional< FontLineStyle > &rFldLineStyle) |
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) |
SfxItemPool * | GetEditTextObjectPool () const |
void | SetRefDevice (OutputDevice *pRefDev) |
OutputDevice * | GetRefDevice () 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 EditEngine & | GetEditEngine () 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< SdrTextObj > | mxWeakTextObj |
const SdrPage * | mpVisualizedPage |
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 SvxNumberFormat * | GetNumberFormat (sal_Int32 nPara) const |
Definition at line 31 of file svdoutl.hxx.
SdrOutliner::SdrOutliner | ( | SfxItemPool * | pItemPool, |
OutlinerMode | nMode | ||
) |
Definition at line 31 of file svdoutl.cxx.
|
overridevirtual |
Definition at line 38 of file svdoutl.cxx.
|
overridevirtual |
Reimplemented from Outliner.
Definition at line 75 of file svdoutl.cxx.
References Outliner::CalcFieldValue(), unotools::WeakReference< class interface_type >::get(), mxWeakTextObj, and nPos.
|
overridevirtual |
Reimplemented from Outliner.
Definition at line 111 of file svdoutl.cxx.
References SdrModel::GetCompatibilityFlag(), SdrPage::getSdrModelFromSdrPage(), and mpVisualizedPage.
const SdrTextObj * SdrOutliner::GetTextObj | ( | ) | const |
Definition at line 91 of file svdoutl.cxx.
References unotools::WeakReference< class interface_type >::get(), and mxWeakTextObj.
Referenced by SdrTextObj::ImpSetContourPolygon(), SdrTextObj::TakeTextRect(), and SdrObjCustomShape::TakeTextRect().
|
inline |
Definition at line 45 of file svdoutl.hxx.
bool SdrOutliner::hasEditViewCallbacks | ( | ) | const |
Definition at line 96 of file svdoutl.cxx.
References a, OutlinerView::GetEditView(), EditView::getEditViewCallbacks(), Outliner::GetView(), and Outliner::GetViewCount().
void SdrOutliner::SetTextObj | ( | const SdrTextObj * | pObj | ) |
Definition at line 43 of file svdoutl.cxx.
References Outliner::ClearPolygon(), unotools::WeakReference< class interface_type >::get(), Outliner::GetControlWord(), SdrTextObj::GetTextColumnsNumber(), SdrTextObj::GetTextColumnsSpacing(), Outliner::Init(), SdrTextObj::IsOutlText(), mxWeakTextObj, Outliner::SetControlWord(), Outliner::setGlobalScale(), Outliner::SetMaxAutoPaperSize(), Outliner::SetMinAutoPaperSize(), Outliner::SetPaperSize(), Outliner::SetTextColumns(), and Outliner::SetUpdateLayout().
Referenced by SdrTextObj::ImpSetContourPolygon(), sdr::table::SdrTableObj::NbcSetOutlinerParaObject(), SdrTextObj::TakeTextRect(), and SdrObjCustomShape::TakeTextRect().
void SdrOutliner::SetTextObjNoInit | ( | const SdrTextObj * | pObj | ) |
Definition at line 70 of file svdoutl.cxx.
References mxWeakTextObj.
|
inline |
Definition at line 44 of file svdoutl.hxx.
Referenced by SdrTextObj::impDecomposeAutoFitTextPrimitive(), SdrTextObj::impDecomposeBlockTextPrimitive(), SdrTextObj::impDecomposeChainedTextPrimitive(), SdrTextObj::impDecomposeContourTextPrimitive(), SdrTextObj::impDecomposePathTextPrimitive(), and SdrTextObj::impDecomposeStretchTextPrimitive().
|
private |
Definition at line 34 of file svdoutl.hxx.
Referenced by GetCompatFlag().
|
private |
Definition at line 33 of file svdoutl.hxx.
Referenced by CalcFieldValue(), GetTextObj(), SetTextObj(), and SetTextObjNoInit().