mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
ws changes only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4934 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
260c7f3187
commit
8e5e952472
@ -1,5 +1,8 @@
|
||||
2002-08-11 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* paragraph.C, ToolbarDefaults.h, kbsequence.h, lyx_main.C,
|
||||
lyxfunc.C lyxlex_pimpl.C: ws changes only.
|
||||
|
||||
* insets/insettext.C: InsetList changes
|
||||
|
||||
* graphics/GraphicsSupport.C (operator()): InsetList changes
|
||||
|
@ -30,11 +30,11 @@ public:
|
||||
/// The special toolbar actions
|
||||
enum ItemType {
|
||||
/// adds space between buttons in the toolbar
|
||||
SEPARATOR=-3,
|
||||
SEPARATOR = -3,
|
||||
/// a special combox insead of a button
|
||||
LAYOUTS=-2,
|
||||
LAYOUTS = -2,
|
||||
/// begin a new line of button (not working)
|
||||
NEWLINE=-1
|
||||
NEWLINE = -1
|
||||
};
|
||||
|
||||
///
|
||||
|
@ -25,7 +25,7 @@ class kb_keymap;
|
||||
class kb_sequence {
|
||||
public:
|
||||
typedef std::vector<LyXKeySymPtr> KeySequence;
|
||||
|
||||
|
||||
friend class kb_keymap;
|
||||
|
||||
///
|
||||
@ -105,7 +105,7 @@ private:
|
||||
|
||||
/**
|
||||
* Array holding the current key sequence as KeySyms.
|
||||
* If sequence[length-1] < 0xff it can be used as ISO8859 char
|
||||
* If sequence[length - 1] < 0xff it can be used as ISO8859 char
|
||||
*/
|
||||
KeySequence sequence;
|
||||
|
||||
|
@ -570,7 +570,7 @@ void LyX::queryUserLyXDir(bool explicit_userdir)
|
||||
first_start = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
first_start = !explicit_userdir;
|
||||
|
||||
// If the user specified explicitly a directory, ask whether
|
||||
@ -635,7 +635,7 @@ void LyX::readUIFile(string const & name)
|
||||
ui_last
|
||||
};
|
||||
|
||||
struct keyword_item uitags[ui_last-1] = {
|
||||
struct keyword_item uitags[ui_last - 1] = {
|
||||
{ "menuset", ui_menuset },
|
||||
{ "toolbar", ui_toolbar }
|
||||
};
|
||||
@ -860,7 +860,7 @@ bool LyX::easyParse(int & argc, char * argv[])
|
||||
|
||||
string arg((i + 1 < argc) ? argv[i + 1] : "");
|
||||
string arg2((i + 2 < argc) ? argv[i + 2] : "");
|
||||
|
||||
|
||||
int const remove = 1 + it->second(arg, arg2);
|
||||
|
||||
// Now, remove used arguments by shifting
|
||||
|
@ -1358,7 +1358,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
|
||||
// changed. Suspect so. Leave as-is therefore.
|
||||
if (contains(argument, "|")) {
|
||||
p.setContents(token(argument, '|', 0));
|
||||
p.setOptions( token(argument, '|', 1));
|
||||
p.setOptions(token(argument, '|', 1));
|
||||
} else {
|
||||
p.setContents(argument);
|
||||
}
|
||||
|
@ -352,8 +352,8 @@ bool LyXLex::Pimpl::next(bool esc /* = false */)
|
||||
is.get(cc);
|
||||
c = cc;
|
||||
} while (c > ' ' && c != ',' && is
|
||||
&& (i != LEX_MAX_BUFF-1));
|
||||
if (i == LEX_MAX_BUFF-1) {
|
||||
&& (i != LEX_MAX_BUFF - 1));
|
||||
if (i == LEX_MAX_BUFF - 1) {
|
||||
printError("Line too long");
|
||||
}
|
||||
buff[i] = '\0';
|
||||
@ -464,14 +464,14 @@ bool LyXLex::Pimpl::nextToken()
|
||||
is.get(cc);
|
||||
c = cc;
|
||||
} while (c > ' ' && c != '\\' && is
|
||||
&& i != (LEX_MAX_BUFF-1));
|
||||
&& i != (LEX_MAX_BUFF - 1));
|
||||
} else {
|
||||
do {
|
||||
buff[i++] = c;
|
||||
is.get(cc);
|
||||
c = cc;
|
||||
} while (c >= ' ' && c != '\\' && is
|
||||
&& i != (LEX_MAX_BUFF-1));
|
||||
&& i != (LEX_MAX_BUFF - 1));
|
||||
}
|
||||
|
||||
if (i == (LEX_MAX_BUFF - 1)) {
|
||||
|
@ -692,7 +692,7 @@ void Paragraph::setFont(pos_type pos, LyXFont const & font)
|
||||
// Merge the singleton block with the next block
|
||||
pimpl_->fontlist.erase(pimpl_->fontlist.begin() + i);
|
||||
if (i > 0 && pimpl_->fontlist[i - 1].font() == font)
|
||||
pimpl_->fontlist.erase(pimpl_->fontlist.begin() + i-1);
|
||||
pimpl_->fontlist.erase(pimpl_->fontlist.begin() + i - 1);
|
||||
} else if (i > 0 && pimpl_->fontlist[i - 1].font() == font) {
|
||||
// Merge the singleton block with the previous block
|
||||
pimpl_->fontlist[i - 1].pos(pos);
|
||||
|
Loading…
Reference in New Issue
Block a user