]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xforms_resize.h
Prevent crashes experienced by speakers of "long" languages like Norwegian
[lyx.git] / src / frontends / xforms / xforms_resize.h
1 // -*- C++ -*-
2 /**
3  * \file xforms_resize.h
4  * Copyright 2000-2002 the LyX Team
5  * Read the file COPYING
6  *
7  * \author Angus Leeming, a.leeming@ic.ac.uk
8  */
9
10 #ifndef XFORMS_RESIZE_H
11 #define XFORMS_RESIZE_H
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include FORMS_H_LOCATION
18
19 /** Returns 1 if the form does not contain a tabfolder.
20     If it does contain a tabfolder, then by how much should the form be
21     scaled to render the tabs (buttons) visible.
22
23     This routine works for two levels of nested tabfolders.
24  */
25 double scale_to_fit_tabs(FL_FORM * form);
26
27 /** A wrapper for fl_scale_form(form, scale, 1) that scales the parent form
28     horizontally, but also scales the leaves (FL_FORMs) of the tabfolder,
29     should one exist.
30  */
31 void scale_form(FL_FORM * form, double scale_factor);
32
33 #endif // XFORMS_RESIZE_H