if (!tsecoptions.empty()) setSecOptions(tsecoptions);
if (!tcontents.empty()) setContents(tcontents);
if (!tsecoptions.empty()) setSecOptions(tsecoptions);
if (!tcontents.empty()) setContents(tcontents);
- if (lyxerr.debugging(Debug::PARSER))
- lyxerr << "Command <" << cmd
- << "> == <" << to_utf8(getCommand())
- << "> == <" << getCmdName()
- << '|' << getContents()
- << '|' << getOptions()
- << '|' << getSecOptions() << '>' << endl;
+ LYXERR(Debug::PARSER) << "Command <" << cmd
+ << "> == <" << to_utf8(getCommand())
+ << "> == <" << getCmdName()
+ << '|' << getContents()
+ << '|' << getOptions()
+ << '|' << getSecOptions() << '>' << endl;
string::size_type kb_keymap::bind(string const & seq, FuncRequest const & func)
{
string::size_type kb_keymap::bind(string const & seq, FuncRequest const & func)
{
- if (lyxerr.debugging(Debug::KBMAP)) {
- lyxerr << "BIND: Sequence `"
- << seq << "' Action `"
- << func.action << '\'' << endl;
- }
+ LYXERR(Debug::KBMAP) << "BIND: Sequence `"
+ << seq << "' Action `"
+ << func.action << '\'' << endl;
- if (lyxerr.debugging(Debug::INIT)) {
- lyxerr << "LyX tmp dir: `" << package().temp_dir() << '\'' << endl;
- }
+ LYXERR(Debug::INIT) << "LyX tmp dir: `" << package().temp_dir() << '\'' << endl;
LYXERR(Debug::INIT) << "Reading session information '.lyx/session'..." << endl;
pimpl_->session_.reset(new Session(lyxrc.num_lastfiles));
LYXERR(Debug::INIT) << "Reading session information '.lyx/session'..." << endl;
pimpl_->session_.reset(new Session(lyxrc.num_lastfiles));
func = FuncRequest(LFUN_COMMAND_PREFIX);
}
func = FuncRequest(LFUN_COMMAND_PREFIX);
}
- if (lyxerr.debugging(Debug::KEY)) {
- lyxerr << BOOST_CURRENT_FUNCTION
- << " Key [action="
- << func.action << "]["
- << to_utf8(keyseq->print(false)) << ']'
- << endl;
- }
+ LYXERR(Debug::KEY) << BOOST_CURRENT_FUNCTION
+ << " Key [action="
+ << func.action << "]["
+ << to_utf8(keyseq->print(false)) << ']'
+ << endl;
// already here we know if it any point in going further
// why not return already here if action == -1 and
// already here we know if it any point in going further
// why not return already here if action == -1 and
bool tmp = refreshInside;
if (!in || !in->wide()) {
refreshInside = true;
bool tmp = refreshInside;
if (!in || !in->wide()) {
refreshInside = true;
- if (lyxerr.debugging(Debug::PAINTING)) {
- lyxerr << endl << "Paint inset fully" << endl;
- }
+ LYXERR(Debug::PAINTING) << endl << "Paint inset fully" << endl;
}
if (refreshInside)
inset->drawSelection(pi, int(x_), yo_);
}
if (refreshInside)
inset->drawSelection(pi, int(x_), yo_);
// Re-enable screen drawing for future use of the painter.
pi.pain.setDrawingEnabled(true);
// Re-enable screen drawing for future use of the painter.
pi.pain.setDrawingEnabled(true);
- if (lyxerr.debugging(Debug::PAINTING)) {
- LYXERR(Debug::PAINTING) << "." << endl;
- }
+ LYXERR(Debug::PAINTING) << "." << endl;
if (!ptr_cmp(cur.text(), this))
return;
if (!ptr_cmp(cur.text(), this))
return;
- if (lyxerr.debugging(Debug::DEBUG)) {
- LYXERR(Debug::DEBUG)
- << BOOST_CURRENT_FUNCTION
- << "draw selection at " << x
- << endl;
- }
+ LYXERR(Debug::DEBUG)
+ << BOOST_CURRENT_FUNCTION
+ << "draw selection at " << x
+ << endl;
DocIterator beg = cur.selectionBegin();
DocIterator end = cur.selectionEnd();
DocIterator beg = cur.selectionBegin();
DocIterator end = cur.selectionEnd();