/* -*- 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 .
*/
This class manages all fonts which can be display on one or two output devices. Additionally, this class offers methods for generating the StyleName from bold and italics or the missing attributes from a StyleName. Furthermore, this class can handle synthetically reproduced fonts. It also works with several standard controls and standard menus.
Links:
class FontNameBox, class FontStyleBox, class FontSizeBox, class FontNameMenu, class FontSizeMenu
Constructor of the FontList class. The relevant fonts will be queried from the OutputDevice. The OutputDevice needs to exist as long as the FontList class exists. Optionally, a second output device can be given in order to, e.g., manage the fonts from both, a printer and a screen in a single FontList and thus also give FontMenus the fonts if both OutputDevices. The pDevice2 needs to exist as long as the FontList class exists.
The OutputDevice given first should be the preferred one. This is usually the printer. Because if two different device fonts (one for the printer and one for the screen) exist, the ones from the "pDevice" are preferred.
The third parameter governs whether only scalable or all fonts shall be queried. With sal_True bitmap fonts will also be queried. With sal_False vectorized and scalable fonts will be queried.
This method search a FontMetric for the given name and the given style name. The Stylename can also be a synthetic one. In that case the relevant FontMetric fields will be set. If a StyleName is provided, a FontMetric structure without a Stylename can be returned. To get a representation of the StyleName for displaying it to the user, call GetStyleName() on this FontMetric structure.
This method search a FontMetric structure for a provided name and styles. This method can also return a FontMetric without a Stylename. To get a representation of the StyleName to be presented to the user call GetStyleName() with this FontMetric.
This method returns the available sizes for the given font. As all fonts are scalable, standard sizes are returned. The array contains the heights of the font in tenth (1/10) point. The last value of the array is 0. The returned array will destroyed by the FontList. You should thus not reference the array after the next method call on the FontList.
*/
class SVT_DLLPUBLIC FontList
{ private: staticconstint aStdSizeAry[];
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 ist noch experimentell.