bug 8801; new font enumeration API for font prefs UI; r=ftang
git-svn-id: svn://10.0.0.236/trunk@54153 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d8260be26b
commit
52d4e80c00
@ -2,4 +2,5 @@
|
||||
# This is a list of local files which get copied to the mozilla:dist:widget directory
|
||||
#
|
||||
|
||||
nsIFontEnumerator.idl
|
||||
nsIScriptableRegion.idl
|
||||
|
||||
@ -29,7 +29,10 @@ include $(DEPTH)/config/autoconf.mk
|
||||
MODULE = raptor
|
||||
XPIDL_MODULE = gfx
|
||||
|
||||
XPIDLSRCS = nsIScriptableRegion.idl
|
||||
XPIDLSRCS = \
|
||||
nsIFontEnumerator.idl \
|
||||
nsIScriptableRegion.idl \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
|
||||
@ -27,6 +27,7 @@ MODULE=raptor
|
||||
XPIDL_MODULE=gfx
|
||||
|
||||
XPIDLSRCS = \
|
||||
.\nsIFontEnumerator.idl \
|
||||
.\nsIScriptableRegion.idl \
|
||||
$(NULL)
|
||||
|
||||
|
||||
50
mozilla/gfx/idl/nsIFontEnumerator.idl
Normal file
50
mozilla/gfx/idl/nsIFontEnumerator.idl
Normal file
@ -0,0 +1,50 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public
|
||||
* License Version 1.1 (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.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corp. Portions created by Netscape are Copyright (C) 1999 Netscape
|
||||
* Communications Corp. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Erik van der Poel
|
||||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
[scriptable, uuid(a6cf9114-15b3-11d2-932e-00805f8add32)]
|
||||
interface nsIFontEnumerator : nsISupports
|
||||
{
|
||||
/**
|
||||
* Return a sorted array of the names of all installed fonts.
|
||||
*
|
||||
* @param aCount returns number of names returned
|
||||
* @param aResult returns array of names
|
||||
* @return void
|
||||
*/
|
||||
void EnumerateAllFonts(out PRUint32 aCount,
|
||||
[retval, array, size_is(aCount)] out wstring aResult);
|
||||
|
||||
/**
|
||||
* Return a sorted array of names of fonts that support the given language
|
||||
* group and are suitable for use as the given CSS generic font.
|
||||
*
|
||||
* @param aLangGroup language group
|
||||
* @param aGeneric CSS generic font
|
||||
* @param aCount returns number of names returned
|
||||
* @param aResult returns array of names
|
||||
* @return void
|
||||
*/
|
||||
void EnumerateFonts(in string aLangGroup, in string aGeneric,
|
||||
out PRUint32 aCount, [retval, array, size_is(aCount)] out wstring aResult);
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user