Ejemplo n.º 1
0
static gboolean s_preview_draw(GtkWidget * widget, gpointer /* data */, AP_UnixDialog_Lists * me)
{
	UT_DEBUG_ONLY_ARG(widget);
	UT_ASSERT(widget && me);
	me->previewExposed();
	return FALSE;
}
AP_UnixToolbar_FontCombo::AP_UnixToolbar_FontCombo(EV_Toolbar * pToolbar,
												   XAP_Toolbar_Id id)
	: EV_Toolbar_Control(pToolbar/*,id*/)
{
	UT_DEBUG_ONLY_ARG(id);
	UT_ASSERT(id == AP_TOOLBAR_ID_FMT_FONT);
	m_nPixels = 150;

	m_nLimit = GR_CairoGraphics::getAllFontCount();
}
AP_CocoaToolbar_ZoomCombo::AP_CocoaToolbar_ZoomCombo(EV_Toolbar * pToolbar,
        XAP_Toolbar_Id id)
    : EV_Toolbar_Control(pToolbar/*,id*/)
{
    UT_DEBUG_ONLY_ARG(id);

    UT_ASSERT(id==AP_TOOLBAR_ID_ZOOM);

    m_nPixels = 50;		// TODO: do a better calculation
    m_nLimit = 6;
}
AP_CocoaToolbar_StyleCombo::AP_CocoaToolbar_StyleCombo(EV_Toolbar * pToolbar,
													   XAP_Toolbar_Id tlbrid)
	: EV_Toolbar_Control(pToolbar/*,id*/)
{
	UT_DEBUG_ONLY_ARG(tlbrid);

	UT_ASSERT(tlbrid==AP_TOOLBAR_ID_FMT_STYLE);

	m_nPixels = 120;		// TODO: do a better calculation
	m_nLimit = 15;         // 15 styles before the scroll bar??.
	m_pFrame = static_cast<EV_CocoaToolbar *>(pToolbar)->getFrame();
}
void AP_UnixDialog_Paragraph::event_SpinDecrement(GtkWidget * widget)
{
	UT_DEBUG_ONLY_ARG(widget);
	UT_ASSERT(widget);
}