LibreOffice Module sd (master) 1
|
#include <PresenterTextView.hxx>
Classes | |
class | Cell |
A portion of a string that encodes one unicode cell. More... | |
class | Line |
Public Member Functions | |
PresenterTextParagraph (const sal_Int32 nParagraphIndex, const css::uno::Reference< css::i18n::XBreakIterator > &rxBreakIterator, const css::uno::Reference< css::i18n::XScriptTypeDetector > &rxScriptTypeDetector, const css::uno::Reference< css::text::XTextRange > &rxTextRange, SharedPresenterTextCaret xCaret) | |
void | Paint (const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::geometry::RealSize2D &rSize, const PresenterTheme::SharedFontDescriptor &rpFont, const css::rendering::ViewState &rViewState, css::rendering::RenderState &rRenderState, const double nTopOffset, const double nClipTop, const double nClipBottom) |
double | GetTotalTextHeight () const |
void | SetCharacterOffset (const sal_Int32 nCharacterOffset) |
sal_Int32 | GetCharacterCount () const |
sal_Unicode | GetCharacter (const sal_Int32 nGlobalCharacterIndex) const |
const OUString & | GetText () const |
css::accessibility::TextSegment | GetTextSegment (const sal_Int32 nOffset, const sal_Int32 nGlobalCharacterIndex, const sal_Int16 nTextType) const |
css::accessibility::TextSegment | GetWordTextSegment (const sal_Int32 nOffset, const sal_Int32 nIndex) const |
css::accessibility::TextSegment | CreateTextSegment (sal_Int32 nStartIndex, sal_Int32 nEndIndex) const |
css::awt::Rectangle | GetCharacterBounds (sal_Int32 nGlobalCharacterIndex, const bool bCaretBox) |
void | SetupCellArray (const PresenterTheme::SharedFontDescriptor &rpFont) |
void | Format (const double nY, const double nWidth, const PresenterTheme::SharedFontDescriptor &rpFont) |
sal_Int32 | GetWordBoundary (const sal_Int32 nLocalCharacterIndex, const sal_Int32 nDistance) |
sal_Int32 | GetCaretPosition () const |
void | SetCaretPosition (const sal_Int32 nPosition) const |
void | SetOrigin (const double nXOrigin, const double nYOrigin) |
css::awt::Point | GetRelativeLocation () const |
css::awt::Size | GetSize () const |
Private Member Functions | |
void | AddWord (const double nWidth, css::i18n::Boundary &rCurrentLine, const sal_Int32 nWordBoundary, const PresenterTheme::SharedFontDescriptor &rpFont) |
void | AddLine (css::i18n::Boundary &rCurrentLine) |
sal_Int8 | GetTextDirection () const |
bool | IsTextReferencePointLeft () const |
Private Attributes | |
OUString | msParagraphText |
const sal_Int32 | mnParagraphIndex |
SharedPresenterTextCaret | mpCaret |
css::uno::Reference< css::i18n::XBreakIterator > | mxBreakIterator |
css::uno::Reference< css::i18n::XScriptTypeDetector > | mxScriptTypeDetector |
::std::vector< Line > | maLines |
::std::vector< sal_Int32 > | maWordBoundaries |
double | mnVerticalOffset |
double | mnXOrigin |
double | mnYOrigin |
double | mnWidth |
double | mnAscent |
double | mnDescent |
double | mnLineHeight |
sal_Int8 | mnWritingMode |
sal_Int32 | mnCharacterOffset |
The index of the first character in this paragraph with respect to the whole text. More... | |
::std::vector< Cell > | maCells |
Definition at line 88 of file PresenterTextView.hxx.
sdext::presenter::PresenterTextParagraph::PresenterTextParagraph | ( | const sal_Int32 | nParagraphIndex, |
const css::uno::Reference< css::i18n::XBreakIterator > & | rxBreakIterator, | ||
const css::uno::Reference< css::i18n::XScriptTypeDetector > & | rxScriptTypeDetector, | ||
const css::uno::Reference< css::text::XTextRange > & | rxTextRange, | ||
SharedPresenterTextCaret | xCaret | ||
) |
Definition at line 431 of file PresenterTextView.cxx.
References mnParagraphIndex, mnWidth, mnWritingMode, msParagraphText, and text().
|
private |
Definition at line 685 of file PresenterTextView.cxx.
References maCells, maLines, mnAscent, sdext::presenter::PresenterTextParagraph::Line::mnBaseLine, sdext::presenter::PresenterTextParagraph::Cell::mnCellWidth, sdext::presenter::PresenterTextParagraph::Cell::mnCharacterCount, sdext::presenter::PresenterTextParagraph::Cell::mnCharacterIndex, sdext::presenter::PresenterTextParagraph::Line::mnLineEndCellIndex, sdext::presenter::PresenterTextParagraph::Line::mnLineEndCharacterIndex, mnLineHeight, sdext::presenter::PresenterTextParagraph::Line::mnLineStartCellIndex, mnVerticalOffset, and sdext::presenter::PresenterTextParagraph::Line::mnWidth.
|
private |
Definition at line 657 of file PresenterTextView.cxx.
References AddLine(), sdext::presenter::PresenterCanvasHelper::GetTextBoundingBox(), maLines, mnWritingMode, msParagraphText, and nLineWidth.
Referenced by Format().
TextSegment sdext::presenter::PresenterTextParagraph::CreateTextSegment | ( | sal_Int32 | nStartIndex, |
sal_Int32 | nEndIndex | ||
) | const |
Definition at line 857 of file PresenterTextView.cxx.
References msParagraphText.
Referenced by GetTextSegment(), and GetWordTextSegment().
void sdext::presenter::PresenterTextParagraph::Format | ( | const double | nY, |
const double | nWidth, | ||
const PresenterTheme::SharedFontDescriptor & | rpFont | ||
) |
Definition at line 524 of file PresenterTextView.cxx.
References AddLine(), AddWord(), maLines, maWordBoundaries, mnAscent, mnDescent, mnLineHeight, mnVerticalOffset, mnWidth, msParagraphText, mxBreakIterator, and mxScriptTypeDetector.
sal_Int32 sdext::presenter::PresenterTextParagraph::GetCaretPosition | ( | ) | const |
Definition at line 623 of file PresenterTextView.cxx.
References mnParagraphIndex, and mpCaret.
sal_Unicode sdext::presenter::PresenterTextParagraph::GetCharacter | ( | const sal_Int32 | nGlobalCharacterIndex | ) | const |
Definition at line 733 of file PresenterTextView.cxx.
References mnCharacterOffset, and msParagraphText.
awt::Rectangle sdext::presenter::PresenterTextParagraph::GetCharacterBounds | ( | sal_Int32 | nGlobalCharacterIndex, |
const bool | bCaretBox | ||
) |
Definition at line 873 of file PresenterTextView.cxx.
References GetTextDirection(), sdext::presenter::PresenterTextParagraph::Line::maCellBoxes, maLines, mnAscent, mnDescent, sdext::presenter::PresenterTextParagraph::Line::mnLineEndCharacterIndex, mnLineHeight, sdext::presenter::PresenterTextParagraph::Line::mnLineStartCharacterIndex, mnVerticalOffset, sdext::presenter::PresenterTextParagraph::Line::mnWidth, mnXOrigin, mnYOrigin, and sdext::presenter::PresenterTextParagraph::Line::ProvideCellBoxes().
sal_Int32 sdext::presenter::PresenterTextParagraph::GetCharacterCount | ( | ) | const |
Definition at line 728 of file PresenterTextView.cxx.
References msParagraphText.
Referenced by GetWordBoundary(), and GetWordTextSegment().
awt::Point sdext::presenter::PresenterTextParagraph::GetRelativeLocation | ( | ) | const |
Definition at line 643 of file PresenterTextView.cxx.
References mnVerticalOffset, mnXOrigin, and mnYOrigin.
awt::Size sdext::presenter::PresenterTextParagraph::GetSize | ( | ) | const |
Definition at line 650 of file PresenterTextView.cxx.
References GetTotalTextHeight(), and mnWidth.
const OUString & sdext::presenter::PresenterTextParagraph::GetText | ( | ) | const |
Definition at line 747 of file PresenterTextView.cxx.
References msParagraphText.
|
private |
Definition at line 940 of file PresenterTextView.cxx.
References mnWritingMode, msParagraphText, and mxScriptTypeDetector.
Referenced by GetCharacterBounds(), Paint(), and SetupCellArray().
TextSegment sdext::presenter::PresenterTextParagraph::GetTextSegment | ( | const sal_Int32 | nOffset, |
const sal_Int32 | nGlobalCharacterIndex, | ||
const sal_Int16 | nTextType | ||
) | const |
Definition at line 752 of file PresenterTextView.cxx.
References CreateTextSegment(), GetWordTextSegment(), maLines, mnCharacterOffset, msParagraphText, mxBreakIterator, and nIndex.
double sdext::presenter::PresenterTextParagraph::GetTotalTextHeight | ( | ) | const |
Definition at line 718 of file PresenterTextView.cxx.
References maLines, and mnLineHeight.
Referenced by GetSize().
sal_Int32 sdext::presenter::PresenterTextParagraph::GetWordBoundary | ( | const sal_Int32 | nLocalCharacterIndex, |
const sal_Int32 | nDistance | ||
) |
Definition at line 583 of file PresenterTextView.cxx.
References GetCharacterCount(), o3tl::make_unsigned(), maWordBoundaries, nCount, and nIndex.
TextSegment sdext::presenter::PresenterTextParagraph::GetWordTextSegment | ( | const sal_Int32 | nOffset, |
const sal_Int32 | nIndex | ||
) | const |
Definition at line 812 of file PresenterTextView.cxx.
References CreateTextSegment(), GetCharacterCount(), msParagraphText, mxBreakIterator, and nIndex.
Referenced by GetTextSegment().
|
private |
Definition at line 988 of file PresenterTextView.cxx.
References mnWritingMode.
Referenced by Paint().
void sdext::presenter::PresenterTextParagraph::Paint | ( | const css::uno::Reference< css::rendering::XCanvas > & | rxCanvas, |
const css::geometry::RealSize2D & | rSize, | ||
const PresenterTheme::SharedFontDescriptor & | rpFont, | ||
const css::rendering::ViewState & | rViewState, | ||
css::rendering::RenderState & | rRenderState, | ||
const double | nTopOffset, | ||
const double | nClipTop, | ||
const double | nClipBottom | ||
) |
Definition at line 467 of file PresenterTextView.cxx.
References GetTextDirection(), IsTextReferencePointLeft(), maLines, mnAscent, sdext::presenter::PresenterTextParagraph::Line::mnBaseLine, mnLineHeight, msParagraphText, sdext::presenter::PresenterTextParagraph::Line::mxLayoutedLine, nCount, nIndex, and sdext::presenter::PresenterTextParagraph::Line::ProvideLayoutedLine().
void sdext::presenter::PresenterTextParagraph::SetCaretPosition | ( | const sal_Int32 | nPosition | ) | const |
Definition at line 631 of file PresenterTextView.cxx.
References mnParagraphIndex, and mpCaret.
void sdext::presenter::PresenterTextParagraph::SetCharacterOffset | ( | const sal_Int32 | nCharacterOffset | ) |
Definition at line 723 of file PresenterTextView.cxx.
References mnCharacterOffset.
void sdext::presenter::PresenterTextParagraph::SetOrigin | ( | const double | nXOrigin, |
const double | nYOrigin | ||
) |
Definition at line 637 of file PresenterTextView.cxx.
void sdext::presenter::PresenterTextParagraph::SetupCellArray | ( | const PresenterTheme::SharedFontDescriptor & | rpFont | ) |
Definition at line 993 of file PresenterTextView.cxx.
References GetTextDirection(), maCells, msParagraphText, mxBreakIterator, and nIndex.
|
private |
Definition at line 198 of file PresenterTextView.hxx.
Referenced by AddLine(), and SetupCellArray().
|
private |
Definition at line 183 of file PresenterTextView.hxx.
Referenced by AddLine(), AddWord(), Format(), GetCharacterBounds(), GetTextSegment(), GetTotalTextHeight(), and Paint().
|
private |
Definition at line 184 of file PresenterTextView.hxx.
Referenced by Format(), and GetWordBoundary().
|
private |
Definition at line 191 of file PresenterTextView.hxx.
Referenced by AddLine(), Format(), GetCharacterBounds(), and Paint().
|
private |
The index of the first character in this paragraph with respect to the whole text.
Definition at line 197 of file PresenterTextView.hxx.
Referenced by GetCharacter(), GetTextSegment(), and SetCharacterOffset().
|
private |
Definition at line 192 of file PresenterTextView.hxx.
Referenced by Format(), and GetCharacterBounds().
|
private |
Definition at line 193 of file PresenterTextView.hxx.
Referenced by AddLine(), Format(), GetCharacterBounds(), GetTotalTextHeight(), and Paint().
|
private |
Definition at line 144 of file PresenterTextView.hxx.
Referenced by GetCaretPosition(), and SetCaretPosition().
|
private |
Definition at line 187 of file PresenterTextView.hxx.
Referenced by AddLine(), Format(), GetCharacterBounds(), and GetRelativeLocation().
|
private |
Definition at line 190 of file PresenterTextView.hxx.
|
private |
Definition at line 194 of file PresenterTextView.hxx.
Referenced by AddWord(), GetTextDirection(), IsTextReferencePointLeft(), and PresenterTextParagraph().
|
private |
Definition at line 188 of file PresenterTextView.hxx.
Referenced by GetCharacterBounds(), GetRelativeLocation(), and SetOrigin().
|
private |
Definition at line 189 of file PresenterTextView.hxx.
Referenced by GetCharacterBounds(), GetRelativeLocation(), and SetOrigin().
|
private |
Definition at line 145 of file PresenterTextView.hxx.
Referenced by GetCaretPosition(), and SetCaretPosition().
|
private |
Definition at line 143 of file PresenterTextView.hxx.
Referenced by AddWord(), CreateTextSegment(), Format(), GetCharacter(), GetCharacterCount(), GetText(), GetTextDirection(), GetTextSegment(), GetWordTextSegment(), Paint(), PresenterTextParagraph(), and SetupCellArray().
|
private |
Definition at line 181 of file PresenterTextView.hxx.
Referenced by Format(), GetTextSegment(), GetWordTextSegment(), and SetupCellArray().
|
private |
Definition at line 182 of file PresenterTextView.hxx.
Referenced by Format(), and GetTextDirection().