}
-#if 0
-void BufferView::enterView()
-{
- pimpl_->enterView();
-}
-
-
-void BufferView::leaveView()
-{
- pimpl_->leaveView();
-}
-
-
-// Callback for scrollbar slider
-void BufferView::scrollCB(double value)
-{
- pimpl_->scrollCB(value);
-}
-
-
-void BufferView::workAreaMotionNotify(int x, int y, unsigned int state)
-{
- pimpl_->workAreaMotionNotify(x, y, state);
-}
-
-
-/// Single-click on work area
-void BufferView::workAreaButtonPress(int xpos, int ypos, unsigned int button)
-{
- pimpl_->workAreaButtonPress(xpos, ypos, button);
-}
-
-
-void BufferView::doubleClick(int x, int y, unsigned int button)
-{
- pimpl_->doubleClick(x, y, button);
-}
-
-
-void BufferView::tripleClick(int x, int y, unsigned int button)
-{
- pimpl_->tripleClick(x, y, button);
-}
-
-
-void BufferView::workAreaButtonRelease(int x, int y, unsigned int button)
-{
- pimpl_->workAreaButtonRelease(x, y, button);
-}
-
-
-void BufferView::workAreaExpose()
-{
- pimpl_->workAreaExpose();
-}
-#endif
-
-
void BufferView::cursorPrevious(LyXText * text)
{
pimpl_->cursorPrevious(text);
///
void pushIntoUpdateList(Inset * i);
-#if 0
- ///
- void workAreaExpose();
- ///
- void workAreaButtonPress(int x, int y, unsigned int button);
- ///
- void workAreaButtonRelease(int x, int y, unsigned int button);
- ///
- void workAreaMotionNotify(int x, int y, unsigned int state);
- ///
- void doubleClick(int x, int y, unsigned int button);
- ///
- void tripleClick(int x, int y, unsigned int button);
- ///
- void enterView();
- ///
- void leaveView();
-#endif
///
bool ChangeInsets(Inset::Code code, string const & from,
string const & to);
: bv_(b), owner_(o), cursor_timeout(400)
{
buffer_ = 0;
-#if 0
- workarea_ = new WorkArea(bv_, xpos, ypos, width, height);
-#else
workarea_ = new WorkArea(xpos, ypos, width, height);
-#endif
// Setup the signals
workarea_->scrollCB.connect(slot(this, &BufferView::Pimpl::scrollCB));
workarea_->workAreaExpose
+2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * screen.C:
+ * lyxrc.[Ch]:
+ * lyxfunc.C:
+ * lyxfont.[Ch]:
+ * lyx_cb.C:
+ * intl.[Ch]:
+ * commandtags.h:
+ * buffer.C:
+ * WorkArea.[Ch]:
+ * LyXAction.C:
+ * BufferView_pimpl.C:
+ * BufferView.[Ch]: remove cruft
+
2001-02-14 Juergen Vigna <jug@sad.it>
* lyxfunc.C: removed #if 0 unused code
{ LFUN_ENDBUFSEL, "buffer-end-select",
N_("Select to end of document"), ReadOnly },
{ LFUN_EXPORT, "buffer-export", N_("Export to"), ReadOnly },
-#if 0
- { LFUN_FAX, "buffer-fax", N_("Fax"), ReadOnly },
-#endif
#ifndef NEW_INSETS
{ LFUN_INSERTFOOTNOTE, "buffer-float-insert", "", Noop },
#endif
#include "WorkArea.h"
#include "debug.h"
#include "support/lstrings.h"
-#if 0
-#include "BufferView.h"
-#endif
#include "LyXView.h"
#include "lyxfunc.h"
-WorkArea::WorkArea(
-#if 0
- BufferView * o,
-#endif
- int xpos, int ypos, int width, int height)
- :
-#if 0
- owner_(o),
-#endif
- workareapixmap(0), painter_(*this)
+WorkArea::WorkArea(int xpos, int ypos, int width, int height)
+ : workareapixmap(0), painter_(*this)
{
fl_freeze_all_forms();
// If we really want the accellerating scroll we can do that
// from here. IMHO that is a waste of effort since we already
// have other ways to move fast around in the document. (Lgb)
-#if 0
- area->owner_->scrollCB(fl_get_scrollbar_value(ob));
-#else
area->scrollCB(fl_get_scrollbar_value(ob));
-#endif
waitForX();
}
using SigC::Signal3;
#endif
-#if 0
-class BufferView;
-#endif
///
class WorkArea {
public:
///
- WorkArea(
-#if 0
- BufferView *,
-#endif
- int xpos, int ypos, int width, int height);
+ WorkArea(int xpos, int ypos, int width, int height);
///
~WorkArea();
///
string const getClipboard() const;
///
void putClipboard(string const &) const;
-#if 0
- ///
- BufferView * owner() const { return owner_; }
-#endif
// Signals
///
Signal0<void> workAreaExpose;
FL_OBJECT * work_area;
///
FL_OBJECT * scrollbar;
-#if 0
- ///
- BufferView * owner_;
-#endif
/// The pixmap overlay on the workarea
Pixmap workareapixmap;
///
extern LyXAction lyxaction;
-#if 0
-static const float LYX_FORMAT = 2.17;
-#else
static const int LYX_FORMAT = 218;
-#endif
extern int tex_code_break_column;
LyXParagraph * return_par = 0;
LyXFont font(LyXFont::ALL_INHERIT, params.language);
-#if 0
- if (format < 2.16 && params.language->lang() == "hebrew")
- font.setLanguage(default_language);
-#else
if (file_format < 216 && params.language->lang() == "hebrew")
font.setLanguage(default_language);
-#endif
// If we are inserting, we cheat and get a token in advance
bool has_token = false;
string pretoken;
#endif
par->depth = depth;
font = LyXFont(LyXFont::ALL_INHERIT, params.language);
-#if 0
- if (format < 2.16 && params.language->lang() == "hebrew")
- font.setLanguage(default_language);
-#else
if (file_format < 216 && params.language->lang() == "hebrew")
font.setLanguage(default_language);
-#endif
#ifndef NEW_INSETS
} else if (token == "\\end_float") {
if (!return_par)
lex.EatLine();
par->layout = LYX_DUMMY_LAYOUT;
font = LyXFont(LyXFont::ALL_INHERIT, params.language);
-#if 0
- if (format < 2.16 && params.language->lang() == "hebrew")
- font.setLanguage(default_language);
-#else
if (file_format < 216 && params.language->lang() == "hebrew")
font.setLanguage(default_language);
-#endif
} else if (token == "\\begin_float") {
int tmpret = lex.FindToken(string_footnotekinds);
if (tmpret == -1) ++tmpret;
int tmpret = lex.FindToken(string_align);
if (tmpret == -1) ++tmpret;
if (tmpret != LYX_LAYOUT_DEFAULT) { // tmpret != 99 ???
-#if 0
- int tmpret2 = 1;
- for (; tmpret > 0; --tmpret)
- tmpret2 = tmpret2 * 2;
-#else
int const tmpret2 = int(pow(2.0, tmpret));
-#endif
//lyxerr << "Tmpret2 = " << tmpret2 << endl;
par->align = LyXAlignment(tmpret2);
}
string const token(lex.GetString());
if (token == "\\lyxformat") { // the first token _must_ be...
lex.EatLine();
-#if 0
- format = lex.GetFloat();
- if (format > 1.0) {
- if (LYX_FORMAT - format > 0.05) {
- lyxerr << fmt(_("Warning: need lyxformat %.2f but found %.2f"),
- LYX_FORMAT, format) << endl;
- }
- if (format - LYX_FORMAT > 0.05) {
- lyxerr << fmt(_("ERROR: need lyxformat %.2f but found %.2f"),
- LYX_FORMAT, format) << endl;
- }
- bool the_end = readLyXformat2(lex, par);
- // Formats >= 2.13 support "\the_end" marker
- if (format < 2.13)
- the_end = true;
-
- setPaperStuff();
-
- if (!the_end)
- WriteAlert(_("Warning!"),
- _("Reading of document is not complete"),
- _("Maybe the document is truncated"));
- // We simulate a safe reading anyways to allow
- // users to take the chance... (Asger)
- return true;
- } // format < 1.0
- else {
- WriteAlert(_("ERROR!"),
- _("Old LyX file format found. "
- "Use LyX 0.10.x to read this!"));
- return false;
- }
-
-#else
string tmp_format = lex.GetString();
//lyxerr << "LyX Format: `" << tmp_format << "'" << endl;
// if present remove ".," from string.
_("Reading of document is not complete"),
_("Maybe the document is truncated"));
return true;
-#endif
} else { // "\\lyxformat" not found
WriteAlert(_("ERROR!"), _("Not a LyX file!"));
}
// write out a comment in the top of the file
ofs << '#' << LYX_DOCVERSION
- << " created this file. For more info see http://www.lyx.org/\n";
-#if 0
- ofs.setf(ios::showpoint|ios::fixed);
- ofs.precision(2);
-#ifndef HAVE_LOCALE
- char dummy_format[512];
- sprintf(dummy_format, "%.2f", LYX_FORMAT);
- ofs << "\\lyxformat " << dummy_format << "\n";
-#else
- ofs << "\\lyxformat " << setw(4) << LYX_FORMAT << "\n";
-#endif
-#else
- ofs << "\\lyxformat " << LYX_FORMAT << "\n";
-#endif
+ << " created this file. For more info see http://www.lyx.org/\n"
+ << "\\lyxformat " << LYX_FORMAT << "\n";
+
// now write out the buffer paramters.
params.writeFile(ofs);
string filename;
/// Format number of buffer
-#if 0
- float format;
-#else
int file_format;
-#endif
/** A list of views using this buffer.
Why not keep a list of the BufferViews that use this buffer?
LFUN_DELETE_SKIP,
LFUN_MENUNEWTMPLT, // Asger 1997-02-02
LFUN_MENURELOAD, // Asger 1997-02-02
-#if 0
- LFUN_FAX, // Asger 1997-02-10
-#endif
LFUN_RECONFIGURE, // 170 // Asger 1997-02-14
LFUN_CITATION_INSERT, // AAS 97-02-23
LFUN_INSERT_BIBTEX, // AAS 97-02-23
#include <config.h>
+#include <algorithm>
+
#include FORMS_H_LOCATION
#ifdef __GNUG__
+2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * ButtonController.C: include algorithm
+
2001-02-14 Angus Leeming <a.leeming@ic.ac.uk>
* ButtonController.[Ch] (addTriggerChange, eraseTriggerChange):
+2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * insettext.C:
+ * insetinfo.C: remove cruft
+
2001-02-14 Juergen Vigna <jug@sad.it>
* insettext.C (SetUpdateStatus): added a BufferView * parameter.
int baseline, float & x, bool) const
{
Painter & pain = bv->painter();
-#if 0
- LyXFont font(f);
-
- // Info-insets are never LaTeX, so just correct the font
- font.setLatex(LyXFont::OFF).setColor(LColor::note);
-#endif
+
// Draw as "Note" in a yellow box
x += 1;
pain.fillRectangle(int(x), baseline - ascent(bv, labelfont),
for (string::size_type i = 0; i < arg.length(); ++i) {
if (greek_kb_flag) {
if (!math_insert_greek(bv, arg[i])) {
-#if 0
- bv->owner()->getIntl()->getTrans()->TranslateAndInsert(arg[i], TEXT(bv));
-#else
bv->owner()->getIntl()->getTrans().TranslateAndInsert(arg[i], TEXT(bv));
-#endif
} else if (!the_locking_inset) {
(void)moveRight(bv, false);
}
} else {
-#if 0
- bv->owner()->getIntl()->getTrans()->TranslateAndInsert(arg[i], TEXT(bv));
-#else
bv->owner()->getIntl()->getTrans().TranslateAndInsert(arg[i], TEXT(bv));
-#endif
}
}
}
#include "debug.h"
#include "lyxrc.h"
-#if 0
-#include "trans_mgr.h"
-#endif
-
#include "support/lstrings.h"
#include "language.h"
#include "frontends/Dialogs.h" // redrawGUI
Intl::Intl()
: prim_lang(lyxrc.primary_kbmap),
sec_lang(lyxrc.secondary_kbmap)
-#if 0
- , trans(new TransManager)
-#endif
{
keymapon = lyxrc.use_kbmap;
chsetcode = 0;
Intl::~Intl()
{
r_.disconnect();
-#if 0
- delete trans;
-#endif
}
{
if (lyxerr.debugging(Debug::KBMAP))
lyxerr << "Primary: `" << lang << "'" << endl;
-#if 0
- return trans->SetPrimary(lang);
-#else
return trans.SetPrimary(lang);
-#endif
}
{
if (lyxerr.debugging(Debug::KBMAP))
lyxerr << "Secondary: `" << lang << "'" << endl;
-#if 0
- return trans->SetSecondary(lang);
-#else
return trans.SetSecondary(lang);
-#endif
}
} else {
fl_set_button(fd_form_keymap->KeyOffBtn, 1);
fl_hide_object(fd_form_keymap->KeymapErr);
-#if 0
- trans->DisableKeymap();
-#else
trans.DisableKeymap();
-#endif
}
}
curkeymap = i;
-#if 0
- if (p.empty() || trans->SetPrimary(p)) {
-#else
if (p.empty() || trans.SetPrimary(p)) {
-#endif
// error selecting keymap
fl_show_object(fd_form_keymap->KeymapErr);
update();
} else {
// no error
-#if 0
- trans->EnablePrimary();
-#else
trans.EnablePrimary();
-#endif
keymapon = true;
primarykeymap = true;
fl_hide_object(fd_form_keymap->KeymapErr);
p = Language2->getline();
curkeymap = i;
-#if 0
- if (p.empty() || trans->SetSecondary(p)) {
- // error selecting keymap
- fl_show_object(fd_form_keymap->KeymapErr);
- update();
- } else {
- // no error
- trans->EnableSecondary();
- keymapon = true;
- primarykeymap = false;
- fl_hide_object(fd_form_keymap->KeymapErr);
- }
-#else
if (p.empty() || trans.SetSecondary(p)) {
// error selecting keymap
fl_show_object(fd_form_keymap->KeymapErr);
primarykeymap = false;
fl_hide_object(fd_form_keymap->KeymapErr);
}
-#endif
}
if (!Language->select_text(prim_lang)) {
Language->select(n + 1);
fl_set_input(fd_form_keymap->OtherKeymap, prim_lang.c_str());
- }
- else
-#if 0
- trans->SetPrimary(prim_lang);
-#else
+ } else
trans.SetPrimary(prim_lang);
-#endif
+
if (!Language2->select_text(sec_lang)) {
Language2->select(n + 1);
fl_set_input(fd_form_keymap->OtherKeymap2, sec_lang.c_str());
- }
- else
-#if 0
- trans->SetSecondary(sec_lang);
-#else
+ } else
trans.SetSecondary(sec_lang);
-#endif
KeyMapOn(keymapon);
if (keymapon)
Keymap(23); // turn primary on
-#if 0
- trans->setCharset(lyxrc.font_norm);
-#else
trans.setCharset(lyxrc.font_norm);
-#endif
}
break;
case 27: // set new font norm
char const * p = fl_get_input(fd_form_keymap->Charset);
-#if 0
- if (trans->setCharset(p))
-#else
if (trans.setCharset(p))
-#endif
fl_show_object(fd_form_keymap->ChsetErr);
else
fl_hide_object(fd_form_keymap->ChsetErr);
#include <sigc++/signal_system.h>
#include "LString.h"
#include "form1.h"
-
-#if 1
#include "trans_mgr.h"
-#endif
class LyXText;
class Combox;
-#if 0
-class TransManager;
-#endif
-
#ifdef SIGC_CXX_NAMESPACES
using SigC::Object;
using SigC::Connection;
/// initialize key mapper
void InitKeyMapper(bool on);
-#if 0
- /// Get the Translation Manager
- TransManager * getTrans();
-#else
// Get the Translation Manager
TransManager & getTrans();
-#endif
///
bool keymapon;
///
string & prim_lang;
///
string & sec_lang;
-#if 0
- ///
- TransManager * trans;
-#else
///
TransManager trans;
-#endif
/// Redraw connection.
Connection r_;
};
-#if 0
-inline
-TransManager * Intl::getTrans()
-{
- return trans;
-}
-#else
inline
TransManager & Intl::getTrans()
{
return trans;
}
-#endif
#endif
extern void DeleteSimpleCutBuffer(); /* for the cleanup when exiting */
-#if 0
-extern bool send_fax(string const & fname, string const & sendcmd);
-#endif
-
extern void MenuSendto();
// this should be static, but I need it in buffer.C
}
-#if 0
-void MenuFax(Buffer * buffer)
-{
- // Generate postscript file
- if (!Exporter::Export(buffer, "ps", true))
- return;
-
- // Send fax
- string const ps = OnlyFilename(ChangeExtension(buffer->fileName(),
- ".ps"));
-
- string path = OnlyPath (buffer->fileName());
- if (lyxrc.use_tempdir || (IsDirWriteable(path) < 1)) {
- path = buffer->tmppath;
- }
- Path p(path);
- if (!lyxrc.fax_program.empty()) {
- string help2 = subst(lyxrc.fax_program, "$$FName", ps);
- help2 += " &";
- Systemcalls one(Systemcalls::System, help2);
- } else
- send_fax(ps, lyxrc.fax_command);
-}
-#endif
-
-
void QuitLyX()
{
lyxerr.debug() << "Running QuitLyX." << endl;
}
-#if 0
-/// Sets size after GUI name
-LyXFont & LyXFont::setGUISize(string const & siz)
-{
- // CHECK this might be wrong.
- /// ??????
- // this is how it was how it was done in the lyx repository...
- // but this does not make sense.
- setColor(lcolor.getFromGUIName(siz));
- return *this;
-}
-#endif
-
-
// Returns size in latex format
string const LyXFont::latexSize() const
{
/// Sets color after LyX text format
LyXFont & setLyXColor(string const &);
-#if 0
- /// Sets size after GUI name
- LyXFont & setGUISize(string const &);
-#endif
-
/// Returns size of font in LaTeX text notation
string const latexSize() const;
extern kb_keymap * toplevel_keymap;
-#if 0
-extern void MenuFax(Buffer *);
-#endif
extern void show_symbols_form(LyXFunc *);
extern LyXAction lyxaction;
disable = !Exporter::IsExportable(buf, "dvi")
|| lyxrc.print_command == "none";
break;
-#if 0
- case LFUN_FAX:
- disable = !Exporter::IsExportable(buf, "ps")
- || lyxrc.fax_command == "none";
- break;
-#else
case LFUN_EXPORT:
disable = argument == "fax" &&
!Exporter::IsExportable(buf, argument);
break;
-#endif
case LFUN_UNDO:
disable = buf->undostack.empty();
break;
owner->getDialogs()->showPrint();
break;
-#if 0
- case LFUN_FAX:
- MenuFax(owner->buffer());
- break;
-#endif
-
case LFUN_EXPORT:
Exporter::Export(owner->buffer(), argument, false);
break;
{ "\\document_path", LyXRC::RC_DOCUMENTPATH },
{ "\\escape_chars", LyXRC::RC_ESC_CHARS },
{ "\\exit_confirmation", LyXRC::RC_EXIT_CONFIRMATION },
-#if 0
- { "\\fax_command", LyXRC::RC_FAX_COMMAND },
- { "\\fax_program", LyXRC::RC_FAXPROGRAM },
-#endif
{ "\\font_encoding", LyXRC::RC_FONT_ENCODING },
{ "\\format", LyXRC::RC_FORMAT },
{ "\\input", LyXRC::RC_INPUT },
{ "\\num_lastfiles", LyXRC::RC_NUMLASTFILES },
{ "\\override_x_deadkeys", LyXRC::RC_OVERRIDE_X_DEADKEYS },
{ "\\personal_dictionary", LyXRC::RC_PERS_DICT },
-#if 0
- { "\\phone_book", LyXRC::RC_PHONEBOOK },
-#endif
{ "\\print_adapt_output", LyXRC::RC_PRINT_ADAPTOUTPUT },
{ "\\print_collcopies_flag", LyXRC::RC_PRINTCOLLCOPIESFLAG },
{ "\\print_command", LyXRC::RC_PRINT_COMMAND },
cursor_follows_scrollbar = lexrc.GetBool();
break;
-#if 0
- case RC_FAX_COMMAND:
- if (lexrc.next())
- fax_command = lexrc.GetString();
- break;
- case RC_FAXPROGRAM:
- if (lexrc.next())
- fax_program = lexrc.GetString();
- break;
- case RC_PHONEBOOK:
- if (lexrc.next()) {
- string s = lexrc.GetString();
- if (AbsolutePath(s))
- phone_book = s;
- else
- phone_book = user_lyxdir + s;
- }
- break;
-#endif
case RC_ASCIIROFF_COMMAND:
if (lexrc.next())
ascii_roff_command = lexrc.GetString();
os << "\\backupdir_path \"" << backupdir_path << "\"\n";
}
-#if 0
- os << "\n#\n"
- << "# FAX SECTION #######################################\n"
- << "#\n\n";
-
- case RC_FAX_COMMAND:
- if (fax_command != system_lyxrc.fax_command) {
- os << "\\fax_command \"" << fax_command << "\"\n";
- }
- case RC_PHONEBOOK:
- if (phone_book != system_lyxrc.phone_book) {
- os << "\\phone_book \"" << phone_book << "\"\n";
- }
- case RC_FAXPROGRAM:
- if (fax_program != system_lyxrc.fax_program) {
- os << "\\fax_program \"" << fax_program << "\"\n";
- }
-#endif
os << "\n#\n"
<< "# ASCII EXPORT SECTION ##############################\n"
<< "#\n\n";
str = N_("Use this to set the correct mapping file for your keyboard. You'll need this if you for instance want to type German documents on an American keyboard.");
break;
-#if 0
- case RC_FAX_COMMAND:
- break;
-
- case RC_PHONEBOOK:
- break;
-
- case RC_FAXPROGRAM:
- break;
-#endif
case RC_ASCIIROFF_COMMAND:
str = N_("Use to define an external program to render tables in the ASCII output. E.g. \"groff -t -Tlatin1 $$FName\" where $$FName is the input file. If \"none\" is specified, an internal routine is used.");
break;
RC_KBMAP,
RC_KBMAP_PRIMARY,
RC_KBMAP_SECONDARY,
-#if 0
- RC_FAX_COMMAND,
- RC_PHONEBOOK,
- RC_FAXPROGRAM,
-#endif
RC_ASCIIROFF_COMMAND,
RC_ASCII_LINELEN,
RC_NUMLASTFILES,
string font_norm_menu;
///
unsigned int autosave;
-#if 0
- ///
- string fax_command;
- ///
- string phone_book;
- ///
- string fax_program;
-#endif
///
string ascii_roff_command;
///
2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
+ * math_parser.C:
+ * math_panel.C:
+ * formula.C: remove cruft
+
* array.C (begin): new method
(end): ditto
using std::vector;
using std::max;
-#if 0
-using std::strncmp;
-using std::strcmp;
-using std::abs;
-using std::isdigit;
-using std::isalpha;
-#endif
-
extern string mathed_label;
extern char const * latex_special_chars;
#include "math_defs.h"
#include "math_parser.h"
-#if 0
-#define TOTAL_KEYWORDS 269
-#define MIN_WORD_LENGTH 2
-#define MAX_WORD_LENGTH 18
-#define MIN_HASH_VALUE 8
-#define MAX_HASH_VALUE 490
-#else
int const TOTAL_KEYWORDS = 269;
int const MIN_WORD_LENGTH = 2;
int const MAX_WORD_LENGTH = 18;
int const MIN_HASH_VALUE = 8;
int const MAX_HASH_VALUE = 490;
-#endif
/* maximum key range = 483, duplicates = 40 */
#include "matrix.xpm"
#include "equation.xpm"
-#if 0
-using std::free;
-#endif
static LyXFunc * lyxfunc = 0;
using std::istream;
using std::endl;
-#if 0
-using std::isalpha;
-using std::isdigit;
-using std::isspace;
-#endif
extern MathMatrixInset * create_multiline(short int type, int cols);
LyXText::text_status st = bv->text->status;
do {
bv->text->status = st;
-#if 0
- text->GetVisibleRow(owner.owner(), y + y_offset,
- x_offset, row, y + text->first);
-#else
text->GetVisibleRow(bv, y + y_offset,
x_offset, row, y + text->first);
-#endif
} while (bv->text->status == LyXText::CHANGED_IN_DRAW);
bv->text->status = st;
y += row->height();
LyXText::text_status st = bv->text->status;
do {
bv->text->status = st;
-#if 0
- text->GetVisibleRow(owner.owner(), y, x_offset, row,
- y + text->first);
-#else
text->GetVisibleRow(bv, y, x_offset, row,
y + text->first);
-#endif
} while (bv->text->status == LyXText::CHANGED_IN_DRAW);
bv->text->status = st;
}
{
if (!cursor_visible) {
Cursor_Shape shape = BAR_SHAPE;
-#if 0
- if (text->real_current_font.language() !=
- owner.owner()->buffer()->params.language
- || text->real_current_font.isVisibleRightToLeft()
- != owner.owner()->buffer()->params.language->RightToLeft())
-#else
if (text->real_current_font.language() !=
bv->buffer()->params.language
|| text->real_current_font.isVisibleRightToLeft()
!= bv->buffer()->params.language->RightToLeft())
-#endif
shape = (text->real_current_font.isVisibleRightToLeft())
? REVERSED_L_SHAPE : L_SHAPE;
ShowManualCursor(text, text->cursor.x(), text->cursor.y(),
+2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * fmt.C:
+ * filetools.C:
+ * atoi.C: remove cruft
+
2001-02-06 albert chin <china@thewrittenword.com>
* snprintf.h:
#include "lyxlib.h"
-#if 0
-using std::atoi;
-#endif
int lyx::atoi(string const & nstr)
{
using std::ifstream;
using std::vector;
-#if 0
-using std::getenv;
-using std::isalpha;
-using std::isalnum;
-using std::popen;
-#endif
-
extern string system_lyxdir;
extern string build_lyxdir;
extern string user_lyxdir;
#include "LString.h"
-#if 0
-using std::vsnprintf;
-#endif
-
/* This output manipulator gives the option to use Old style format
specifications in ostreams. Note that this is done at the expense
of typesafety, so if possible this manipulator should be avoided.