LibreOffice
LibreOffice 6.3 SDK API Reference
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 
133  sequence<double> queryLogicalAdvancements();
134 
135 
156  void applyLogicalAdvancements( [in] sequence< double > aAdvancements )
158 
159 
170 
171 
193  double justify( [in] double nSize )
195 
196 
229  double combinedJustify( [in] sequence< XTextLayout > aNextLayouts, [in] double nSize )
231 
232 
243  TextHit getTextHit( [in] ::com::sun::star::geometry::RealPoint2D aHitPoint );
244 
245 
266  Caret getCaret( [in] long nInsertionIndex,
267  [in] boolean bExcludeLigatures )
269 
270 
296  long getNextInsertionIndex( [in] long nStartIndex,
297  [in] long nCaretAdvancement,
298  [in] boolean bExcludeLigatures )
300 
301 
320  XPolyPolygon2D queryVisualHighlighting( [in] long nStartIndex,
321  [in] long nEndIndex )
323 
324 
345  XPolyPolygon2D queryLogicalHighlighting( [in] long nStartIndex,
346  [in] long nEndIndex )
348 
349 
363  double getBaselineOffset();
364 
365 
373  byte getMainTextDirection();
374 
375 
380  XCanvasFont getFont();
381 
382 
387  StringContext getText();
388 
389 
390 };
391 
392 }; }; }; };
393 
394 #endif
395 
396 /* 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
Definition: Ambiguous.idl:22
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