:: com :: sun :: star :: util ::
|
interface XStringAbbreviation |
|
- Description
- Abbreviate arbitrary strings.
It is expected that there will be different implementations of this
interface, that each expect strings conforming to a certain structure
(e.g., URIs, platform-specific file paths, or newsgroup names). The
abbreviation algorithms will then take into account the structural
information.
- See also
- XStringWidth
|
Methods' Summary |
abbreviateString |
Abbreviate a string, so that the resulting abbreviated string is not
wider than some given width.
|
Methods' Details |
abbreviateString
string |
abbreviateString( |
[in] XStringWidth |
xStringWidth, |
| [in] long |
nWidth, |
| [in] string |
aString ); |
- Description
- Abbreviate a string, so that the resulting abbreviated string is not
wider than some given width.
The width of a string is an abstract concept here, measured via
an XStringWidth interface. Examples are the number of
characters in the string (XStringWidth will measure the
string's length), or the width in pixel when displayed with a specific
font (which XStringWidth would encapsulate).
- Parameter xStringWidth
- The interface that makes concrete the abstract notion of string width.
- Parameter nWidth
- The resulting abbreviated string's width will be no larger than this.
- Parameter aString
- The string that is abbreviated.
- Returns
- an abbreviated string.
|
|
Top of Page
Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.