LibreOffice
LibreOffice 5.3 SDK API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
XTextLayout.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef __com_sun_star_rendering_XTextLayout_idl__
20 #define __com_sun_star_rendering_XTextLayout_idl__
21 
33 
34 
35 module com { module sun { module star { module rendering {
36 
37 interface XCanvas;
38 interface XCanvasFont;
39 interface XPolyPolygon2D;
40 
66 {
75  sequence<XPolyPolygon2D> queryTextShapes();
76 
77 
92  sequence<::com::sun::star::geometry::RealRectangle2D > queryInkMeasures();
93 
94 
108  sequence<::com::sun::star::geometry::RealRectangle2D> queryMeasures();
109 
110 
129  sequence<double> queryLogicalAdvancements();
130 
131 
152  void applyLogicalAdvancements( [in] sequence< double > aAdvancements )
154 
155 
166 
167 
189  double justify( [in] double nSize )
191 
192 
225  double combinedJustify( [in] sequence< XTextLayout > aNextLayouts, [in] double nSize )
227 
228 
239  TextHit getTextHit( [in] ::com::sun::star::geometry::RealPoint2D aHitPoint );
240 
241 
262  Caret getCaret( [in] long nInsertionIndex,
263  [in] boolean bExcludeLigatures )
265 
266 
292  long getNextInsertionIndex( [in] long nStartIndex,
293  [in] long nCaretAdvancement,
294  [in] boolean bExcludeLigatures )
296 
297 
316  XPolyPolygon2D queryVisualHighlighting( [in] long nStartIndex,
317  [in] long nEndIndex )
319 
320 
341  XPolyPolygon2D queryLogicalHighlighting( [in] long nStartIndex,
342  [in] long nEndIndex )
344 
345 
359  double getBaselineOffset();
360 
361 
369  byte getMainTextDirection();
370 
371 
376  XCanvasFont getFont();
377 
378 
383  StringContext getText();
384 
385 
386 };
387 
388 }; }; }; };
389 
390 #endif
391 
392 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This interface provides access to a specific, XCanvas-dependent font incarnation. ...
Definition: XCanvasFont.idl:43
This exception is thrown to indicate that a container has been accessed with an illegal index...
Definition: IndexOutOfBoundsException.idl:34
This structure defines a two-dimensional point.
Definition: RealPoint2D.idl:31
This exception is thrown to indicate that a method has passed an illegal or inappropriate argument...
Definition: IllegalArgumentException.idl:29
Collection of string-related arguments used on all canvas text interfaces.
Definition: StringContext.idl:33
This structure contains the necessary information for a two-dimensional rectangle.
Definition: RealRectangle2D.idl:42
Generic interface for poly-polygons in 2D.
Definition: XPolyPolygon2D.idl:34
base interface of all UNO interfaces
Definition: XInterface.idl:47
This is the central interface for text layouting.
Definition: XTextLayout.idl:65
This structure contains the caret information.
Definition: Caret.idl:31
This structure contains hit information for XTextLayout.
Definition: TextHit.idl:31