LibreOffice Module sdext (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sdext::presenter::PresenterTextCaret Class Reference

#include <PresenterTextView.hxx>

Public Member Functions

 PresenterTextCaret (css::uno::Reference< css::uno::XComponentContext > const &xContext, const ::std::function< css::awt::Rectangle(const sal_Int32, const sal_Int32)> &rCharacterBoundsAccess, const ::std::function< void(const css::awt::Rectangle &)> &rInvalidator)
 
 ~PresenterTextCaret ()
 
void ShowCaret ()
 
void HideCaret ()
 
sal_Int32 GetParagraphIndex () const
 
sal_Int32 GetCharacterIndex () const
 
void SetPosition (const sal_Int32 nParagraphIndex, const sal_Int32 nCharacterIndex)
 
bool IsVisible () const
 
void SetCaretMotionBroadcaster (const ::std::function< void(sal_Int32, sal_Int32, sal_Int32, sal_Int32)> &rBroadcaster)
 Set a (possibly empty) functor that broadcasts changes of the caret position. More...
 
const css::awt::Rectangle & GetBounds () const
 

Private Member Functions

void InvertCaret ()
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > const & m_xContext
 
sal_Int32 mnParagraphIndex
 
sal_Int32 mnCharacterIndex
 
sal_Int32 mnCaretBlinkTaskId
 
bool mbIsCaretVisible
 
const ::std::function< css::awt::Rectangle(const sal_Int32, const sal_Int32)> maCharacterBoundsAccess
 
const ::std::function< void(const css::awt::Rectangle &)> maInvalidator
 
::std::function< void(sal_Int32, sal_Int32, sal_Int32, sal_Int32)> maBroadcaster
 
css::awt::Rectangle maCaretBounds
 

Detailed Description

Definition at line 39 of file PresenterTextView.hxx.

Constructor & Destructor Documentation

sdext::presenter::PresenterTextCaret::PresenterTextCaret ( css::uno::Reference< css::uno::XComponentContext > const &  xContext,
const ::std::function< css::awt::Rectangle(const sal_Int32, const sal_Int32)> &  rCharacterBoundsAccess,
const ::std::function< void(const css::awt::Rectangle &)> &  rInvalidator 
)

Definition at line 1037 of file PresenterTextView.cxx.

References mnParagraphIndex.

sdext::presenter::PresenterTextCaret::~PresenterTextCaret ( )

Definition at line 1053 of file PresenterTextView.cxx.

References HideCaret(), and TOOLS_WARN_EXCEPTION.

Member Function Documentation

const css::awt::Rectangle & sdext::presenter::PresenterTextCaret::GetBounds ( ) const

Definition at line 1131 of file PresenterTextView.cxx.

References maCaretBounds.

sal_Int32 sdext::presenter::PresenterTextCaret::GetCharacterIndex ( ) const
inline

Definition at line 54 of file PresenterTextView.hxx.

References mnCharacterIndex.

sal_Int32 sdext::presenter::PresenterTextCaret::GetParagraphIndex ( ) const
inline

Definition at line 53 of file PresenterTextView.hxx.

References mnParagraphIndex.

void sdext::presenter::PresenterTextCaret::HideCaret ( )
void sdext::presenter::PresenterTextCaret::InvertCaret ( )
private

Definition at line 1136 of file PresenterTextView.cxx.

References maCaretBounds, maInvalidator, mbIsCaretVisible, and mnParagraphIndex.

Referenced by ShowCaret().

bool sdext::presenter::PresenterTextCaret::IsVisible ( ) const
inline

Definition at line 59 of file PresenterTextView.hxx.

References mbIsCaretVisible.

void sdext::presenter::PresenterTextCaret::SetCaretMotionBroadcaster ( const ::std::function< void(sal_Int32, sal_Int32, sal_Int32, sal_Int32)> &  rBroadcaster)

Set a (possibly empty) functor that broadcasts changes of the caret position.

This is used when a PresenterTextView object is set at the accessibility object so that accessibility events can be sent when the caret changes position.

Definition at line 1125 of file PresenterTextView.cxx.

References maBroadcaster.

void sdext::presenter::PresenterTextCaret::SetPosition ( const sal_Int32  nParagraphIndex,
const sal_Int32  nCharacterIndex 
)
void sdext::presenter::PresenterTextCaret::ShowCaret ( )

Member Data Documentation

css::uno::Reference<css::uno::XComponentContext> const& sdext::presenter::PresenterTextCaret::m_xContext
private

Definition at line 72 of file PresenterTextView.hxx.

Referenced by ShowCaret().

::std::function<void (sal_Int32,sal_Int32,sal_Int32,sal_Int32)> sdext::presenter::PresenterTextCaret::maBroadcaster
private

Definition at line 79 of file PresenterTextView.hxx.

Referenced by SetCaretMotionBroadcaster(), and SetPosition().

css::awt::Rectangle sdext::presenter::PresenterTextCaret::maCaretBounds
private

Definition at line 80 of file PresenterTextView.hxx.

Referenced by GetBounds(), InvertCaret(), and SetPosition().

const ::std::function<css::awt::Rectangle (const sal_Int32,const sal_Int32)> sdext::presenter::PresenterTextCaret::maCharacterBoundsAccess
private

Definition at line 77 of file PresenterTextView.hxx.

Referenced by SetPosition().

const ::std::function<void (const css::awt::Rectangle&)> sdext::presenter::PresenterTextCaret::maInvalidator
private

Definition at line 78 of file PresenterTextView.hxx.

Referenced by InvertCaret(), and SetPosition().

bool sdext::presenter::PresenterTextCaret::mbIsCaretVisible
private

Definition at line 76 of file PresenterTextView.hxx.

Referenced by HideCaret(), InvertCaret(), IsVisible(), and ShowCaret().

sal_Int32 sdext::presenter::PresenterTextCaret::mnCaretBlinkTaskId
private

Definition at line 75 of file PresenterTextView.hxx.

Referenced by HideCaret(), and ShowCaret().

sal_Int32 sdext::presenter::PresenterTextCaret::mnCharacterIndex
private

Definition at line 74 of file PresenterTextView.hxx.

Referenced by GetCharacterIndex(), HideCaret(), and SetPosition().

sal_Int32 sdext::presenter::PresenterTextCaret::mnParagraphIndex
private

Definition at line 73 of file PresenterTextView.hxx.

Referenced by GetParagraphIndex(), HideCaret(), InvertCaret(), and SetPosition().


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