/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
/** 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.
*/ void SetCaretMotionBroadcaster ( const ::std::function<void (sal_Int32,sal_Int32,sal_Int32,sal_Int32)>& rBroadcaster);
/** A portion of a string that encodes one unicode cell. It describes number of characters in the unicode string that make up the cell and its width in pixel (with respect to some configuration that is stored externally or implicitly).
*/ class Cell
{ public:
Cell (const sal_Int32 nCharacterIndex, const sal_Int32 nCharacterCount, constdouble nCellWidth);
sal_Int32 mnCharacterIndex;
sal_Int32 mnCharacterCount; double mnCellWidth;
};
class Line
{ public:
Line (const sal_Int32 nLineStartCharacterIndex, const sal_Int32 nLineEndCharacterIndex);
sal_Int32 mnLineStartCharacterIndex;
sal_Int32 mnLineEndCharacterIndex;
sal_Int32 mnLineStartCellIndex;
sal_Int32 mnLineEndCellIndex;
css::uno::Reference<css::rendering::XTextLayout> mxLayoutedLine; double mnBaseLine; double mnWidth;
css::uno::Sequence<css::geometry::RealRectangle2D> maCellBoxes;
css::uno::Reference<css::i18n::XBreakIterator> mxBreakIterator;
css::uno::Reference<css::i18n::XScriptTypeDetector> mxScriptTypeDetector;
::std::vector<Line> maLines;
::std::vector<sal_Int32> maWordBoundaries; // Offset of the top of the paragraph with respect to the origin of the // whole text (specified by mnXOrigin and mnYOrigin). double mnVerticalOffset; double mnXOrigin; double mnYOrigin; double mnWidth; double mnAscent; double mnDescent; double mnLineHeight;
sal_Int8 mnWritingMode; /// The index of the first character in this paragraph with respect to /// the whole text.
sal_Int32 mnCharacterOffset;
::std::vector<Cell> maCells;
/** Move the caret forward or backward by character or by word. @param nDistance Should be either -1 or +1 to move caret backwards or forwards, respectively. @param nTextType Valid values are the css::accessibility::AccessibleTextType constants.
*/ void MoveCaret ( const sal_Int32 nDistance, const sal_Int16 nTextType);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.