mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
table selection fix from John; Here & wide figures fix from Michael K.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3284 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
29c112f031
commit
1f2b361067
@ -9,7 +9,6 @@ src/converter.C
|
|||||||
src/CutAndPaste.C
|
src/CutAndPaste.C
|
||||||
src/debug.C
|
src/debug.C
|
||||||
src/exporter.C
|
src/exporter.C
|
||||||
src/ext_l10n.h
|
|
||||||
src/figure_form.C
|
src/figure_form.C
|
||||||
src/figureForm.C
|
src/figureForm.C
|
||||||
src/FontLoader.C
|
src/FontLoader.C
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-11 Michael A. Koziarski <michael@koziarski.org>
|
||||||
|
|
||||||
|
* ControlFloat.[Ch]: changes to prevent here definitely being used
|
||||||
|
with wide figures.
|
||||||
|
|
||||||
2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||||
|
|
||||||
* ControlThesaurus.h: do not include <config.h> in header files
|
* ControlThesaurus.h: do not include <config.h> in header files
|
||||||
|
@ -57,10 +57,12 @@ FloatParams const ControlFloat::getParams(InsetFloat const & inset)
|
|||||||
|
|
||||||
|
|
||||||
FloatParams::FloatParams()
|
FloatParams::FloatParams()
|
||||||
: placement("htbp")
|
: placement("htbp"),
|
||||||
|
allow_here_definitely(true)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
FloatParams::FloatParams(InsetFloat const & inset)
|
FloatParams::FloatParams(InsetFloat const & inset)
|
||||||
: placement(inset.placement())
|
: placement(inset.placement()),
|
||||||
|
allow_here_definitely(!inset.wide())
|
||||||
{}
|
{}
|
||||||
|
@ -32,13 +32,15 @@ struct FloatParams {
|
|||||||
FloatParams(InsetFloat const &);
|
FloatParams(InsetFloat const &);
|
||||||
///
|
///
|
||||||
string placement;
|
string placement;
|
||||||
|
///
|
||||||
|
bool allow_here_definitely;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
inline
|
inline
|
||||||
bool operator==(FloatParams const & p1, FloatParams const & p2)
|
bool operator==(FloatParams const & p1, FloatParams const & p2)
|
||||||
{
|
{
|
||||||
return p1.placement == p2.placement;
|
return p1.placement == p2.placement && p1.allow_here_definitely == p2.allow_here_definitely;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-11 Michael A. Koziarski <michael@koziarski.org>
|
||||||
|
|
||||||
|
* FormFloat.C: changes to prevent here definitely being used
|
||||||
|
with wide figures.
|
||||||
|
|
||||||
2001-12-29 Dekel Tsur <dekelts@tau.ac.il>
|
2001-12-29 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
* FormMathsMatrix.C (AlignFilter): Allow entering the '|' char.
|
* FormMathsMatrix.C (AlignFilter): Allow entering the '|' char.
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "FormFloat.h"
|
#include "FormFloat.h"
|
||||||
#include "form_float.h"
|
#include "form_float.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
#include "xforms_helpers.h"
|
||||||
|
|
||||||
typedef FormCB<ControlFloat, FormDB<FD_form_float> > base_class;
|
typedef FormCB<ControlFloat, FormDB<FD_form_float> > base_class;
|
||||||
|
|
||||||
@ -105,6 +106,7 @@ void FormFloat::update()
|
|||||||
fl_set_button(dialog_->radio_page, page);
|
fl_set_button(dialog_->radio_page, page);
|
||||||
fl_set_button(dialog_->radio_here, here);
|
fl_set_button(dialog_->radio_here, here);
|
||||||
fl_set_button(dialog_->button_here_definitely, here_definitely);
|
fl_set_button(dialog_->button_here_definitely, here_definitely);
|
||||||
|
setEnabled(dialog_->button_here_definitely, controller().params().allow_here_definitely);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2001-12-31 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
|
* insettabular.C: correct single-cell select vertically
|
||||||
|
|
||||||
2001-12-27 Juergen Vigna <jug@sad.it>
|
2001-12-27 Juergen Vigna <jug@sad.it>
|
||||||
|
|
||||||
* insettabular.C (ascii): export as tab-separated-values if the
|
* insettabular.C (ascii): export as tab-separated-values if the
|
||||||
|
@ -961,14 +961,16 @@ InsetTabular::localDispatch(BufferView * bv, kb_action action,
|
|||||||
int const ocell = actcell;
|
int const ocell = actcell;
|
||||||
// if we are starting a selection, only select
|
// if we are starting a selection, only select
|
||||||
// the current cell at the beginning
|
// the current cell at the beginning
|
||||||
if (hasSelection()) {
|
if (hasSelection()) {
|
||||||
moveDown(bv, false);
|
moveDown(bv, false);
|
||||||
|
if ((ocell == sel_cell_end) ||
|
||||||
|
(tabular->column_of_cell(ocell)>tabular->column_of_cell(actcell)))
|
||||||
|
setSelection(start, tabular->GetCellBelow(sel_cell_end));
|
||||||
|
else
|
||||||
|
setSelection(start, tabular->GetLastCellBelow(sel_cell_end));
|
||||||
|
} else {
|
||||||
|
setSelection(start, start);
|
||||||
}
|
}
|
||||||
if ((ocell == sel_cell_end) ||
|
|
||||||
(tabular->column_of_cell(ocell)>tabular->column_of_cell(actcell)))
|
|
||||||
setSelection(start, tabular->GetCellBelow(sel_cell_end));
|
|
||||||
else
|
|
||||||
setSelection(start, tabular->GetLastCellBelow(sel_cell_end));
|
|
||||||
updateLocal(bv, SELECTION, false);
|
updateLocal(bv, SELECTION, false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -986,12 +988,14 @@ InsetTabular::localDispatch(BufferView * bv, kb_action action,
|
|||||||
// the current cell at the beginning
|
// the current cell at the beginning
|
||||||
if (hasSelection()) {
|
if (hasSelection()) {
|
||||||
moveUp(bv, false);
|
moveUp(bv, false);
|
||||||
|
if ((ocell == sel_cell_end) ||
|
||||||
|
(tabular->column_of_cell(ocell)>tabular->column_of_cell(actcell)))
|
||||||
|
setSelection(start, tabular->GetCellAbove(sel_cell_end));
|
||||||
|
else
|
||||||
|
setSelection(start, tabular->GetLastCellAbove(sel_cell_end));
|
||||||
|
} else {
|
||||||
|
setSelection(start, start);
|
||||||
}
|
}
|
||||||
if ((ocell == sel_cell_end) ||
|
|
||||||
(tabular->column_of_cell(ocell)>tabular->column_of_cell(actcell)))
|
|
||||||
setSelection(start, tabular->GetCellAbove(sel_cell_end));
|
|
||||||
else
|
|
||||||
setSelection(start, tabular->GetLastCellAbove(sel_cell_end));
|
|
||||||
updateLocal(bv, SELECTION, false);
|
updateLocal(bv, SELECTION, false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user