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 1030 of file PresenterTextView.cxx.

References false, and mnParagraphIndex.

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

Definition at line 1044 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 1122 of file PresenterTextView.cxx.

References maCaretBounds.

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

Definition at line 54 of file PresenterTextView.hxx.

References mnCharacterIndex.

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

Definition at line 53 of file PresenterTextView.hxx.

References mnParagraphIndex.

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

Definition at line 1127 of file PresenterTextView.cxx.

References maCaretBounds, maInvalidator, mbIsCaretVisible, and mnParagraphIndex.

Referenced by ShowCaret().

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

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 1116 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

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

Definition at line 79 of file PresenterTextView.hxx.

Referenced by SetCaretMotionBroadcaster(), and SetPosition().

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

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

Definition at line 77 of file PresenterTextView.hxx.

Referenced by SetPosition().

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

Definition at line 78 of file PresenterTextView.hxx.

Referenced by InvertCaret(), and SetPosition().

bool sdext::presenter::PresenterTextCaret::mbIsCaretVisible

Definition at line 76 of file PresenterTextView.hxx.

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

sal_Int32 sdext::presenter::PresenterTextCaret::mnCaretBlinkTaskId

Definition at line 75 of file PresenterTextView.hxx.

Referenced by HideCaret(), and ShowCaret().

sal_Int32 sdext::presenter::PresenterTextCaret::mnCharacterIndex

Definition at line 74 of file PresenterTextView.hxx.

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

sal_Int32 sdext::presenter::PresenterTextCaret::mnParagraphIndex

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: