• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_UnixToolbar_StyleCombo.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiWord
00004  * Copyright (C) 1998 AbiSource, Inc.
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
00020  */
00021 
00022 #ifndef AP_UNIXTOOLBAR_STYLECOMBO_H
00023 #define AP_UNIXTOOLBAR_STYLECOMBO_H
00024 
00025 #include <map>
00026 #include <string>
00027 
00028 #include "ut_compiler.h"
00029 ABI_W_NO_CONST_QUAL
00030 #include <gtk/gtk.h>
00031 ABI_W_POP
00032 
00033 #include "xap_Types.h"
00034 #include "ev_Toolbar_Control.h"
00035 #include "pd_Document.h"
00036 #include "ap_UnixFrame.h"
00037 
00038 class EV_Toolbar;
00039 class PD_Style;
00040 
00041 /*****************************************************************/
00042 
00043 class AP_UnixToolbar_StyleCombo : public EV_Toolbar_Control
00044 {
00045 public:
00046     AP_UnixToolbar_StyleCombo(EV_Toolbar * pToolbar, XAP_Toolbar_Id id);
00047     virtual ~AP_UnixToolbar_StyleCombo(void);
00048 
00049     virtual bool        populate(void);
00050     bool                repopulate(void);
00051     const PangoFontDescription* getStyle (const gchar *name);
00052     static EV_Toolbar_Control *     static_constructor(EV_Toolbar *, XAP_Toolbar_Id id);
00053 
00054 protected:
00055     AP_UnixFrame                                * m_pFrame;
00056 
00057 private:
00058     void getPangoAttrs(PD_Style             *pStyle,
00059                        PangoFontDescription *desc);
00060     void freeStyles   (void);
00061 
00062     std::map<std::string, PangoFontDescription*>    m_mapStyles;
00063     PangoFontDescription *m_pDefaultDesc;
00064 };
00065 
00066 #endif /* AP_UNIXTOOLBAR_STYLECOMBO_H */
00067 
00068 
00069 
00070 
00071 
00072 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1