LibreOffice Module sd (master) 1
|
#include <PresenterTextView.hxx>
Public Member Functions | |
PresenterTextCaret (css::uno::Reference< css::uno::XComponentContext > const &xContext, ::std::function< css::awt::Rectangle(const sal_Int32, const sal_Int32)> aCharacterBoundsAccess, ::std::function< void(const css::awt::Rectangle &)> aInvalidator) | |
~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 |
Definition at line 39 of file PresenterTextView.hxx.
sdext::presenter::PresenterTextCaret::PresenterTextCaret | ( | css::uno::Reference< css::uno::XComponentContext > const & | xContext, |
::std::function< css::awt::Rectangle(const sal_Int32, const sal_Int32)> | aCharacterBoundsAccess, | ||
::std::function< void(const css::awt::Rectangle &)> | aInvalidator | ||
) |
Definition at line 1031 of file PresenterTextView.cxx.
References m_xContext, and mnParagraphIndex.
sdext::presenter::PresenterTextCaret::~PresenterTextCaret | ( | ) |
Definition at line 1045 of file PresenterTextView.cxx.
References HideCaret(), and TOOLS_WARN_EXCEPTION.
const css::awt::Rectangle & sdext::presenter::PresenterTextCaret::GetBounds | ( | ) | const |
Definition at line 1123 of file PresenterTextView.cxx.
References maCaretBounds.
|
inline |
Definition at line 54 of file PresenterTextView.hxx.
References mnCharacterIndex.
|
inline |
Definition at line 53 of file PresenterTextView.hxx.
References mnParagraphIndex.
void sdext::presenter::PresenterTextCaret::HideCaret | ( | ) |
Definition at line 1070 of file PresenterTextView.cxx.
References sdext::presenter::PresenterTimer::CancelTask(), mbIsCaretVisible, mnCaretBlinkTaskId, mnCharacterIndex, and mnParagraphIndex.
Referenced by SetPosition(), and ~PresenterTextCaret().
|
private |
Definition at line 1128 of file PresenterTextView.cxx.
References maCaretBounds, maInvalidator, mbIsCaretVisible, and mnParagraphIndex.
Referenced by ShowCaret().
|
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 1117 of file PresenterTextView.cxx.
References maBroadcaster.
void sdext::presenter::PresenterTextCaret::SetPosition | ( | const sal_Int32 | nParagraphIndex, |
const sal_Int32 | nCharacterIndex | ||
) |
Definition at line 1084 of file PresenterTextView.cxx.
References HideCaret(), maBroadcaster, maCaretBounds, maCharacterBoundsAccess, maInvalidator, mnCharacterIndex, mnParagraphIndex, and ShowCaret().
void sdext::presenter::PresenterTextCaret::ShowCaret | ( | ) |
Definition at line 1057 of file PresenterTextView.cxx.
References CaretBlinkInterval, InvertCaret(), m_xContext, mbIsCaretVisible, mnCaretBlinkTaskId, and sdext::presenter::PresenterTimer::ScheduleRepeatedTask().
Referenced by SetPosition().
|
private |
Definition at line 72 of file PresenterTextView.hxx.
Referenced by ShowCaret().
|
private |
Definition at line 79 of file PresenterTextView.hxx.
Referenced by SetCaretMotionBroadcaster(), and SetPosition().
|
private |
Definition at line 80 of file PresenterTextView.hxx.
Referenced by GetBounds(), InvertCaret(), and SetPosition().
|
private |
Definition at line 77 of file PresenterTextView.hxx.
Referenced by SetPosition().
|
private |
Definition at line 78 of file PresenterTextView.hxx.
Referenced by InvertCaret(), and SetPosition().
|
private |
Definition at line 76 of file PresenterTextView.hxx.
Referenced by HideCaret(), InvertCaret(), IsVisible(), and ShowCaret().
|
private |
Definition at line 75 of file PresenterTextView.hxx.
Referenced by HideCaret(), and ShowCaret().
|
private |
Definition at line 74 of file PresenterTextView.hxx.
Referenced by GetCharacterIndex(), HideCaret(), and SetPosition().
|
private |
Definition at line 73 of file PresenterTextView.hxx.
Referenced by GetParagraphIndex(), HideCaret(), InvertCaret(), and SetPosition().