LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SwExtend Class Reference

#include <redlnitr.hxx>

Collaboration diagram for SwExtend:
[legend]

Public Member Functions

 SwExtend (const std::vector< ExtTextInputAttr > &rArr, SwNodeOffset const nNode, sal_Int32 const nStart)
 
bool IsOn () const
 
void Reset ()
 
bool Leave (SwFont &rFnt, SwNodeOffset const nNode, sal_Int32 const nNew)
 
short Enter (SwFont &rFnt, SwNodeOffset nNode, sal_Int32 nNew)
 
sal_Int32 Next (SwNodeOffset nNode, sal_Int32 nNext)
 
SwFontGetFont ()
 
void UpdateFont (SwFont &rFont)
 

Private Member Functions

bool Leave_ (SwFont &rFnt, SwNodeOffset nNode, sal_Int32 nNew)
 
bool Inside () const
 

Static Private Member Functions

static void ActualizeFont (SwFont &rFnt, ExtTextInputAttr nAttr)
 

Private Attributes

std::unique_ptr< SwFontm_pFont
 
const std::vector< ExtTextInputAttr > & m_rArr
 
SwNodeOffset const m_nNode
 position of start of SwExtTextInput More...
 
sal_Int32 const m_nStart
 
sal_Int32 m_nPos
 current position (inside) More...
 
sal_Int32 const m_nEnd
 position of end of SwExtTextInput (in same node as start) More...
 

Detailed Description

Definition at line 37 of file redlnitr.hxx.

Constructor & Destructor Documentation

◆ SwExtend()

SwExtend::SwExtend ( const std::vector< ExtTextInputAttr > &  rArr,
SwNodeOffset const  nNode,
sal_Int32 const  nStart 
)
inline

Definition at line 52 of file redlnitr.hxx.

References size.

Member Function Documentation

◆ ActualizeFont()

void SwExtend::ActualizeFont ( SwFont rFnt,
ExtTextInputAttr  nAttr 
)
staticprivate

◆ Enter()

short SwExtend::Enter ( SwFont rFnt,
SwNodeOffset  nNode,
sal_Int32  nNew 
)

Definition at line 1138 of file redlnitr.cxx.

References ActualizeFont(), Inside(), m_nNode, m_nPos, m_nStart, m_pFont, and m_rArr.

◆ GetFont()

SwFont * SwExtend::GetFont ( )
inline

Definition at line 66 of file redlnitr.hxx.

References m_pFont.

◆ Inside()

bool SwExtend::Inside ( ) const
inlineprivate

Definition at line 49 of file redlnitr.hxx.

References m_nEnd, m_nPos, and m_nStart.

Referenced by Enter(), and Leave_().

◆ IsOn()

bool SwExtend::IsOn ( ) const
inline

Definition at line 60 of file redlnitr.hxx.

References m_pFont.

◆ Leave()

bool SwExtend::Leave ( SwFont rFnt,
SwNodeOffset const  nNode,
sal_Int32 const  nNew 
)
inline

Definition at line 62 of file redlnitr.hxx.

References Leave_(), and m_pFont.

◆ Leave_()

bool SwExtend::Leave_ ( SwFont rFnt,
SwNodeOffset  nNode,
sal_Int32  nNew 
)
private

Definition at line 1154 of file redlnitr.cxx.

References ActualizeFont(), Inside(), m_nNode, m_nPos, m_nStart, m_pFont, and m_rArr.

Referenced by Leave().

◆ Next()

sal_Int32 SwExtend::Next ( SwNodeOffset  nNode,
sal_Int32  nNext 
)

Definition at line 1179 of file redlnitr.cxx.

References m_nEnd, m_nNode, m_nPos, m_nStart, m_rArr, and o3tl::make_unsigned().

◆ Reset()

void SwExtend::Reset ( void  )
inline

Definition at line 61 of file redlnitr.hxx.

References COMPLETE_STRING, m_nPos, and m_pFont.

◆ UpdateFont()

void SwExtend::UpdateFont ( SwFont rFont)
inline

Definition at line 67 of file redlnitr.hxx.

References ActualizeFont(), m_nPos, m_nStart, and m_rArr.

Member Data Documentation

◆ m_nEnd

sal_Int32 const SwExtend::m_nEnd
private

position of end of SwExtTextInput (in same node as start)

Definition at line 47 of file redlnitr.hxx.

Referenced by Inside(), and Next().

◆ m_nNode

SwNodeOffset const SwExtend::m_nNode
private

position of start of SwExtTextInput

Definition at line 42 of file redlnitr.hxx.

Referenced by Enter(), Leave_(), and Next().

◆ m_nPos

sal_Int32 SwExtend::m_nPos
private

current position (inside)

Definition at line 45 of file redlnitr.hxx.

Referenced by Enter(), Inside(), Leave_(), Next(), Reset(), and UpdateFont().

◆ m_nStart

sal_Int32 const SwExtend::m_nStart
private

Definition at line 43 of file redlnitr.hxx.

Referenced by Enter(), Inside(), Leave_(), Next(), and UpdateFont().

◆ m_pFont

std::unique_ptr<SwFont> SwExtend::m_pFont
private

Definition at line 39 of file redlnitr.hxx.

Referenced by Enter(), GetFont(), IsOn(), Leave(), Leave_(), and Reset().

◆ m_rArr

const std::vector<ExtTextInputAttr>& SwExtend::m_rArr
private

Definition at line 40 of file redlnitr.hxx.

Referenced by Enter(), Leave_(), Next(), and UpdateFont().


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