]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/xforms_resize.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / xforms_resize.h
index 6174a61837b3b4cdfb4b0b01b43d8d8d3b6f239d..cc268743f79fc6227316475792699729bd29893c 100644 (file)
@@ -1,33 +1,33 @@
 // -*- C++ -*-
 /**
  * \file xforms_resize.h
- * Copyright 2000-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming, a.leeming@ic.ac.uk
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef XFORMS_RESIZE_H
 #define XFORMS_RESIZE_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
-#include FORMS_H_LOCATION
+#include "forms_fwd.h"
 
-/** Returns 1 if the form does not contain a tabfolder.
-    If it does contain a tabfolder, then by how much should the form be
-    scaled to render the tabs (buttons) visible.
+/** Ascertains the scaling factor needed to ensure that all labels fit
+    within their button.
 
-    This routine works for two levels of nested tabfolders.
+    Tabfolders are searched also by recursively calling this function.
  */
-double scale_to_fit_tabs(FL_FORM * form);
+double get_scale_to_fit(FL_FORM * form);
 
 /** A wrapper for fl_scale_form(form, scale, 1) that scales the parent form
-    horizontally, but also scales the leaves (FL_FORMs) of the tabfolder,
-    should one exist.
+    horizontally, but also scales the leaves (FL_FORMs) of any nested
+    tabfolder, should one exist.
+
+    Tabfolders are scaled also by recursively calling this function.
  */
-void scale_form(FL_FORM * form, double scale_factor);
+void scale_form_horizontally(FL_FORM * form, double factor);
 
 #endif // XFORMS_RESIZE_H