Author: hdu Date: Fri Jan 3 16:03:40 2014 New Revision: 1555132 URL: http://svn.apache.org/r1555132 Log: #i123951# add atsfonts.hxx header file
Found by: Pavel Janik <Pavel.Janik.cz> Patch by: Herbert Duerr <[email protected]> Added: openoffice/trunk/main/vcl/aqua/source/gdi/atsfonts.hxx Added: openoffice/trunk/main/vcl/aqua/source/gdi/atsfonts.hxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/aqua/source/gdi/atsfonts.hxx?rev=1555132&view=auto ============================================================================== --- openoffice/trunk/main/vcl/aqua/source/gdi/atsfonts.hxx (added) +++ openoffice/trunk/main/vcl/aqua/source/gdi/atsfonts.hxx Fri Jan 3 16:03:40 2014 @@ -0,0 +1,57 @@ +/************************************************************** + * + * 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 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + *************************************************************/ + +#ifndef _ATSFONTS_HXX +#define _ATSFONTS_HXX + +class ImplMacFontData; +class ImplDevFontList; + +#include <premac.h> +#include <ApplicationServices/ApplicationServices.h> +#include <postmac.h> + +#include <map> + +/* This class has the responsibility of assembling a list + of atsui compatible fonts available on the system and + enabling access to that list. + */ +class SystemFontList +{ +public: + SystemFontList(); + ~SystemFontList(); + + void AnnounceFonts( ImplDevFontList& ) const; + ImplMacFontData* GetFontDataFromId( ATSUFontID ) const; + + ATSUFontFallbacks maFontFallbacks; + +private: + typedef std::hash_map<ATSUFontID,ImplMacFontData*> MacFontContainer; + MacFontContainer maFontContainer; + + void InitGlyphFallbacks(); +}; + +#endif // _ATSFONTS_HXX +
