src/frontends/xforms/FormWrap.C
src/frontends/xforms/XFormsMenubar.C
src/frontends/xforms/XMiniBuffer.C
+src/frontends/xforms/checkedwidgets.C
src/frontends/xforms/xformsBC.h
src/frontends/xforms/xforms_helpers.C
src/gettext.h
+2005-05-23 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * vspace.C (asGUIName): new method. A version of the space
+ suitable for showing on screen.
+
2005-05-20 Michael Schmitt <michael.schmitt@teststep.org>
* MenuBackend.C:
+2005-05-23 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * insetvspace.C (draw): use VSpace::asGUIName.
+
2005-05-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetbase.C (getStatus): allow LFUN_INSET_MODIFY unconditionally
// y-values for bottom arrow
int by1, by2;
- str = label + " (" + space_.asLyXCommand() + ")";
+ str = label + " (" + space_.asGUIName() + ")";
if (space_.kind() == VSpace::VFILL) {
ty1 = ty2 = start;
#include "buffer.h"
#include "bufferparams.h"
#include "BufferView.h"
+#include "gettext.h"
#include "lengthcommon.h"
#include "lyxtext.h"
}
+string const VSpace::asGUIName() const
+{
+ string result;
+ switch (kind_) {
+ case DEFSKIP:
+ result = _("Default skip");
+ break;
+ case SMALLSKIP:
+ result = _("Small skip");
+ break;
+ case MEDSKIP:
+ result = _("Medium skip");
+ break;
+ case BIGSKIP:
+ result = _("Big skip");
+ break;
+ case VFILL:
+ result = _("Vertical fill");
+ break;
+ case LENGTH:
+ result = len_.asString();
+ break;
+ }
+ if (keep_)
+ result += ", " + _("protected");
+ return result;
+}
+
int VSpace::inPixels(BufferView const & bv) const
{
std::string const asLyXCommand() const;
/// the latex representation
std::string const asLatexCommand(BufferParams const & params) const;
+ /// how it is seen in the LyX window
+ std::string const VSpace::asGUIName() const;
/// the size of the space on-screen
int inPixels(BufferView const & bv) const;