]> git.lyx.org Git - features.git/blobdiff - src/frontends/xforms/xforms_helpers.h
use LyXLength for tabular pwidth
[features.git] / src / frontends / xforms / xforms_helpers.h
index f17fdd07585b03a98a51b9a38a1e7204bb6cbdc5..ad3133a9ea3856148ab1c5386681501f8e05ca65 100644 (file)
@@ -13,6 +13,7 @@
  
 #include "Color.h"
 #include "support/lstrings.h"
+#include "lyxlength.h"
  
 #include <vector>
 
@@ -49,6 +50,13 @@ void updateWidgetsFromLengthString(FL_OBJECT * input, FL_OBJECT * choice,
                                   string const & str,
                                   string const & default_unit);
 
+/** Given a LyXLength, set the input and choice widgets.
+    If the length is null, the choice will be set to default_unit.
+ */
+void updateWidgetsFromLength(FL_OBJECT * input, FL_OBJECT * choice,
+                            LyXLength const & len,
+                            string const & default_unit);
+
 /// struct holding xform-specific colors
 struct XformsColor : public NamedColor {
        int colorID;