mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
cleanups from Andre
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3075 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
85e30074c2
commit
c897a93ed7
@ -67,8 +67,6 @@ lyx_SOURCES = \
|
||||
ParagraphParameters.h \
|
||||
ParameterStruct.h \
|
||||
PrinterParams.h \
|
||||
Sectioning.h \
|
||||
Sectioning.C \
|
||||
ShareContainer.h \
|
||||
Spacing.C \
|
||||
Spacing.h \
|
||||
|
17
src/buffer.h
17
src/buffer.h
@ -162,7 +162,6 @@ public:
|
||||
*/
|
||||
void latexParagraphs(std::ostream & os, Paragraph * par,
|
||||
Paragraph * endpar, TexRow & texrow) const;
|
||||
|
||||
///
|
||||
void simpleDocBookOnePar(std::ostream &,
|
||||
Paragraph * par, int & desc_on,
|
||||
@ -170,7 +169,6 @@ public:
|
||||
///
|
||||
void simpleLinuxDocOnePar(std::ostream & os, Paragraph * par,
|
||||
Paragraph::depth_type depth);
|
||||
|
||||
///
|
||||
void makeLinuxDocFile(string const & filename,
|
||||
bool nice, bool only_body = false);
|
||||
@ -184,8 +182,7 @@ public:
|
||||
void sgmlCloseTag(std::ostream & os, Paragraph::depth_type depth,
|
||||
string const & latexname) const;
|
||||
///
|
||||
void sgmlError(Paragraph * par, int pos,
|
||||
string const & message) const;
|
||||
void sgmlError(Paragraph * par, int pos, string const & message) const;
|
||||
|
||||
/// returns the main language for the buffer (document)
|
||||
Language const * getLanguage() const;
|
||||
@ -561,7 +558,8 @@ void Buffer::setParentName(string const & name)
|
||||
|
||||
///
|
||||
inline
|
||||
bool operator==(Buffer::TocItem const & a, Buffer::TocItem const & b) {
|
||||
bool operator==(Buffer::TocItem const & a, Buffer::TocItem const & b)
|
||||
{
|
||||
return a.par == b.par && a.str == b.str;
|
||||
// No need to compare depth.
|
||||
}
|
||||
@ -569,7 +567,8 @@ bool operator==(Buffer::TocItem const & a, Buffer::TocItem const & b) {
|
||||
|
||||
///
|
||||
inline
|
||||
bool operator!=(Buffer::TocItem const & a, Buffer::TocItem const & b) {
|
||||
bool operator!=(Buffer::TocItem const & a, Buffer::TocItem const & b)
|
||||
{
|
||||
return !(a == b);
|
||||
// No need to compare depth.
|
||||
}
|
||||
@ -578,7 +577,8 @@ bool operator!=(Buffer::TocItem const & a, Buffer::TocItem const & b) {
|
||||
///
|
||||
inline
|
||||
bool operator==(Buffer::inset_iterator const & iter1,
|
||||
Buffer::inset_iterator const & iter2) {
|
||||
Buffer::inset_iterator const & iter2)
|
||||
{
|
||||
return iter1.par == iter2.par
|
||||
&& (iter1.par == 0 || iter1.it == iter2.it);
|
||||
}
|
||||
@ -587,7 +587,8 @@ bool operator==(Buffer::inset_iterator const & iter1,
|
||||
///
|
||||
inline
|
||||
bool operator!=(Buffer::inset_iterator const & iter1,
|
||||
Buffer::inset_iterator const & iter2) {
|
||||
Buffer::inset_iterator const & iter2)
|
||||
{
|
||||
return !(iter1 == iter2);
|
||||
}
|
||||
|
||||
|
@ -49,6 +49,7 @@ enum OutputType {
|
||||
LITERATE
|
||||
};
|
||||
|
||||
|
||||
/// The different margin types
|
||||
enum LYX_MARGIN_TYPE {
|
||||
///
|
||||
@ -88,6 +89,7 @@ void operator|=(LyXAlignment & la1, LyXAlignment la2) {
|
||||
la1 = static_cast<LyXAlignment>(la1 | la2);
|
||||
}
|
||||
|
||||
|
||||
/// The different LaTeX-Types
|
||||
enum LYX_LATEX_TYPES {
|
||||
///
|
||||
@ -102,6 +104,7 @@ enum LYX_LATEX_TYPES {
|
||||
LATEX_LIST_ENVIRONMENT
|
||||
};
|
||||
|
||||
|
||||
/// The different label types
|
||||
enum LYX_LABEL_TYPES {
|
||||
///
|
||||
@ -142,6 +145,7 @@ enum LYX_LABEL_TYPES {
|
||||
LABEL_COUNTER_ENUMIV
|
||||
};
|
||||
|
||||
|
||||
///
|
||||
enum LYX_END_LABEL_TYPES {
|
||||
///
|
||||
|
@ -21,7 +21,7 @@ struct keyword_item {
|
||||
///
|
||||
char const * tag;
|
||||
///
|
||||
short code;
|
||||
int code;
|
||||
};
|
||||
|
||||
/** Generalized simple lexical analizer.
|
||||
|
@ -25,10 +25,6 @@ class BufferView;
|
||||
|
||||
struct Row;
|
||||
|
||||
///
|
||||
typedef unsigned short Dimension;
|
||||
|
||||
|
||||
/** The class LyXScreen is used for the main Textbody.
|
||||
Concretely, the screen is held in a pixmap. This pixmap is kept up to
|
||||
date and used to optimize drawing on the screen.
|
||||
|
@ -288,6 +288,7 @@ void InsetFormulaBase::insetButtonPress(BufferView * bv,
|
||||
mathcursor->setPos(x + xo_, y + yo_);
|
||||
}
|
||||
break;
|
||||
/*
|
||||
case 2:
|
||||
lyxerr << "insetButtonPress: 2\n";
|
||||
// insert stuff
|
||||
@ -302,6 +303,7 @@ void InsetFormulaBase::insetButtonPress(BufferView * bv,
|
||||
mathcursor->insert(ar);
|
||||
}
|
||||
break;
|
||||
*/
|
||||
}
|
||||
bv->updateInset(this, false);
|
||||
}
|
||||
|
@ -204,7 +204,7 @@ bool isValidGlueLength (string const & data, LyXGlueLength * result)
|
||||
|
||||
// To make isValidGlueLength recognize negative values as
|
||||
// the first number this little hack is needed:
|
||||
short val_sign = 1; // positive as default
|
||||
int val_sign = 1; // positive as default
|
||||
switch (buffer[0]) {
|
||||
case '-':
|
||||
lyx_advance(buffer, 1);
|
||||
@ -270,7 +270,7 @@ bool isValidLength(string const & data, LyXLength * result)
|
||||
|
||||
// To make isValidLength recognize negative values
|
||||
// this little hack is needed:
|
||||
short val_sign = 1; // positive as default
|
||||
int val_sign = 1; // positive as default
|
||||
switch (buffer[0]) {
|
||||
case '-':
|
||||
lyx_advance(buffer, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user