]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/xforms_helpers.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / xforms_helpers.h
index 828ada07a09f32c665365c7712baedd89df85e2e..490ab6e767eb3759e73bc0fa9a84fdc9412578c7 100644 (file)
@@ -39,13 +39,20 @@ std::vector<string> const getVectorFromChoice(FL_OBJECT *);
 /// Given an fl_browser, create a vector of its entries
 std::vector<string> const getVectorFromBrowser(FL_OBJECT *);
 
+/// Given an fl_input, return its contents.
+string const getStringFromInput(FL_OBJECT * ob);
+
 /** Given an fl_browser, return the contents of the currently
-    highlighted line (xforms numbering convention; starts at 1).
-    If nothing is selected, return an empty string.
-    This function, although apparently overkill, ensures that we don't get
-    unexpected crashes.
+    highlighted line.
+*/
+/** Given an fl_browser, return the contents of line
+    (xforms numbering convention; starts at 1).
 */
 string const getStringFromBrowser(FL_OBJECT * ob, int line);
+/** Given an fl_browser, return the contents of the currently
+    highlighted line.
+*/
+string const getSelectedStringFromBrowser(FL_OBJECT * ob);
 
 /// Given input and choice widgets, create a string such as "1cm"
 string getLengthFromWidgets(FL_OBJECT * input, FL_OBJECT * choice);