2000-07-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+ * src/frontends/xforms/FormGraphics.C (apply): add some
+ static_cast. Not very nice, but required by compaq cxx.
+
+ * src/frontends/xforms/RadioButtonGroup.h: include header
+ <utility> instead of <pair.h>
+
+ * src/insets/insetgraphicsParams.C: add using directive.
+ (readResize): change return type to void.
+ (readOrigin): ditto.
+
* src/lyxfunc.C (getStatus): add missing break for build-program
function; add test for Literate for export functions.
#include "support/LAssert.h"
#endif
+using std::endl;
+
C_RETURNCB(FormGraphics, WMHideCB)
C_GENERICCB(FormGraphics, OKCB)
C_GENERICCB(FormGraphics, ApplyCB)
igp.filename = fl_get_input(dialog_->input_filename);
- igp.display = displayButtons.getButton();
+ igp.display = static_cast<InsetGraphicsParams::DisplayType>
+ (displayButtons.getButton());
- igp.widthResize = widthButtons.getButton();
+ igp.widthResize = static_cast<InsetGraphicsParams::Resize>
+ (widthButtons.getButton());
igp.widthSize = strToDbl(fl_get_input(dialog_->input_width));
- igp.heightResize = heightButtons.getButton();
+ igp.heightResize = static_cast<InsetGraphicsParams::Resize>
+ (heightButtons.getButton());
igp.heightSize = strToDbl(fl_get_input(dialog_->input_height));
igp.rotateAngle = strToInt(fl_get_input(dialog_->input_rotate_angle));
#include <algorithm>
#include <iterator>
using std::find_if;
+using std::endl;
void RadioButtonGroup::registerRadioButton(FL_OBJECT *button, int value)
{
#endif
#include <vector>
-#include <pair.h>
+#include <utility>
using std::vector;
using std::pair;
#include "support/LAssert.h"
#endif
+using std::endl;
+
/// This variable keeps a tab on whether the translator was set with the
/// translations.
static bool translatorsSet = false;
os << " rotateAngle " << rotateAngle << endl;
}
-static readResize(InsetGraphicsParams * igp, bool height, string const & token)
+static void readResize(InsetGraphicsParams * igp, bool height,
+ string const & token)
{
InsetGraphicsParams::Resize resize = InsetGraphicsParams::DEFAULT_SIZE;
igp->widthResize = resize;
}
-static readOrigin(InsetGraphicsParams * igp, string const & token)
+static void readOrigin(InsetGraphicsParams * igp, string const & token)
{ // TODO: complete this function.
igp->rotateOrigin = originTranslator.find(token);
}