LibreOffice Module editeng (master) 1
Public Member Functions | Private Attributes | List of all members
SvxAccessibleTextAdapter Class Referencefinal

#include <unoedprx.hxx>

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

Public Member Functions

 SvxAccessibleTextAdapter ()
 
virtual ~SvxAccessibleTextAdapter () override
 
virtual sal_Int32 GetParagraphCount () const override
 
virtual sal_Int32 GetTextLen (sal_Int32 nParagraph) const override
 
virtual OUString GetText (const ESelection &rSel) const override
 
virtual SfxItemSet GetAttribs (const ESelection &rSel, EditEngineAttribs nOnlyHardAttrib=EditEngineAttribs::All) const override
 
virtual SfxItemSet GetParaAttribs (sal_Int32 nPara) const override
 
virtual void SetParaAttribs (sal_Int32 nPara, const SfxItemSet &rSet) override
 
virtual void RemoveAttribs (const ESelection &rSelection) override
 
virtual void GetPortions (sal_Int32 nPara, std::vector< sal_Int32 > &rList) const override
 
sal_Int32 CalcEditEngineIndex (sal_Int32 nPara, sal_Int32 nLogicalIndex)
 
virtual OUString GetStyleSheet (sal_Int32 nPara) const override
 
virtual void SetStyleSheet (sal_Int32 nPara, const OUString &rStyleName) override
 
virtual SfxItemState GetItemState (const ESelection &rSel, sal_uInt16 nWhich) const override
 
virtual SfxItemState GetItemState (sal_Int32 nPara, sal_uInt16 nWhich) const override
 
virtual void QuickInsertText (const OUString &rText, const ESelection &rSel) override
 
virtual void QuickInsertField (const SvxFieldItem &rFld, const ESelection &rSel) override
 
virtual void QuickSetAttribs (const SfxItemSet &rSet, const ESelection &rSel) override
 
virtual void QuickInsertLineBreak (const ESelection &rSel) override
 
virtual SfxItemPoolGetPool () const override
 
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
 
virtual void FieldClicked (const SvxFieldItem &rField) override
 
virtual bool IsValid () const override
 Query state of forwarder. More...
 
virtual LanguageType GetLanguage (sal_Int32, sal_Int32) const override
 Query language of character at given position on the underlying edit engine. More...
 
virtual sal_Int32 GetFieldCount (sal_Int32 nPara) const override
 Query number of fields in the underlying edit engine. More...
 
virtual EFieldInfo GetFieldInfo (sal_Int32 nPara, sal_uInt16 nField) const override
 Query information for given field number in the underlying edit engine. More...
 
virtual EBulletInfo GetBulletInfo (sal_Int32 nPara) const override
 Query information regarding bullets for given paragraph on the underlying edit engine. More...
 
virtual tools::Rectangle GetCharBounds (sal_Int32 nPara, sal_Int32 nIndex) const override
 Query the bounding rectangle of the given character. More...
 
virtual tools::Rectangle GetParaBounds (sal_Int32 nPara) const override
 Query the bounding rectangle of the given paragraph. More...
 
virtual MapMode GetMapMode () const override
 Query the map mode of the underlying EditEngine/Outliner. More...
 
virtual OutputDeviceGetRefDevice () const override
 Query the reference output device of the underlying EditEngine/Outliner. More...
 
virtual bool GetIndexAtPoint (const Point &, sal_Int32 &nPara, sal_Int32 &nIndex) const override
 Query paragraph and character index of the character at the given point. More...
 
virtual bool GetWordIndices (sal_Int32 nPara, sal_Int32 nIndex, sal_Int32 &nStart, sal_Int32 &nEnd) const override
 Get the start and the end index of the word at the given index. More...
 
virtual bool GetAttributeRun (sal_Int32 &nStartIndex, sal_Int32 &nEndIndex, sal_Int32 nPara, sal_Int32 nIndex, bool bInCell=false) const override
 Query range of similar attributes. More...
 
virtual sal_Int32 GetLineCount (sal_Int32 nPara) const override
 Query number of lines in the formatted paragraph. More...
 
virtual sal_Int32 GetLineLen (sal_Int32 nPara, sal_Int32 nLine) const override
 Query line length. More...
 
virtual void GetLineBoundaries (sal_Int32 &rStart, sal_Int32 &rEnd, sal_Int32 nParagraph, sal_Int32 nLine) const override
 Query bounds of line in paragraph. More...
 
virtual sal_Int32 GetLineNumberAtIndex (sal_Int32 nPara, sal_Int32 nIndex) const override
 Query the line number for an index in the paragraphs text. More...
 
virtual bool Delete (const ESelection &) override
 Delete given text range and reformat text. More...
 
virtual bool InsertText (const OUString &, const ESelection &) override
 Insert/Replace given text in given range and reformat text. More...
 
virtual bool QuickFormatDoc (bool bFull=false) override
 Updates the formatting. More...
 
virtual sal_Int16 GetDepth (sal_Int32 nPara) const override
 Get the outline depth of given paragraph. More...
 
virtual bool SetDepth (sal_Int32 nPara, sal_Int16 nNewDepth) override
 Set the outline depth of given paragraph. More...
 
virtual const SfxItemSetGetEmptyItemSetPtr () override
 
virtual void AppendParagraph () override
 
virtual sal_Int32 AppendTextPortion (sal_Int32 nPara, const OUString &rText, const SfxItemSet &rSet) override
 
virtual void CopyText (const SvxTextForwarder &rSource) override
 
void SetForwarder (SvxTextForwarder &)
 
bool HaveImageBullet (sal_Int32 nPara) const
 
bool HaveTextBullet (sal_Int32 nPara) const
 
bool IsEditable (const ESelection &rSelection) const
 Query whether all text in given selection is editable. More...
 
- Public Member Functions inherited from SvxTextForwarder
virtual ~SvxTextForwarder () COVERITY_NOEXCEPT_FALSE
 
virtual sal_Int32 GetParagraphCount () const =0
 
virtual sal_Int32 GetTextLen (sal_Int32 nParagraph) const =0
 
virtual OUString GetText (const ESelection &rSel) const =0
 
virtual SfxItemSet GetAttribs (const ESelection &rSel, EditEngineAttribs nOnlyHardAttrib=EditEngineAttribs::All) const =0
 
virtual SfxItemSet GetParaAttribs (sal_Int32 nPara) const =0
 
virtual void SetParaAttribs (sal_Int32 nPara, const SfxItemSet &rSet)=0
 
virtual void RemoveAttribs (const ESelection &rSelection)=0
 
virtual void GetPortions (sal_Int32 nPara, std::vector< sal_Int32 > &rList) const =0
 
virtual OUString GetStyleSheet (sal_Int32 nPara) const =0
 
virtual void SetStyleSheet (sal_Int32 nPara, const OUString &rStyleName)=0
 
virtual SfxItemState GetItemState (const ESelection &rSel, sal_uInt16 nWhich) const =0
 
virtual SfxItemState GetItemState (sal_Int32 nPara, sal_uInt16 nWhich) const =0
 
virtual void QuickInsertText (const OUString &rText, const ESelection &rSel)=0
 
virtual void QuickInsertField (const SvxFieldItem &rFld, const ESelection &rSel)=0
 
virtual void QuickSetAttribs (const SfxItemSet &rSet, const ESelection &rSel)=0
 
virtual void QuickInsertLineBreak (const ESelection &rSel)=0
 
virtual OUString CalcFieldValue (const SvxFieldItem &rField, sal_Int32 nPara, sal_Int32 nPos, std::optional< Color > &rpTxtColor, std::optional< Color > &rpFldColor, std::optional< FontLineStyle > &rpFldLineStyle)=0
 
virtual void FieldClicked (const SvxFieldItem &rField)=0
 
virtual SfxItemPoolGetPool () const =0
 
virtual const SfxItemSetGetEmptyItemSetPtr ()=0
 
virtual void AppendParagraph ()=0
 
virtual sal_Int32 AppendTextPortion (sal_Int32 nPara, const OUString &rText, const SfxItemSet &rSet)=0
 
virtual void CopyText (const SvxTextForwarder &rSource)=0
 
virtual bool IsValid () const =0
 Query state of forwarder. More...
 
virtual LanguageType GetLanguage (sal_Int32 nPara, sal_Int32 nIndex) const =0
 Query language of character at given position on the underlying edit engine. More...
 
virtual sal_Int32 GetFieldCount (sal_Int32 nPara) const =0
 Query number of fields in the underlying edit engine. More...
 
virtual EFieldInfo GetFieldInfo (sal_Int32 nPara, sal_uInt16 nField) const =0
 Query information for given field number in the underlying edit engine. More...
 
virtual EBulletInfo GetBulletInfo (sal_Int32 nPara) const =0
 Query information regarding bullets for given paragraph on the underlying edit engine. More...
 
virtual tools::Rectangle GetCharBounds (sal_Int32 nPara, sal_Int32 nIndex) const =0
 Query the bounding rectangle of the given character. More...
 
virtual tools::Rectangle GetParaBounds (sal_Int32 nPara) const =0
 Query the bounding rectangle of the given paragraph. More...
 
virtual MapMode GetMapMode () const =0
 Query the map mode of the underlying EditEngine/Outliner. More...
 
virtual OutputDeviceGetRefDevice () const =0
 Query the reference output device of the underlying EditEngine/Outliner. More...
 
virtual bool GetIndexAtPoint (const Point &rPoint, sal_Int32 &rPara, sal_Int32 &rIndex) const =0
 Query paragraph and character index of the character at the given point. More...
 
virtual bool GetWordIndices (sal_Int32 nPara, sal_Int32 nIndex, sal_Int32 &rStart, sal_Int32 &rEnd) const =0
 Get the start and the end index of the word at the given index. More...
 
virtual bool GetAttributeRun (sal_Int32 &nStartIndex, sal_Int32 &nEndIndex, sal_Int32 nPara, sal_Int32 nIndex, bool bInCell=false) const =0
 Query range of similar attributes. More...
 
virtual sal_Int32 GetLineCount (sal_Int32 nPara) const =0
 Query number of lines in the formatted paragraph. More...
 
virtual sal_Int32 GetLineLen (sal_Int32 nPara, sal_Int32 nLine) const =0
 Query line length. More...
 
virtual void GetLineBoundaries (sal_Int32 &rStart, sal_Int32 &rEnd, sal_Int32 nParagraph, sal_Int32 nLine) const =0
 Query bounds of line in paragraph. More...
 
virtual sal_Int32 GetLineNumberAtIndex (sal_Int32 nPara, sal_Int32 nIndex) const =0
 Query the line number for an index in the paragraphs text. More...
 
virtual bool Delete (const ESelection &rSelection)=0
 Delete given text range and reformat text. More...
 
virtual bool InsertText (const OUString &rText, const ESelection &rSel)=0
 Insert/Replace given text in given range and reformat text. More...
 
virtual bool QuickFormatDoc (bool bFull=false)=0
 Updates the formatting. More...
 
virtual sal_Int16 GetDepth (sal_Int32 nPara) const =0
 Get the outline depth of given paragraph. More...
 
virtual bool SetDepth (sal_Int32 nPara, sal_Int16 nNewDepth)=0
 Set the outline depth of given paragraph. More...
 
virtual sal_Int32 GetNumberingStartValue (sal_Int32 nPara)
 
virtual void SetNumberingStartValue (sal_Int32 nPara, sal_Int32 nNumberingStartValue)
 
virtual bool IsParaIsNumberingRestart (sal_Int32 nPara)
 
virtual void SetParaIsNumberingRestart (sal_Int32 nPara, bool bParaIsNumberingRestart)
 

Private Attributes

SvxTextForwardermpTextForwarder
 

Detailed Description

Definition at line 32 of file unoedprx.hxx.

Constructor & Destructor Documentation

◆ SvxAccessibleTextAdapter()

SvxAccessibleTextAdapter::SvxAccessibleTextAdapter ( )

Definition at line 407 of file unoedprx.cxx.

◆ ~SvxAccessibleTextAdapter()

SvxAccessibleTextAdapter::~SvxAccessibleTextAdapter ( )
overridevirtual

Definition at line 412 of file unoedprx.cxx.

Member Function Documentation

◆ AppendParagraph()

void SvxAccessibleTextAdapter::AppendParagraph ( )
overridevirtual

Implements SvxTextForwarder.

Definition at line 1094 of file unoedprx.cxx.

◆ AppendTextPortion()

sal_Int32 SvxAccessibleTextAdapter::AppendTextPortion ( sal_Int32  nPara,
const OUString &  rText,
const SfxItemSet rSet 
)
overridevirtual

Implements SvxTextForwarder.

Definition at line 1099 of file unoedprx.cxx.

◆ CalcEditEngineIndex()

sal_Int32 SvxAccessibleTextAdapter::CalcEditEngineIndex ( sal_Int32  nPara,
sal_Int32  nLogicalIndex 
)

Definition at line 644 of file unoedprx.cxx.

References aIndex, and mpTextForwarder.

◆ CalcFieldValue()

OUString SvxAccessibleTextAdapter::CalcFieldValue ( const SvxFieldItem rField,
sal_Int32  nPara,
sal_Int32  nPos,
std::optional< Color > &  rpTxtColor,
std::optional< Color > &  rpFldColor,
std::optional< FontLineStyle > &  rpFldLineStyle 
)
overridevirtual

Implements SvxTextForwarder.

Definition at line 630 of file unoedprx.cxx.

References SvxTextForwarder::CalcFieldValue(), mpTextForwarder, and nPos.

◆ CopyText()

void SvxAccessibleTextAdapter::CopyText ( const SvxTextForwarder rSource)
overridevirtual

Implements SvxTextForwarder.

Definition at line 1104 of file unoedprx.cxx.

◆ Delete()

bool SvxAccessibleTextAdapter::Delete ( const ESelection rSelection)
overridevirtual

Delete given text range and reformat text.

Parameters
rSelectionThe text range to be deleted
Returns
true if text has been successfully deleted

Implements SvxTextForwarder.

Definition at line 1000 of file unoedprx.cxx.

References SvxTextForwarder::Delete(), MakeEESelection(), mpTextForwarder, ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, and ESelection::nStartPos.

◆ FieldClicked()

void SvxAccessibleTextAdapter::FieldClicked ( const SvxFieldItem rField)
overridevirtual

◆ GetAttribs()

SfxItemSet SvxAccessibleTextAdapter::GetAttribs ( const ESelection rSel,
EditEngineAttribs  nOnlyHardAttrib = EditEngineAttribs::All 
) const
overridevirtual

◆ GetAttributeRun()

bool SvxAccessibleTextAdapter::GetAttributeRun ( sal_Int32 &  nStartIndex,
sal_Int32 &  nEndIndex,
sal_Int32  nPara,
sal_Int32  nIndex,
bool  bInCell = false 
) const
overridevirtual

Query range of similar attributes.

Please note that the range returned is half-open: [nStartIndex,nEndIndex)

Parameters
nStartIndexHerein, the start index of the range of similar attributes is returned
nEndIndexHerein, the end index (exclusive) of the range of similar attributes is returned
nIndexThe character index from which the range of similar attributed characters is requested
Returns
true, if the range has been successfully determined

Implements SvxTextForwarder.

Definition at line 909 of file unoedprx.cxx.

References aIndex, DBG_ASSERT, SvxTextForwarder::GetAttributeRun(), mpTextForwarder, and nIndex.

Referenced by accessibility::AccessibleStaticTextBase::getTextAtIndex().

◆ GetBulletInfo()

EBulletInfo SvxAccessibleTextAdapter::GetBulletInfo ( sal_Int32  nPara) const
overridevirtual

Query information regarding bullets for given paragraph on the underlying edit engine.

Parameters
nPara[0.. n-1] Index of paragraph to query bullet info on

Implements SvxTextForwarder.

Definition at line 688 of file unoedprx.cxx.

References SvxTextForwarder::GetBulletInfo(), and mpTextForwarder.

Referenced by GetCharBounds(), GetIndexAtPoint(), GetParaBounds(), GetText(), HaveImageBullet(), and HaveTextBullet().

◆ GetCharBounds()

tools::Rectangle SvxAccessibleTextAdapter::GetCharBounds ( sal_Int32  nPara,
sal_Int32  nIndex 
) const
overridevirtual

Query the bounding rectangle of the given character.

Parameters
nPara[0.. n] Index of paragraph to query the bounds in.

The virtual character after the last character of the represented text, i.e. the one at position n is a special case. Because it does not represent an existing character its bounding box is defined in relation to preceding characters. It should be roughly equivalent to the bounding box of some character when inserted at the end of the text. Its height typically being the maximal height of all the characters in the text or the height of the preceding character, its width being at least one pixel so that the bounding box is not degenerate.

Parameters
nIndex[0.. m-1] Index of character to query the bounds of
Returns
rectangle in logical coordinates, relative to upper left corner of text. The coordinates returned here are to be interpreted in the map mode given by GetMapMode().

Implements SvxTextForwarder.

Definition at line 695 of file unoedprx.cxx.

References EBulletInfo::aBounds, EBulletInfo::aFont, aIndex, EBulletInfo::aText, EditEngine::CreateSvxFontFromItemSet(), DBG_ASSERT, SvxTextForwarder::GetAttribs(), GetBulletInfo(), AccessibleStringWrap::GetCharacterBounds(), SvxTextForwarder::GetCharBounds(), GetRefDevice(), SvxTextForwarder::GetText(), tools::Rectangle::Left(), MakeEESelection(), tools::Rectangle::Move(), mpTextForwarder, nIndex, and tools::Rectangle::Top().

◆ GetDepth()

sal_Int16 SvxAccessibleTextAdapter::GetDepth ( sal_Int32  nPara) const
overridevirtual

Get the outline depth of given paragraph.

Parameters
nParaIndex of the paragraph to query the depth of
Returns
the outline level of the given paragraph. The range is [0,n), where n is the maximal outline level.

Implements SvxTextForwarder.

Definition at line 1033 of file unoedprx.cxx.

References SvxTextForwarder::GetDepth(), and mpTextForwarder.

◆ GetEmptyItemSetPtr()

const SfxItemSet * SvxAccessibleTextAdapter::GetEmptyItemSetPtr ( )
overridevirtual

Implements SvxTextForwarder.

Definition at line 1088 of file unoedprx.cxx.

◆ GetFieldCount()

sal_Int32 SvxAccessibleTextAdapter::GetFieldCount ( sal_Int32  nPara) const
overridevirtual

Query number of fields in the underlying edit engine.

Parameters
nPara[0.. n-1] Index of paragraph to query field number in

Implements SvxTextForwarder.

Definition at line 674 of file unoedprx.cxx.

References SvxTextForwarder::GetFieldCount(), and mpTextForwarder.

◆ GetFieldInfo()

EFieldInfo SvxAccessibleTextAdapter::GetFieldInfo ( sal_Int32  nPara,
sal_uInt16  nField 
) const
overridevirtual

Query information for given field number in the underlying edit engine.

Parameters
nPara[0.. n-1] Index of paragraph to query field info in
nField[0.. m-1] Index of field to query information of

Implements SvxTextForwarder.

Definition at line 681 of file unoedprx.cxx.

References SvxTextForwarder::GetFieldInfo(), and mpTextForwarder.

◆ GetIndexAtPoint()

bool SvxAccessibleTextAdapter::GetIndexAtPoint ( const Point rPoint,
sal_Int32 &  rPara,
sal_Int32 &  rIndex 
) const
overridevirtual

Query paragraph and character index of the character at the given point.

Returns sal_True on success, sal_False otherwise

Parameters
rPointPoint to query text position of. Is interpreted in logical coordinates, relative to the upper left corner of the text, and in the map mode given by GetMapMode()
rPara[0.. n-1] Index of paragraph the point is within
rIndex[0.. m-1] Index of character the point is over
Returns
true, if the point is over any text and both rPara and rIndex are valid

Implements SvxTextForwarder.

Definition at line 788 of file unoedprx.cxx.

References EBulletInfo::aBounds, EBulletInfo::aFont, aIndex, EBulletInfo::aText, EBulletInfo::bVisible, tools::Rectangle::Contains(), EditEngine::CreateSvxFontFromItemSet(), DBG_ASSERT, EE_PARA_NOT_FOUND, SvxTextForwarder::GetAttribs(), GetBulletInfo(), SvxTextForwarder::GetCharBounds(), AccessibleStringWrap::GetIndexAtPoint(), SvxTextForwarder::GetIndexAtPoint(), GetRefDevice(), SvxTextForwarder::GetText(), tools::Rectangle::Left(), MakeEESelection(), Point::Move(), mpTextForwarder, nIndex, EBulletInfo::nParagraph, EBulletInfo::nType, SVX_NUM_BITMAP, and tools::Rectangle::Top().

◆ GetItemState() [1/2]

SfxItemState SvxAccessibleTextAdapter::GetItemState ( const ESelection rSel,
sal_uInt16  nWhich 
) const
overridevirtual

◆ GetItemState() [2/2]

SfxItemState SvxAccessibleTextAdapter::GetItemState ( sal_Int32  nPara,
sal_uInt16  nWhich 
) const
overridevirtual

Implements SvxTextForwarder.

Definition at line 561 of file unoedprx.cxx.

References SvxTextForwarder::GetItemState(), and mpTextForwarder.

◆ GetLanguage()

LanguageType SvxAccessibleTextAdapter::GetLanguage ( sal_Int32  nPara,
sal_Int32  nIndex 
) const
overridevirtual

Query language of character at given position on the underlying edit engine.

Parameters
nPara[0.. n-1] Index of paragraph to query language in
nIndex[0.. m-1] Index of character to query language of

Implements SvxTextForwarder.

Definition at line 663 of file unoedprx.cxx.

References aIndex, SvxTextForwarder::GetLanguage(), mpTextForwarder, and nPos.

◆ GetLineBoundaries()

void SvxAccessibleTextAdapter::GetLineBoundaries ( sal_Int32 &  rStart,
sal_Int32 &  rEnd,
sal_Int32  nParagraph,
sal_Int32  nLine 
) const
overridevirtual

Query bounds of line in paragraph.

Parameters
rStart[output param; 0 .. text_len] The index in the paragraph text that belongs to the chara at the start of the line
rEnd[output param; 0 .. text_len] The index in the paragraph text that follows the last chara in the line
nParagraph[0.. n-1] Index of paragraph to query line length in
nLine[0.. m-1] Index of line in paragraph to query line length of

Implements SvxTextForwarder.

Definition at line 990 of file unoedprx.cxx.

References SvxTextForwarder::GetLineBoundaries(), and mpTextForwarder.

◆ GetLineCount()

sal_Int32 SvxAccessibleTextAdapter::GetLineCount ( sal_Int32  nPara) const
overridevirtual

Query number of lines in the formatted paragraph.

Parameters
nPara[0.. n-1] Index of paragraph to query number of lines in
Returns
number of lines in given paragraph

Implements SvxTextForwarder.

Definition at line 957 of file unoedprx.cxx.

References SvxTextForwarder::GetLineCount(), and mpTextForwarder.

◆ GetLineLen()

sal_Int32 SvxAccessibleTextAdapter::GetLineLen ( sal_Int32  nPara,
sal_Int32  nLine 
) const
overridevirtual

Query line length.

Parameters
nPara[0.. n-1] Index of paragraph to query line length in
nLine[0.. m-1] Index of line in paragraph to query line length of

Implements SvxTextForwarder.

Definition at line 964 of file unoedprx.cxx.

References SvxTextForwarder::GetLineLen(), and mpTextForwarder.

◆ GetLineNumberAtIndex()

sal_Int32 SvxAccessibleTextAdapter::GetLineNumberAtIndex ( sal_Int32  nPara,
sal_Int32  nIndex 
) const
overridevirtual

Query the line number for an index in the paragraphs text.

Parameters
nPara[0.. n-1] Index of paragraph to query line length in
nIndex[0.. m-1] Index of the char in the paragraph text
Returns
[0 .. k-1] The line number of the char in the paragraph

Implements SvxTextForwarder.

Definition at line 995 of file unoedprx.cxx.

References SvxTextForwarder::GetLineNumberAtIndex(), mpTextForwarder, and nIndex.

◆ GetMapMode()

MapMode SvxAccessibleTextAdapter::GetMapMode ( ) const
overridevirtual

Query the map mode of the underlying EditEngine/Outliner.

Returns
the map mode used on the EditEngine/Outliner. The values returned by GetParaBounds() and GetCharBounds() are to be interpreted in this map mode, the point given to GetIndexAtPoint() is interpreted in this map mode.

Implements SvxTextForwarder.

Definition at line 774 of file unoedprx.cxx.

References SvxTextForwarder::GetMapMode(), and mpTextForwarder.

◆ GetParaAttribs()

SfxItemSet SvxAccessibleTextAdapter::GetParaAttribs ( sal_Int32  nPara) const
overridevirtual

Implements SvxTextForwarder.

Definition at line 508 of file unoedprx.cxx.

References SvxTextForwarder::GetParaAttribs(), and mpTextForwarder.

◆ GetParaBounds()

tools::Rectangle SvxAccessibleTextAdapter::GetParaBounds ( sal_Int32  nPara) const
overridevirtual

Query the bounding rectangle of the given paragraph.

Parameters
nPara[0.. n-1] Index of paragraph to query the bounds of
Returns
rectangle in logical coordinates, relative to upper left corner of text. The coordinates returned here are to be interpreted in the map mode given by GetMapMode().

Implements SvxTextForwarder.

Definition at line 753 of file unoedprx.cxx.

References EBulletInfo::aBounds, EBulletInfo::bVisible, EE_PARA_NOT_FOUND, GetBulletInfo(), SvxTextForwarder::GetParaBounds(), mpTextForwarder, EBulletInfo::nParagraph, EBulletInfo::nType, SVX_NUM_BITMAP, and tools::Rectangle::Union().

◆ GetParagraphCount()

sal_Int32 SvxAccessibleTextAdapter::GetParagraphCount ( ) const
overridevirtual

Implements SvxTextForwarder.

Definition at line 416 of file unoedprx.cxx.

References SvxTextForwarder::GetParagraphCount(), and mpTextForwarder.

◆ GetPool()

SfxItemPool * SvxAccessibleTextAdapter::GetPool ( ) const
overridevirtual

Implements SvxTextForwarder.

Definition at line 623 of file unoedprx.cxx.

References SvxTextForwarder::GetPool(), and mpTextForwarder.

◆ GetPortions()

void SvxAccessibleTextAdapter::GetPortions ( sal_Int32  nPara,
std::vector< sal_Int32 > &  rList 
) const
overridevirtual

Implements SvxTextForwarder.

Definition at line 526 of file unoedprx.cxx.

References SvxTextForwarder::GetPortions(), and mpTextForwarder.

◆ GetRefDevice()

OutputDevice * SvxAccessibleTextAdapter::GetRefDevice ( ) const
overridevirtual

Query the reference output device of the underlying EditEngine/Outliner.

Returns
the OutputDevice used from the EditEngine/Outliner to format the text. It should be used when performing e.g. font calculations, since this is usually a printer with fonts and resolution different from the screen.

Implements SvxTextForwarder.

Definition at line 781 of file unoedprx.cxx.

References SvxTextForwarder::GetRefDevice(), and mpTextForwarder.

Referenced by GetCharBounds(), and GetIndexAtPoint().

◆ GetStyleSheet()

OUString SvxAccessibleTextAdapter::GetStyleSheet ( sal_Int32  nPara) const
overridevirtual

Implements SvxTextForwarder.

Definition at line 533 of file unoedprx.cxx.

References SvxTextForwarder::GetStyleSheet(), and mpTextForwarder.

◆ GetText()

OUString SvxAccessibleTextAdapter::GetText ( const ESelection rSel) const
overridevirtual

◆ GetTextLen()

sal_Int32 SvxAccessibleTextAdapter::GetTextLen ( sal_Int32  nParagraph) const
overridevirtual

Implements SvxTextForwarder.

Definition at line 423 of file unoedprx.cxx.

References aIndex, SvxTextForwarder::GetTextLen(), and mpTextForwarder.

Referenced by GetText().

◆ GetWordIndices()

bool SvxAccessibleTextAdapter::GetWordIndices ( sal_Int32  nPara,
sal_Int32  nIndex,
sal_Int32 &  rStart,
sal_Int32 &  rEnd 
) const
overridevirtual

Get the start and the end index of the word at the given index.

An index value on a word leads from the first character of that word up to and including the last space before the next word. The index values returned do not contain any leading or trailing white-space. If the input indices are invalid, sal_False is returned.

Parameters
nPara[0.. n-1] Index of paragraph to start the search in
nIndex[0.. m-1] Index of character to query the search on
rStartStart index (in the same paragraph)
rEndEnd index (in the same paragraph), this point to the last character still contained in the query
Returns
true, if the result is non-empty

Implements SvxTextForwarder.

Definition at line 859 of file unoedprx.cxx.

References aIndex, DBG_ASSERT, SvxTextForwarder::GetWordIndices(), mpTextForwarder, and nIndex.

◆ HaveImageBullet()

bool SvxAccessibleTextAdapter::HaveImageBullet ( sal_Int32  nPara) const

◆ HaveTextBullet()

bool SvxAccessibleTextAdapter::HaveTextBullet ( sal_Int32  nPara) const

◆ InsertText()

bool SvxAccessibleTextAdapter::InsertText ( const OUString &  rText,
const ESelection rSel 
)
overridevirtual

Insert/Replace given text in given range and reformat text.

Parameters
rTextText to insert/replace
rSelSelection where text should be replaced. The empty selection inserts
Returns
true if text has been successfully inserted

Implements SvxTextForwarder.

Definition at line 1013 of file unoedprx.cxx.

References SvxTextForwarder::InsertText(), MakeEESelection(), mpTextForwarder, ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, and ESelection::nStartPos.

◆ IsEditable()

bool SvxAccessibleTextAdapter::IsEditable ( const ESelection rSelection) const

Query whether all text in given selection is editable.

Returns
sal_True if every character in the given selection can be changed, and sal_False if e.g. a field or a bullet is contained therein.

Definition at line 1070 of file unoedprx.cxx.

References ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, and ESelection::nStartPos.

◆ IsValid()

bool SvxAccessibleTextAdapter::IsValid ( ) const
overridevirtual

Query state of forwarder.

Returns
false, if no longer valid

Implements SvxTextForwarder.

Definition at line 653 of file unoedprx.cxx.

References SvxTextForwarder::IsValid(), and mpTextForwarder.

Referenced by accessibility::AccessibleHyperlink::isValid().

◆ QuickFormatDoc()

bool SvxAccessibleTextAdapter::QuickFormatDoc ( bool  bFull = false)
overridevirtual

Updates the formatting.

See also
EditEngine::QuickFormatDoc() for details
Returns
true if text have been successfully reformatted

Implements SvxTextForwarder.

Definition at line 1026 of file unoedprx.cxx.

References mpTextForwarder, and SvxTextForwarder::QuickFormatDoc().

◆ QuickInsertField()

void SvxAccessibleTextAdapter::QuickInsertField ( const SvxFieldItem rFld,
const ESelection rSel 
)
overridevirtual

◆ QuickInsertLineBreak()

void SvxAccessibleTextAdapter::QuickInsertLineBreak ( const ESelection rSel)
overridevirtual

◆ QuickInsertText()

void SvxAccessibleTextAdapter::QuickInsertText ( const OUString &  rText,
const ESelection rSel 
)
overridevirtual

◆ QuickSetAttribs()

void SvxAccessibleTextAdapter::QuickSetAttribs ( const SfxItemSet rSet,
const ESelection rSel 
)
overridevirtual

◆ RemoveAttribs()

void SvxAccessibleTextAdapter::RemoveAttribs ( const ESelection rSelection)
overridevirtual

Implements SvxTextForwarder.

Definition at line 522 of file unoedprx.cxx.

◆ SetDepth()

bool SvxAccessibleTextAdapter::SetDepth ( sal_Int32  nPara,
sal_Int16  nNewDepth 
)
overridevirtual

Set the outline depth of given paragraph.

Parameters
nParaIndex of the paragraph to set the depth of
nNewDepthThe depth to set on the given paragraph. The range is [0,n), where n is the maximal outline level.
Returns
true, if depth could be successfully set. Reasons for failure are e.g. the text does not support outline level (EditEngine), or the depth range is exceeded.

Implements SvxTextForwarder.

Definition at line 1040 of file unoedprx.cxx.

References mpTextForwarder, and SvxTextForwarder::SetDepth().

◆ SetForwarder()

void SvxAccessibleTextAdapter::SetForwarder ( SvxTextForwarder rForwarder)

Definition at line 1047 of file unoedprx.cxx.

References mpTextForwarder.

◆ SetParaAttribs()

void SvxAccessibleTextAdapter::SetParaAttribs ( sal_Int32  nPara,
const SfxItemSet rSet 
)
overridevirtual

Implements SvxTextForwarder.

Definition at line 515 of file unoedprx.cxx.

References mpTextForwarder, rSet, and SvxTextForwarder::SetParaAttribs().

◆ SetStyleSheet()

void SvxAccessibleTextAdapter::SetStyleSheet ( sal_Int32  nPara,
const OUString &  rStyleName 
)
overridevirtual

Implements SvxTextForwarder.

Definition at line 540 of file unoedprx.cxx.

References mpTextForwarder, and SvxTextForwarder::SetStyleSheet().

Member Data Documentation

◆ mpTextForwarder

SvxTextForwarder* SvxAccessibleTextAdapter::mpTextForwarder
private

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