Re: Warnings for Pavel

2008-02-22 Thread Angus Leeming
Pavel Sanda wrote: Pavel Sanda wrote: I purposely left RC_VISUAL_CURSOR out of this function, because something is fishy about it. AFAICT, this function doesn't do anything... JMarc took a look and I think he also wasn't sure about it... So before just fixing the warnings, we ought to try and

InsetCommandParams Rewrite, Continued

2008-02-22 Thread rgheck
After a hiatus, I'm returning to the rewrite of InsetCommandParams, the purpose of all of this being to make things more flexible, with the ultimate goal being biblatex support and a kind of InsetCommandFlex that will allow user-definable such things. The next step, really, is to fix up CiteE

Re: possible recursion in labelstring for counters

2008-02-22 Thread Bernhard Roider
Andre Poenitz schrieb: On Sat, Feb 23, 2008 at 12:06:18AM +0100, Bernhard Roider wrote: hello, yesterday i played around with layout files and created the following counter definition (ok, i didn't read the docs carefully enough) Counter Name MajorVersion Labe

Re: possible recursion in labelstring for counters

2008-02-22 Thread Andre Poenitz
On Sat, Feb 23, 2008 at 12:06:18AM +0100, Bernhard Roider wrote: > hello, > > yesterday i played around with layout files and created the following > counter definition (ok, i didn't read the docs carefully enough) > > Counter > Name MajorVersion > LabelString

possible recursion in labelstring for counters

2008-02-22 Thread Bernhard Roider
hello, yesterday i played around with layout files and created the following counter definition (ok, i didn't read the docs carefully enough) Counter Name MajorVersion LabelString "\theMajorVersion.0" End Using this counter causes lyx to crash because

Re: TextClassPtr

2008-02-22 Thread rgheck
Andre Poenitz wrote: On Fri, Feb 22, 2008 at 04:46:44PM -0500, rgheck wrote: Andre Poenitz wrote: Does anybody remember why we use a shared pointer and not an index into the global list of textclasses? Yes, that was my doing. So this is a recent change? A few months

Re: TextClassPtr

2008-02-22 Thread Andre Poenitz
On Fri, Feb 22, 2008 at 04:46:44PM -0500, rgheck wrote: > Andre Poenitz wrote: >> Does anybody remember why we use a shared pointer and not an index into >> the global list of textclasses? > > Yes, that was my doing. So this is a recent change? > It used to be a list of textclasses, when these we

Re: TextClassPtr

2008-02-22 Thread rgheck
Andre Poenitz wrote: Does anybody remember why we use a shared pointer and not an index into the global list of textclasses? Yes, that was my doing. It used to be a list of textclasses, when these were static objects. But now the textclasses that are in use are dynamic objects: They get cha

TextClassPtr

2008-02-22 Thread Andre Poenitz
Does anybody remember why we use a shared pointer and not an index into the global list of textclasses? Andre'

Re: [PATCH (branch)] Adjust the loading of local layout files.

2008-02-22 Thread Pavel Sanda
> Dear all, > > This patch solves two problems: > > 1. LFUN_TEXTCLASS_APPLY and LFUN_TEXTCLASS_LOAD try to load a > textclass without passing document path. (see loadTextclass(class) in > line 1765 and 1796 of LyXFunc.cpp). This leads to erraneous behaviors > when the preamble of a buffer with lo

[PATCH (branch)] Adjust the loading of local layout files.

2008-02-22 Thread Bo Peng
Dear all, This patch solves two problems: 1. LFUN_TEXTCLASS_APPLY and LFUN_TEXTCLASS_LOAD try to load a textclass without passing document path. (see loadTextclass(class) in line 1765 and 1796 of LyXFunc.cpp). This leads to erraneous behaviors when the preamble of a buffer with local layout file

A question about lyx and boost

2008-02-22 Thread Rafał Mużyło
Those few files regarding building of lyx, have some vague warnings about using system boost instead of included one. What is the real current situation in this matter - Lyx version 1.5.3, Boost version 1.34.1.

Re: Fullscreen mode (new patch)

2008-02-22 Thread Bennett Helm
On Feb 22, 2008, at 1:33 PM, Pavel Sanda wrote: I have encountered a couple other problems that seem directly related to fullscreen mode: 1. When coming out of fullscreen mode, the normal window returns, but it does not automatically take focus as it should. Bennett, is that focus thing o

Re: LyX and Qt4.4 - bug 4568 (was Re: Cannot compile trunk)

2008-02-22 Thread Pavel Sanda
> >> i guess there will be more transitional problems wrt 4.4 (rc1 here). > >> GuiApplication.cpp: In member function 'void > >> lyx::frontend::GuiApplication::commitData(QSessionManager&)': > >> GuiApplication.cpp:552: error: invalid use of undefined type 'struct > >> QSessionManager' > > > > #i

Re: Fullscreen mode (new patch)

2008-02-22 Thread Pavel Sanda
> > I have encountered a couple other problems that seem directly related to > > fullscreen mode: > > > > 1. When coming out of fullscreen mode, the normal window returns, but it > > does not automatically take focus as it should. Bennett, is that focus thing ok in the current trunk? > > pavel

Re: [Cvslog] r23115 - /lyx-devel/trunk/src/insets/Inset.h

2008-02-22 Thread Andre Poenitz
On Thu, Feb 21, 2008 at 11:38:46PM -, [EMAIL PROTECTED] wrote: > Author: sts > Date: Fri Feb 22 00:38:46 2008 > New Revision: 23115 > > URL: http://www.lyx.org/trac/changeset/23115 > Log: > * typo > > Modified: > lyx-devel/trunk/src/insets/Inset.h > > Modified: lyx-devel/trunk/src/insets

Re: Inserting environments in math-macros doesn't work as expected

2008-02-22 Thread Andre Poenitz
On Fri, Feb 22, 2008 at 12:45:22PM +0100, Stefan Schimanski wrote: > I do not really understand the parser very well. So here is a simple minded > patch. Andre, as you are mentioned as author, does this make sense? With > FLAG_ITEM the parser will stop at the closing \end, but ignoring the > {si

Re: Warnings for Pavel

2008-02-22 Thread Pavel Sanda
> Pavel Sanda wrote: >>> I purposely left RC_VISUAL_CURSOR out of this function, because something >>> is fishy about it. AFAICT, this function doesn't do anything... JMarc >>> took a look and I think he also wasn't sure about it... So before just >>> fixing the warnings, we ought to try and fig

Re: Another assert

2008-02-22 Thread Andre Poenitz
On Fri, Feb 22, 2008 at 09:44:47AM +0200, Martin Vermeer wrote: > The X system should have a routine for doing that... Yes, but that's not available on Windows. Using QColor::setNamedColor() might be an option, void QColor::setNamedColor ( const QString & name ) Sets the RGB valu

NewInLyX16

2008-02-22 Thread Jean-Pierre Chrétien
Hello, I've just parsed the wiki page about the subject. I am very much impressed, you have done a great work! Thanks a lot again for making (La)TeX so easy to control. -- Jean-Pierre

Re: r23133 - /lyx-devel/trunk/src/LyXFunc.cpp

2008-02-22 Thread Abdelrazak Younes
Stefan Schimanski wrote: See http://www.lyx.org/trac/changeset/23133. The two switch cases are the same. I just merged them. OK, understood :-) Abdel.

Re: LyX and Qt4.4 - bug 4568 (was Re: Cannot compile trunk)

2008-02-22 Thread Pavel Sanda
> Pavel Sanda wrote: Or 4.4's ;-} >>> It seems we have a bug there: >>> >>> http://bugzilla.lyx.org/show_bug.cgi?id=4568 >>> >>> Could somebody have a look? >> i guess there will be more transitional problems wrt 4.4 (rc1 here). >> GuiApplication.cpp: In member function 'void >> lyx::frontend

Re: r23133 - /lyx-devel/trunk/src/LyXFunc.cpp

2008-02-22 Thread rgheck
Abdelrazak Younes wrote: Stefan Schimanski wrote: See http://www.lyx.org/trac/changeset/23133. The two switch cases are the same. I just merged them. I don't follow you. You did more than that: -if (lyx_view_) -return lyx_view_->getStatus(cmd); -enable = false; -

Re: r23133 - /lyx-devel/trunk/src/LyXFunc.cpp

2008-02-22 Thread Abdelrazak Younes
Stefan Schimanski wrote: See http://www.lyx.org/trac/changeset/23133. The two switch cases are the same. I just merged them. I don't follow you. You did more than that: -if (lyx_view_) -return lyx_view_->getStatus(cmd); -enable = false; -break; -

Re: r23133 - /lyx-devel/trunk/src/LyXFunc.cpp

2008-02-22 Thread Stefan Schimanski
See http://www.lyx.org/trac/changeset/23133. The two switch cases are the same. I just merged them. Stefan Am 22.02.2008 um 17:50 schrieb Abdelrazak Younes: [EMAIL PROTECTED] wrote: Author: sts Date: Fri Feb 22 16:38:26 2008 New Revision: 23133 URL: http://www.lyx.org/trac/changeset/23133 L

Re: r23133 - /lyx-devel/trunk/src/LyXFunc.cpp

2008-02-22 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: Author: sts Date: Fri Feb 22 16:38:26 2008 New Revision: 23133 URL: http://www.lyx.org/trac/changeset/23133 Log: * cosmetic Well, this is not cosmetics. Why did you you do that? Modified: lyx-devel/trunk/src/LyXFunc.cpp Modified: lyx-devel/trunk/src/LyXFunc.cpp

Re: Warnings for Pavel

2008-02-22 Thread Dov Feldstern
Pavel Sanda wrote: I purposely left RC_VISUAL_CURSOR out of this function, because something is fishy about it. AFAICT, this function doesn't do anything... JMarc took a look and I think he also wasn't sure about it... So before just fixing the warnings, we ought to try and figure out what this

Re: Inserting environments in math-macros doesn't work as expected

2008-02-22 Thread Stefan Schimanski
I do not really understand the parser very well. So here is a simple minded patch. Andre, as you are mentioned as author, does this make sense? With FLAG_ITEM the parser will stop at the closing \end, but ignoring the {sideways}. All the other cases of the \begin handler use the FLAG_END.

Re: Inserting environments in math-macros doesn't work as expected

2008-02-22 Thread Dominik Böhm
Number 4573

Re: Inserting environments in math-macros doesn't work as expected

2008-02-22 Thread Stefan Schimanski
Which bug number? Stefan Am 22.02.2008 um 12:34 schrieb Dominik Böhm: On Fri, Feb 22, 2008 at 12:18 PM, Stefan Schimanski <[EMAIL PROTECTED]> wrote: Looks like a bug in the parser. Thanks for the quick answer, I just filed a bug report.

Re: Inserting environments in math-macros doesn't work as expected

2008-02-22 Thread Dominik Böhm
On Fri, Feb 22, 2008 at 12:18 PM, Stefan Schimanski <[EMAIL PROTECTED]> wrote: > Looks like a bug in the parser. Thanks for the quick answer, I just filed a bug report.

Re: r23126 - /lyx-devel/trunk/src/Text3.cpp

2008-02-22 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: Author: younes Date: Fri Feb 22 12:07:41 2008 New Revision: 23126 URL: http://www.lyx.org/trac/changeset/23126 Log: Fix this bug: 1. scroll a bit so that the cursor is not visible anymore 2. hit the keyboard arrow keys to move the cursor or type something The problem wa

Re: Inserting environments in math-macros doesn't work as expected

2008-02-22 Thread Stefan Schimanski
Looks like a bug in the parser. Stefan Am 22.02.2008 um 12:12 schrieb Dominik Böhm: Hi, I am not sure if that's a bug or just not supported. That's the reason why I send this message to the lyx-devel list. When you create a new math-macro and insert some "\begin{sideways}#1\end{sideways}", s

Inserting environments in math-macros doesn't work as expected

2008-02-22 Thread Dominik Böhm
Hi, I am not sure if that's a bug or just not supported. That's the reason why I send this message to the lyx-devel list. When you create a new math-macro and insert some "\begin{sideways}#1\end{sideways}", save the file and reload it, LyX isn't able to load the macro properly. Instead of "\begin

Re: r23068 - /lyx-devel/trunk/src/BufferView.cpp

2008-02-22 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Pavel Sanda wrote: i'm sorry Abdel, but your polishment brought the old bugs back :( 1. srollbar is not correct after resize (as Enrico noted, its not a serious bug, no problem if remain this way) Are you sure? For me it works correctly... weird. maybe you just n

Re: Compilation error in completion code

2008-02-22 Thread Jean-Marc Lasgouttes
Stefan Schimanski <[EMAIL PROTECTED]> writes: >> I used 'QStyleOptionViewItem' and it seems to compile. > > Also seems to work. So I changed it. Thanks. JMarc

Re: Compilation error in completion code

2008-02-22 Thread Stefan Schimanski
Am 22.02.2008 um 11:10 schrieb Jean-Marc Lasgouttes: Abdelrazak Younes <[EMAIL PROTECTED]> writes: I only have 'QStyleOptionViewItemV2' on 4.2. Stefan, are you sure that we really need it? Does it compile with it? I used 'QStyleOptionViewItem' and it seems to compile. Also seems to wor

Re: Compilation error in completion code

2008-02-22 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> I only have 'QStyleOptionViewItemV2' on 4.2. >> >> Stefan, are you sure that we really need it? > > Does it compile with it? I used 'QStyleOptionViewItem' and it seems to compile. JMarc

Re: Compilation error in completion code

2008-02-22 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: I get: ../../../../lyx-devel/src/frontends/qt4/GuiCompleter.cpp: In member function 'virtual void lyx::frontend::PixmapItemDelegate::paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const': ../../../../lyx-devel/src/frontends/qt4/GuiCompleter.cpp:53

Compilation error in completion code

2008-02-22 Thread Jean-Marc Lasgouttes
I get: ../../../../lyx-devel/src/frontends/qt4/GuiCompleter.cpp: In member function 'virtual void lyx::frontend::PixmapItemDelegate::paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const': ../../../../lyx-devel/src/frontends/qt4/GuiCompleter.cpp:53: error: 'QStyleOptionViewIt

Re: Another assert

2008-02-22 Thread Jean-Marc Lasgouttes
Martin Vermeer <[EMAIL PROTECTED]> writes: > Sounds like a plan. And it seems that these SVG colours actually include > the X colours. Looks good indeed. JMarc

Re: Another assert

2008-02-22 Thread Martin Vermeer
On Fri, 22 Feb 2008 10:04:33 +0100 Abdelrazak Younes <[EMAIL PROTECTED]> wrote: > Jean-Marc Lasgouttes wrote: > > Martin Vermeer <[EMAIL PROTECTED]> writes: > > > >>> or we > >>> need ColorSet::ColorSet() to include the hex values directly. Or else we > >>> need to hardcode the hex values wher

Re: CMake: tex2lyx compilation fail due to InsetLayout.cpp -> FIXED

2008-02-22 Thread Abdelrazak Younes
OK, I fixed this.

CMake: tex2lyx compilation fail due to InsetLayout.cpp

2008-02-22 Thread Abdelrazak Younes
-- Build started: Project: tex2lyx, Configuration: Release Win32 -- Linking... TextClass.obj : error LNK2019: unresolved external symbol "public: __thiscall lyx::InsetLayout::InsetLayout(void)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function "public: class lyx::InsetLayout

Re: Another assert

2008-02-22 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Martin Vermeer <[EMAIL PROTECTED]> writes: or we need ColorSet::ColorSet() to include the hex values directly. Or else we need to hardcode the hex values where they're wanted. Rather not. The ColorSet list should be able to contain official X11 names at that posit

Re: Crash Related to Completion?

2008-02-22 Thread Stefan Schimanski
Thanks! Should have enabled stdlib-debug to catch this one. Stefan Am 22.02.2008 um 04:21 schrieb rgheck: Open the User's Guide. Click fast (FAST!) several times on the first note. #0 0x003c41430ec5 in raise (sig=) at ../ nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x003c414329

Re: Another assert

2008-02-22 Thread Jean-Marc Lasgouttes
Martin Vermeer <[EMAIL PROTECTED]> writes: >> or we >> need ColorSet::ColorSet() to include the hex values directly. Or else we >> need to hardcode the hex values where they're wanted. > > Rather not. The ColorSet list should be able to contain official X11 names > at that position. I am not

Removing page numbers from first page

2008-02-22 Thread Tommaso Cucinotta
Hello, I had just this issue of having to remove page numbers from a document, but simply setting the page style to "empty" from the document->settings dialog was not sufficient: still I had the page number in the very first page. I generated the LaTeX, and verified that there was a \pagestyle

Removing page numbers from first page

2008-02-22 Thread Tommaso Cucinotta
Hello, I had just this issue of having to remove page numbers from a document, but simply setting the page style to "empty" from the document->settings dialog was not sufficient: still I had the page number in the very first page. I generated the LaTeX, and verified that there was a \pagestyle

Re: Words set in Buffer

2008-02-22 Thread Stefan Schimanski
Am 22.02.2008 um 01:52 schrieb Pavel Sanda: Well, the set is a sorted container by definition, see here: you are right. still i feel there is something strange in set[i] operation :) The completion popup accesses this containter in a random access way. Though probably it would be enough