00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */ 00002 /* AbiWord 00003 * Copyright (C) 2004-2006 Tomas Frydrych <dr.tomas@yahoo.co.uk> 00004 * Copyright (C) 2009 Hubert Figuiere 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_QTTOOLBAR_STYLECOMBO_H 00023 #define AP_QtTOOLBAR_STYLECOMBO_H 00024 00025 #include <map> 00026 #include <string> 00027 00028 #include "xap_Types.h" 00029 #include "ev_Toolbar_Control.h" 00030 #include "pd_Document.h" 00031 #include "ap_QtFrame.h" 00032 00033 class EV_Toolbar; 00034 class PD_Style; 00035 00036 /*****************************************************************/ 00037 00038 class AP_QtToolbar_StyleCombo : public EV_Toolbar_Control 00039 { 00040 public: 00041 AP_QtToolbar_StyleCombo(EV_Toolbar * pToolbar, XAP_Toolbar_Id id); 00042 virtual ~AP_QtToolbar_StyleCombo(void); 00043 00044 virtual bool populate(void); 00045 bool repopulate(void); 00046 static EV_Toolbar_Control * static_constructor(EV_Toolbar *, XAP_Toolbar_Id id); 00047 00048 protected: 00049 AP_QtFrame * m_pFrame; 00050 00051 private: 00052 00053 }; 00054 00055 #endif /* AP_QTTOOLBAR_STYLECOMBO_H */ 00056