Commit Graph

18099 Commits

Author SHA1 Message Date
Enrico Forestieri
9b3aadbe22 Don't hardcode Color_math, such that decorations and other math
elements can be drawn in the right color on screen.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34326 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-28 13:19:09 +00:00
Enrico Forestieri
beb3fa70e8 Also account for colors in math macros.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34325 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-28 11:38:01 +00:00
Vincent van Ravesteijn
6c4de0377c Fix bug #6614: Preview Other Format Button Greys Out After Preview.
getStatus() returns false for LFUN_BUFFER_VIEW when a previewing process is running. So, if this process has finished we should free the menu item. 

P.S. on windows, the item does not get disabled anyway.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34324 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-28 04:51:05 +00:00
Vincent van Ravesteijn
25a41486d6 Fix bug #6619 : Display (Version Control) in Window Title.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34323 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-28 04:27:10 +00:00
Enrico Forestieri
d9bcbe5de6 Index: src/mathed/InsetMathEnsureMath.cpp
===================================================================
--- src/mathed/InsetMathEnsureMath.cpp	(revisione 34304)
+++ src/mathed/InsetMathEnsureMath.cpp	(copia locale)
@@ -13,8 +13,9 @@
 
 #include "InsetMathEnsureMath.h"
 
-#include "MathStream.h"
 #include "MathData.h"
+#include "MathStream.h"
+#include "MathSupport.h"
 
 #include <ostream>
 
@@ -34,7 +35,8 @@ Inset * InsetMathEnsureMath::clone() con
 
 void InsetMathEnsureMath::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-	FontSetChanger dummy(mi.base, "mathnormal");
+	bool really_change_font = isTextFont(from_ascii(mi.base.fontname));
+	FontSetChanger dummy(mi.base, "mathnormal", really_change_font);
 	cell(0).metrics(mi, dim);
 	metricsMarkers(dim);
 }
@@ -42,7 +44,8 @@ void InsetMathEnsureMath::metrics(Metric
 
 void InsetMathEnsureMath::draw(PainterInfo & pi, int x, int y) const
 {
-	FontSetChanger dummy(pi.base, "mathnormal");
+	bool really_change_font = isTextFont(from_ascii(pi.base.fontname));
+	FontSetChanger dummy(pi.base, "mathnormal", really_change_font);
 	cell(0).draw(pi, x, y);
 	drawMarkers(pi, x, y);
 }


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34321 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-28 01:58:11 +00:00
Enrico Forestieri
6c33aa2e5b Index: src/mathed/InsetMathHull.cpp
===================================================================
--- src/mathed/InsetMathHull.cpp	(revisione 34304)
+++ src/mathed/InsetMathHull.cpp	(copia locale)
@@ -328,6 +328,23 @@ docstring InsetMathHull::standardFont()
 }
 
 
+docstring InsetMathHull::standardColor() const
+{
+	docstring color;
+	switch (type_) {
+	case hullRegexp:
+		color = from_ascii("foreground");
+		break;
+	case hullNone:
+		color = from_ascii("foreground");
+		break;
+	default:
+		color = from_ascii("math");
+	}
+	return color;
+}
+
+
 bool InsetMathHull::previewState(BufferView * bv) const
 {
 	if (!editing(bv) && RenderPreview::status() == LyXRC::PREVIEW_ON) {
@@ -417,8 +434,11 @@ void InsetMathHull::draw(PainterInfo & p
 		return;
 	}
 
+	bool const really_change_color = pi.base.font.color() == Color_none;
+	ColorChanger dummy0(pi.base.font, standardColor(), really_change_color);
 	FontSetChanger dummy1(pi.base, standardFont());
 	StyleChanger dummy2(pi.base, display() ? LM_ST_DISPLAY : LM_ST_TEXT);
+
 	InsetMathGrid::draw(pi, x + 1, y);
 
 	if (numberedType()) {
Index: src/mathed/MathSupport.cpp
===================================================================
--- src/mathed/MathSupport.cpp	(revisione 34311)
+++ src/mathed/MathSupport.cpp	(copia locale)
@@ -653,6 +653,13 @@ bool isMathFont(docstring const & name)
 }
 
 
+bool isTextFont(docstring const & name)
+{
+	fontinfo * f = lookupFont(name);
+	return f && f->color_ == Color_foreground;
+}
+
+
 FontInfo getFont(docstring const & name)
 {
 	FontInfo font;
Index: src/mathed/MathSupport.h
===================================================================
--- src/mathed/MathSupport.h	(revisione 34311)
+++ src/mathed/MathSupport.h	(copia locale)
@@ -51,6 +51,8 @@ bool isFontName(docstring const & name);
 
 bool isMathFont(docstring const & name);
 
+bool isTextFont(docstring const & name);
+
 // converts single cell to string
 docstring asString(MathData const & ar);
 // converts single inset to string
Index: src/mathed/InsetMathHull.h
===================================================================
--- src/mathed/InsetMathHull.h	(revisione 34304)
+++ src/mathed/InsetMathHull.h	(copia locale)
@@ -197,6 +197,8 @@ private:
 	void changeCols(col_type);
 	///
 	docstring standardFont() const;
+	///
+	docstring standardColor() const;
 	/// consistency check
 	void check() const;
 	/// can this change its number of rows?
Index: src/MetricsInfo.cpp
===================================================================
--- src/MetricsInfo.cpp	(revisione 34312)
+++ src/MetricsInfo.cpp	(copia locale)
@@ -235,11 +235,15 @@ FontSetChanger::FontSetChanger(MetricsBa
 		save_ = mb;
 		FontSize oldsize = save_.font.size();
 		ColorCode oldcolor = save_.font.color();
+		docstring const oldname = from_ascii(save_.fontname);
 		mb.fontname = name;
 		mb.font = sane_font;
 		augmentFont(mb.font, from_ascii(name));
 		mb.font.setSize(oldsize);
-		mb.font.setColor(oldcolor);
+		if (string(name) != "lyxtex"
+		    && ((isTextFont(oldname) && oldcolor != Color_foreground)
+			|| (isMathFont(oldname) && oldcolor != Color_math)))
+			mb.font.setColor(oldcolor);
 	}
 }
 
@@ -252,11 +256,15 @@ FontSetChanger::FontSetChanger(MetricsBa
 		save_ = mb;
 		FontSize oldsize = save_.font.size();
 		ColorCode oldcolor = save_.font.color();
+		docstring const oldname = from_ascii(save_.fontname);
 		mb.fontname = to_utf8(name);
 		mb.font = sane_font;
 		augmentFont(mb.font, name);
 		mb.font.setSize(oldsize);
-		mb.font.setColor(oldcolor);
+		if (name != "lyxtex"
+		    && ((isTextFont(oldname) && oldcolor != Color_foreground)
+			|| (isMathFont(oldname) && oldcolor != Color_math)))
+			mb.font.setColor(oldcolor);
 	}
 }
 
@@ -294,17 +302,21 @@ WidthChanger::~WidthChanger()
 //
 /////////////////////////////////////////////////////////////////////////
 
-ColorChanger::ColorChanger(FontInfo & font, string const & color)
-	: Changer<FontInfo, string>(font)
+ColorChanger::ColorChanger(FontInfo & font, docstring const & color,
+			   bool really_change_color)
+	: Changer<FontInfo, ColorCode>(font), change_(really_change_color)
 {
-	save_ = lcolor.getFromLyXName(color);
-	font.setColor(lcolor.getFromLyXName(color));
+	if (change_) {
+		save_ = font.color();
+		font.setColor(lcolor.getFromLyXName(to_utf8(color)));
+	}
 }
 
 
 ColorChanger::~ColorChanger()
 {
-	orig_.setColor(lcolor.getFromLyXName(save_));
+	if (change_)
+		orig_.setColor(save_);
 }
 
 
Index: src/MetricsInfo.h
===================================================================
--- src/MetricsInfo.h	(revisione 34312)
+++ src/MetricsInfo.h	(copia locale)
@@ -222,12 +222,16 @@ public:
 
 
 // temporarily change the used color
-class ColorChanger : public Changer<FontInfo, std::string> {
+class ColorChanger : public Changer<FontInfo, ColorCode> {
 public:
 	///
-	ColorChanger(FontInfo & font, std::string const & color);
+	ColorChanger(FontInfo & font, docstring const & color,
+		     bool really_change_color = true);
 	///
 	~ColorChanger();
+private:
+	///
+	bool change_;
 };
 
 } // namespace lyx


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34320 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-28 01:40:11 +00:00
Enrico Forestieri
c88eaf877e Changing only the shape does not always work. For example,
\mathbb{\underbar{a}} is not correctly rendered on screen.
We really have to change the font set, but not always.
This cannot be done using an "if" statement, as when
the FontSetChanger scope ends, everything is restored,
defeating our change. Thus, this has to be done in the
FontSetChanger class itself. This is easily accomplished
by introducing a boolean with a default value of true
for really changing a font set.
This will also be useful in other cases that I am discovering.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34312 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-27 21:31:28 +00:00
Enrico Forestieri
dbb5ac93ea The check for Color_math would fail if the font color is changed
in mathed, so implement a strategy which is immune to color changes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34311 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-27 19:23:31 +00:00
Enrico Forestieri
26ebe0865c In mathed, also preserve the color when changing a font set,
otherwise symbols and font changes such as \mathit{a} are not
drawn in the selected color on screen.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34310 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-27 18:46:42 +00:00
Enrico Forestieri
17af3ea8f4 Change only the shape and not the whole font, otherwise constructs
such as \mathbf{\hat{a}} would not be correctly rendered on screen.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34297 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-26 20:20:49 +00:00
Vincent van Ravesteijn
87623ff478 Fix bug #6141: Scrolling error with insets at top of file.
Fix the regression introduced in r28397 while fixing bug #5573.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34296 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-26 14:57:27 +00:00
Vincent van Ravesteijn
d2cc4a5b92 Tweak for X11.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34294 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-26 10:26:06 +00:00
Vincent van Ravesteijn
f8d64b4799 Fix bug #3871: Shortcut to switch from TOC to text pane.
M-o now switches to the TOC pane, and Esc always returns from any DockView to the main window.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34293 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-26 10:03:09 +00:00
Vincent van Ravesteijn
f65f5be6d7 Fix bug #6451 (last part): Crash when interacting with buffer-dependent dialog with no buffer open.
- First, the comment for isBufferDependent is corrected. It seems that the actual use of this function differs from the comment. As the comment said, I decided to close all dialogs that were buffer dependent, but this didn't seem to be correct for the view source pan, the outliner, and find-and-replace.

- Second, the dialogs that are buffer dependent are now closed, but dockviews are not, except for the spellchecker pane, which really depends on an open buffer, but I can't test that. 

So, please test whether the spellchecker dockviewed window behaves as one expects.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34291 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-26 02:12:10 +00:00
Vincent van Ravesteijn
28b167bfff Make sure the Table of Contents is always on top in the model combobox of the TocWidget.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34290 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-26 01:36:24 +00:00
Vincent van Ravesteijn
c6c0559be0 Fix bug #6672 (part 2): Add tooltips to the outliner.
At some point we should implement that the tooltips are only shown when they are not completely shown in the outliner. However, this requires extending the QTreeView class. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34287 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-26 00:43:08 +00:00
Vincent van Ravesteijn
acff67f259 Fix bug #6672 (part 1): Notes, Footnotes, and Marginals are unnecessarily truncated.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34286 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-25 22:18:46 +00:00
Peter Kümmel
7f09a8b58b cmake: remove recursive call, even if it breaks merged builds with GCC, fix linker error on win32
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34283 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-23 13:20:28 +00:00
Peter Kümmel
7aecb18f56 cmake: remove recursive call, even if it breaks merged builds with GCC, fix linker error on win32
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34280 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-23 12:58:17 +00:00
Peter Kümmel
be9fdbcad4 cmake: remove recursive call, even if it breaks merged builds with GCC
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34279 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-23 12:52:39 +00:00
Vincent van Ravesteijn
0f2e47c4ad Fix bug #6664: InsetInfo: lyxrc information broken.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34278 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-23 11:46:24 +00:00
Peter Kümmel
38628558a6 cmake: more merged build fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34274 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-23 09:10:35 +00:00
Peter Kümmel
5b75a45bc1 don't forget to pack numpunct_lyx_char_type.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34269 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 22:04:21 +00:00
Vincent van Ravesteijn
6ec5776991 Fix bug #5543: InsetInfo gives wrong result for textclasses.
InsetInfo only returned whether a layout file was available for a class, not whether the LaTeX document class was available.

This might be caused by the maybe misleading name of the "LayoutFileList::haveClass()" function.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34268 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 19:36:03 +00:00
Peter Kümmel
ed05787e41 add new files to Makefile.am.
numpunct_lyx_char_type.h is msvc specific.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34265 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 16:01:23 +00:00
Peter Kümmel
5b916eb7c5 don't pollute the global namespace, move bind and shared_ptr into the lyx scope.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34264 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 15:56:20 +00:00
Peter Kümmel
4654a8bf96 build with GCC
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34263 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 14:40:57 +00:00
Peter Kümmel
e948caf637 build with msvc10. Seems there is a bug in their STL code:
// std::numpunct has a hardcoded dllimport in definition, but we wanna it with 32 bit 
// so we can't import it and must define it but then the compiler complains.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34262 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 14:28:52 +00:00
Peter Kümmel
aaf7bfd231 change was committed by accident.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34261 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 12:02:43 +00:00
Peter Kümmel
21514ad512 Seems boost also includes all std headers. Not including boost therefore produces errors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34260 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 11:45:34 +00:00
Peter Kümmel
c9b9748cee msvcUsing "using namespace std" with msvc10 makes also std::tr1::shared_ptr visible and generates conflicts with boost::shared_ptr.
Solution: don't use boost::shared_ptr for msvc10 (could also be extended  to several GCC versions)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34259 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 11:37:32 +00:00
Peter Kümmel
87c6a4679a at least compile with msvc10.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34258 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 11:19:49 +00:00
Peter Kümmel
61b2bd5e7f Using "using namespace std" with msvc10 makes also std::tr1::bind visible and generates conflicts with boost::bind.
Solution: don't use boost::bind for msvc10 (could also be extended  to several GCC versions)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34257 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 11:16:58 +00:00
Richard Heck
d01dec6dfe UI for XHTML options. I removed the xml line from OutputUi.ui
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34251 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 15:20:31 +00:00
Richard Heck
5678dc566f New XHTML math options. Format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34250 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 15:18:25 +00:00
Vincent van Ravesteijn
b14ef59db8 Remove boundary parameter from BufferView::coordOffset(). The first DocIterator parameter already contains this information.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34248 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 13:12:40 +00:00
Vincent van Ravesteijn
63d24ca3c4 Remove boundary parameter from BufferView::getPos(). The first DocIterator parameter already contains this information.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34247 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 13:03:04 +00:00
Uwe Stöhr
3c957e1bb1 Exporter.cpp: revert r34230 because this interferes with Enrico's new LyXVC feature to setup what LyX should do on export
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34246 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:54:08 +00:00
Pavel Sanda
e1cabbf70e Last bits.
Trunk should be funcFileName consistent now.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34245 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:36 +00:00
Pavel Sanda
e5ce07206c BranchList:
*FilenameSuffix -> *FileNameSuffix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34244 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:35 +00:00
Pavel Sanda
88635c7e77 Buffer::getAutosaveFilename -> Buffer::getAutosaveFileName
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34243 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:33 +00:00
Pavel Sanda
bb59d0fd0a support:
isLyXFilename -> isLyXFilename
isValidLaTeXFilename -> isValidLaTeXFileName
isSGMLFilename -> isSGMLFileName

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34242 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:31 +00:00
Pavel Sanda
61fa96cbae Dialog::bufferFilepath -> Dialog::bufferFilePath
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34241 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:30 +00:00
Pavel Sanda
72a6c77a51 support:
frontends:
onlyFilename -> onlyFileName

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34240 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:28 +00:00
Pavel Sanda
266ad9501d DocFileName::unzippedFilename -> DocFileName::unzippedFileName
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34239 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:26 +00:00
Pavel Sanda
9d43d32240 DocFileName.outputFilename -> DocFileName.outputFileName
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34238 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:25 +00:00
Pavel Sanda
41b81f09e1 Forgot these two.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34237 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:23 +00:00
Pavel Sanda
b6a764eef3 FileName.mangledFilename -> FileName.mangledFileName
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34236 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:22 +00:00
Pavel Sanda
e5fc2cbdc6 Filename.relFilename -> Filename.relFileName
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34235 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:20 +00:00
Pavel Sanda
62ca7f3ae5 Proper camel case for FileName.absFilename
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34234 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:09 +00:00
Uwe Stöhr
893a4d082b Exporter.cpp: make overwriting file on export the default, as discussed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34230 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-20 23:00:05 +00:00
Enrico Forestieri
3f87d9056d Fix bug #2844: Need option to overwrite without dialog popup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34229 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-20 16:49:49 +00:00
Enrico Forestieri
cb6208f8e5 Coding style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34228 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-20 11:09:51 +00:00
Jürgen Spitzmüller
85dae058eb * GuiThesaurus: do not show irritating messages if nothing is to be looked up.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34227 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-20 09:59:16 +00:00
Jürgen Spitzmüller
272e7097f2 * Thesaurus.cpp: fix thesaurus (bug #6656)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34226 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-20 07:30:58 +00:00
Enrico Forestieri
b121ac47c6 Introduce a switch for overwriting files during a batch export.
Using "-f all", or simply "-f", all files are silently overwritten.
Using "-f main", only the main file is overwritten.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34224 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-19 23:53:23 +00:00
Vincent van Ravesteijn
1df3f70ed1 Fix more of bug #5446: Enable to copy the contents of an InsetInfo through the context menu.
This introduces a new LFUN LFUN_INSET_COPY_AS, which copies a certain Inset to the clipboard. For InsetInfo this is the text that is visible, but this could also replace LFUN_LABEL_COPY_AS_REF, by copying the INSET to the clipboard as a reference, and also a Math inset to copy to the clipboard as latex (including $'s or \[..\]).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34223 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-19 21:36:32 +00:00
Enrico Forestieri
87caf487e1 Extend Alert::prompt such that 4 buttons are possible. Thus, when
exporting, the extra dialog appearing when choosing to overwrite a
file is not necessary anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34222 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-19 20:44:57 +00:00
Enrico Forestieri
30792f994e QThreadPool was introduced in Qt 4.4
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34221 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-19 19:55:15 +00:00
Vincent van Ravesteijn
0b92e538d9 Use the AtPoint mechanism for the LFUN_INSET_EDIT and LFUN_LABEL_COPY_AS_REF.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34220 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-19 17:11:43 +00:00
Vincent van Ravesteijn
12a6a0774e Fix bug #6661: Outliner filter bar should not be case sensitive.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34219 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-19 16:05:40 +00:00
Pavel Sanda
baf3cc15e1 Add Skim to hints.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34217 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 23:52:08 +00:00
Vincent van Ravesteijn
ec862d10da Better(?) fix for bug #6659: InsetInfo context menu disabled unless cursor immediately in front.
(see r34215 for the previous fix.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34216 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 23:47:11 +00:00
Vincent van Ravesteijn
ce4d5f22f8 Fix bug #6659: InsetInfo context menu disabled unless cursor immediately in front.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34215 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 23:35:59 +00:00
Richard Heck
2903300277 Add some debugging code so we can try to get information about an
assertion here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34213 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 23:05:12 +00:00
Richard Heck
6d7788fde0 Stupid, stupid, stupid.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34210 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 22:21:21 +00:00
Richard Heck
cde948177b Remove unneeded code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34207 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 21:19:08 +00:00
Richard Heck
287612cfba A final bit of cleanup with the TextClass reading functions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34206 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 21:06:38 +00:00
Richard Heck
6d7cffbd71 A little more cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34205 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 20:42:04 +00:00
Richard Heck
d0b52ce0aa Minor fixes to TextClass::read().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34204 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 20:37:07 +00:00
Enrico Forestieri
d356d7d4f7 Add forward search hint for evince.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34202 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 12:44:58 +00:00
Edwin Leuven
5485f39539 new buffer on double click in empty area of the tab bar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34201 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 11:30:20 +00:00
Enrico Forestieri
8dffd93995 In the meantime that we decide whether to introduce menu choices for
both dvi and pdf, let's allow switching forward search from one format
to the other through a timestamp check, such that the most recent
generated format will be used.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34200 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 10:54:43 +00:00
Jürgen Spitzmüller
50b4ac16b9 * GuiPrefs.cpp: forward search syntax hint for okular.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34199 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 08:34:51 +00:00
Richard Heck
f9b81a16c0 Do not throw exceptions here either. See r22806.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34193 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-17 22:49:38 +00:00
Richard Heck
dcc7497bde Fix crash reported by Bennett. We could try to catch these exceptions
elsewhere, but I actually don't know why I put them here in the first
place.

The tex2lyx stuff allows us not to wrap the calls to
frontend::Alert::warning in "#ifdef TEX2LYX" blocks.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34192 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-17 22:36:31 +00:00
Richard Heck
aeac2f8cb9 Disable InsetInfo for VC when VC is not active.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34190 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-17 13:34:13 +00:00
Richard Heck
9d7e5b6b41 Messed this up, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34189 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-17 13:29:00 +00:00
Richard Heck
7747410bb0 Forgot this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34188 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-17 13:24:49 +00:00
Richard Heck
64840ec5ef Simplify VC output from InsetInfo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34187 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-17 13:24:32 +00:00
Richard Heck
49945d3fac LyX version info for InsetInfo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34186 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-17 13:04:41 +00:00
Pavel Sanda
e45427de38 Fix bug #6649 - fix texrow structure generated by InsetIndex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34181 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 23:47:39 +00:00
Pavel Sanda
39fe4f46f9 Hint from synctex man pages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34175 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 22:57:37 +00:00
Pavel Sanda
00f6d69aac Change signal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34173 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 21:27:37 +00:00
Pavel Sanda
70d9833e39 Attempt on #6655.
getRowFromIdPos returns row shifted by 1 (we count internally from 0).

The function still doesn't work properly looking at the
the comments of the original writer (last *nonempty* row),
but its hopefully better now.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34172 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 18:52:40 +00:00
Pavel Sanda
b6846bdace Better debug ouput
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34171 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 18:30:52 +00:00
Pavel Sanda
f47878c5c1 Narrower Pref dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34170 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 18:30:50 +00:00
Pavel Sanda
2b7c121614 Simplify texrow
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34169 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 17:22:25 +00:00
Pavel Sanda
ef0c8796a3 xpdf support for forward view via synctex. This is quite powerful tool.
To sum it up forward search support:
Okular and Skim can be supported directly if somebody comes with correct syntax.
Evince can be solved in the same way as xpdf, again syntax has to be reported.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34167 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 16:36:41 +00:00
Pavel Sanda
6ae70da778 Dont wait for forward search call
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34166 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 16:22:08 +00:00
Vincent van Ravesteijn
e8fcc92d8f Refactor GuiApplication::getStatus().
* I didn't like the fact that the heart of the dispatch/status machinery is in the default clause of a long switch statement. Now, it is clear that we enter the app in getStatus, which then asks the GuiApplication itself, the GuiView, the current BufferView, the current Buffer, the document BufferView, the document Buffer,

* Shouldn't we let BufferView call the Buffer getStatus() functions ?,

* This also makes sure that if a command is not handled, it is turned off. Before r34164 this was caused by the default clause in BufferView,

* Now it is prevented that if the document BufferView is the same as the current BufferView, that the getStatus() functions are called twice,

* A warning can be outputted if the LFUN is not handled.

PS I want to do the same for the dispatch function.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34165 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 16:04:35 +00:00
Vincent van Ravesteijn
eb9fb94214 Do not set the enabling of the status flag if the getStatus() function does not give a decisive answer. As a consequence of removing this call from BufferView, we should disable the flag in the end of GuiApplication::dispatch() if it is not handled by any getStatus() function.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34164 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 15:55:37 +00:00
Vincent van Ravesteijn
1c22b41b6e Handle LFUN_IN_MATHMACROTEMPLATE for non mathmacro insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34163 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 15:42:33 +00:00
Vincent van Ravesteijn
6708d2da7e * GuiView.cpp: Simplify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34162 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 12:49:27 +00:00
Vincent van Ravesteijn
5a77a063c1 Remove the unclear FuncStatus::operator|=. Without knowing the internals of FuncStatus it is unsafe to use this operator, so let's not use it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34161 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 12:15:27 +00:00
Vincent van Ravesteijn
3417702346 * FuncStatus: unify naming of functions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34160 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 10:51:20 +00:00
Pavel Sanda
499908ebab Add status message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34150 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 08:18:28 +00:00
Pavel Sanda
98f106f2ca Guify forward search.
No viewer set by default, which keeps context menu clean for uninterested users.
Settings are hinted at combobox.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34149 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 08:09:07 +00:00
Enrico Forestieri
ba57ee8a24 Modify the forward-search lfun such that no argument is needed.
If a dvi file exists in the temp dir, the command specified by the
\forward_search_dvi rc setting is used to initiate the search.
Otherwise, if a pdf file exists, the forward search is performed by
using the command specified by the \forward_search_pdf rc setting.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34148 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 23:32:52 +00:00
Vincent van Ravesteijn
84689d1cda Cursor::bv_ can be private too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34147 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 18:30:15 +00:00
Vincent van Ravesteijn
108a67ed43 Make Cursor::anchor_ private and make an access function Cursor::realAnchor() to stress the fact that this is thus not the normalAnchor().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34146 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 18:16:07 +00:00
Vincent van Ravesteijn
d8db0e8515 Rename anchor() to normalAnchor() as the anchor() function was already returning a normalized anchor in stead of the real one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34145 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 17:49:15 +00:00
Vincent van Ravesteijn
8156884090 Make Cursor::disp_ private as it should be.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34144 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 17:34:34 +00:00
Vincent van Ravesteijn
ebb830ba9b Do not change the object that is returned by result(), this will have no effect because result() returned a copy. From now, it just returns a const & to prevent this from happening again.
see r31969.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34143 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 17:14:59 +00:00
Jean-Marc Lasgouttes
fe0a508b83 correctly escape the forward search command
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34142 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 14:45:09 +00:00
Pavel Sanda
837ef10312 We need the whole line in settings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34141 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 14:35:02 +00:00
Pavel Sanda
52756f5dc7 Join PrefDateUi and PrefPlaintextUi into PrefOutputUi
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34140 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 14:25:25 +00:00
Pavel Sanda
5862c1e414 Fix #94 - LYX forward DVI search
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34139 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 13:19:48 +00:00
Jean-Marc Lasgouttes
14a96ce182 revert r34090 for now; I will come back later to this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34133 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-14 14:25:11 +00:00
Stephan Witt
fb43bbbf6c tiger support on mac snow leopard, include Qt4 frameworks, smart build script with parameters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34132 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-14 13:22:00 +00:00
Vincent van Ravesteijn
f4467be057 Fix bug #6651: No error messages when module dependencies are not fulfilled.
We need to throw the ExceptionMessage's.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34130 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-14 11:54:12 +00:00
Edwin Leuven
99366a9a44 correctly valign content of multirow cells
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34129 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-13 18:56:28 +00:00
Jean-Marc Lasgouttes
f4f4f9c19a remove cruft
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34127 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-13 12:33:57 +00:00
Richard Heck
bce28182d5 Revert r34122, which doesn't help.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34124 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-12 16:00:10 +00:00
Richard Heck
a37feaf896 Swap the argument_ and action_ variables, so that r34105 really does do
nothing but rename things. This is an attempt at #6646.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34123 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-12 15:40:51 +00:00
Pavel Sanda
c1221f9890 This was buggy for sure, who knows about this one ;)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34122 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-12 15:32:04 +00:00
Richard Heck
fbad45864c Add a comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34121 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-12 15:16:43 +00:00
Pavel Sanda
0ff254954a Shot in the dark for #6646 crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34120 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-12 15:16:03 +00:00
Richard Heck
51fce57c78 A compromise suggested by JMarc: We mark the buffer dirty if, but only
if, the filename was not automatically generated. So, if the user chose
the filename, we assume she wants to keep the file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34119 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-12 15:15:35 +00:00
Vincent van Ravesteijn
8c5ad7af21 Revert part of r33908.
We need a way to test for the pointer to be valid before using it in updateHoveredInset(). For now, just set it to zero, so that this critical won't find its way into alpha-2.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34117 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-12 08:10:54 +00:00
Enrico Forestieri
e4350fc206 Don't overwrite identical files on export even when FORCE is in effect.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34116 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-10 16:52:31 +00:00
Enrico Forestieri
8de36d389b Fix bug #2762: LyX -> LaTeX export autonomously overwrites existing EPS files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34115 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-10 16:18:54 +00:00
Enrico Forestieri
5aa69caae5 Accept dirty buffer if the document has not been saved to disk (part of bug 6645).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34114 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-10 14:30:59 +00:00
Richard Heck
19947bfc83 Revert what no one likes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34113 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-10 12:11:45 +00:00
Enrico Forestieri
833e358ffa Fix bug #2434: Child .tex document overwritten on latex export
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34109 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-10 01:24:37 +00:00
Richard Heck
b81526bd8d Fix bug #6645.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34108 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-09 19:38:28 +00:00
Richard Heck
84be7c89b3 Mark new files dirty. Otherwise, you can't save them, and maybe you want
to do that right away.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34107 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-09 19:03:46 +00:00
Richard Heck
b79d8e5e2d Make members of FuncRequest private, per the FIXME there. Again, this is
basically a massive renaming, with no real changes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34106 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-09 19:00:42 +00:00
Richard Heck
4c7a5d0024 This is just a giant renaming of member variables in FuncRequest,
preparatory to making them private.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34105 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-09 18:15:17 +00:00
Richard Heck
f187093d1e Do not try to set LyX-side display colors from within the Buffer reading
routines. 

See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg159389.html.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34103 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-09 12:35:37 +00:00
Jürgen Spitzmüller
ff63d50ca8 * src/LaTeXFeatures.cpp: simplify greektext definition. Patch by G. Milde (bug #6458)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34100 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-09 09:27:54 +00:00
Stephan Witt
4c859c9835 add support for private aspell framework for mac os
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34098 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 22:56:12 +00:00
Stephan Witt
4b0a8f2dfb reduce compiler warnings (deprecated method, uninitialized vars)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34097 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 22:41:49 +00:00
Enrico Forestieri
c0e12a0b8f Use cheaper conversion method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34095 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 20:22:20 +00:00
Jean-Marc Lasgouttes
e8529a2ecf Get rid of all-insets-toggle and explain how to replace it with inset-forall.
Change inset-forall so that screen is not repainted at each iteration, since this lead to very slow opeartion on large files. This is not a problem for current uses, but can potentially lead to crashes.

See ticket #6641 for more thoughts and possible solutions.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34092 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 12:39:41 +00:00
Jean-Marc Lasgouttes
5edd353600 show the display name for emergency file too
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34091 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 10:26:35 +00:00
Jean-Marc Lasgouttes
9b4576b50b Use the subdir-object option of automake so that the .o files are put in the
same directory as their source. The other visible gain is that the size of
src/Makefile is divided by 3 with automake >= 1.9.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34090 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 10:25:50 +00:00
Jean-Marc Lasgouttes
a51d67dedd fix (again) monolithic build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34089 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 10:23:54 +00:00
Vincent van Ravesteijn
33f28623e5 * BufferView.cpp: typo again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34087 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 09:17:00 +00:00
Uwe Stöhr
c553682702 Buffer.cpp: show the correct color that is set for the document
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34086 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 02:13:05 +00:00
Uwe Stöhr
45bffba885 BufferView.cpp: typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34085 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 01:23:04 +00:00
Uwe Stöhr
bf83cc6359 ColorUi.ui: squash compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34084 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 01:09:30 +00:00
Uwe Stöhr
84a2af2edb fileformat change: support to specify the background color of shaded boxes
- new buffer parameter \boxbgcolor

(I'm still working on the remaining issue #6626 as this affect not only this feature.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34083 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 00:14:08 +00:00
Richard Heck
f9fa189e02 Grant a long-standing wish of Lars's: LyX now functions even if we have
no text classes for some reason (e.g., a corrupt textclass.lst). We
still give the user a chance to reconfigure (Bo's idea).

I wonder if we still really need to "restart LyX to make use of any
updated document class specifications". What would happen if we just
reloaded?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34081 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 17:02:44 +00:00
Richard Heck
907df4570d Fix bug #6611. This also gives us a more robust fall-back in case we are
completely unable to load a text class. At least not very long ago, if
we were unable even to load article, we would crash. Not now. We will
ALWAYS have at least a really basic class (nothing but Standard!)
available.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34080 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 16:15:26 +00:00
Richard Heck
3504b0a807 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34077 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 13:25:44 +00:00
Richard Heck
dfe751c701 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34076 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 13:21:10 +00:00
Richard Heck
b3ae6c671f One final bit of cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34075 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 12:50:47 +00:00
Richard Heck
37889247df A little more lv cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34074 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 12:47:19 +00:00
Richard Heck
6031b5cb31 A bit more cleanup: Again, we do not need lv, and the last check is
useless.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34073 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 12:43:41 +00:00
Richard Heck
23eade51a8 The lv variable was used back in LyXView.cpp, where we didn't have such
easy access to the current view. So we don't need it. Moreover, it seems
to me that using lv in some of these places could cause bugs. What if
the current_view_ has changed? Then we could be updating completion on
the wrong thing?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34072 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 12:41:19 +00:00
Richard Heck
1d1b204eb2 Fix bug #6519. This is some of the "instability" that resulted from
Abdel's moving the LyXFunc code to GuiApplication. This restores some of
the structure of that code: The early returns bypassed the code that
marked the buffer dirty.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34071 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 12:35:32 +00:00
Enrico Forestieri
8043c693e2 Make better use of the available space.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34066 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-06 11:58:14 +00:00
Richard Heck
c282d14f66 Update comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34064 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-06 00:48:58 +00:00
Richard Heck
b490ed29b9 Fix output of title and clean up a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34061 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 22:02:43 +00:00
Uwe Stöhr
9b26c150ee ColorUi.ui: forgot to update button label in last commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34060 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 21:51:02 +00:00
Richard Heck
6766386f47 Output generator meta-tag for XHTML, per Jack Desert's suggestion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34059 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 21:48:27 +00:00
Uwe Stöhr
9b072f6e64 don't use any longer the page background color white as being the default (equal no color) because document classes might have other colors as default
(The default color is still internally white because we have to set a color but the color is only used when the user explicitly specified it.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34058 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 20:31:10 +00:00
Peter Kümmel
4b99d089cb fix typo, tabs for indentation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34057 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 14:51:41 +00:00
Peter Kümmel
c98745c081 try to make a gui message when lyx crashes, don't crash again on windows (use exit()).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34056 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 14:44:41 +00:00
Abdelrazak Younes
a7734edf8e TabWorkArea::workArea(): add a FIXME
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34055 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 14:24:56 +00:00
Abdelrazak Younes
05ca681dcf Fix instant preview for split views showing the same document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34054 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 14:24:27 +00:00
Peter Kümmel
318774fe1a don't allow closing a buffer when it is used by a thread
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34053 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 13:04:52 +00:00
Abdelrazak Younes
002c33387a Remove GuiView parent from DialogView based dialogs. This is because these dialogs always use the currently focused GuiView, not the one passed at construction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34051 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 09:26:14 +00:00
Jürgen Spitzmüller
adc4dc2a84 * ColorUi.ui: more compact labels.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34049 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-03 15:13:10 +00:00
Uwe Stöhr
ed3a831261 ColorUi.ui: some tweaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34048 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-03 00:29:45 +00:00
Uwe Stöhr
2001b6548c BufferParams.cpp: whitespace and comment fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34047 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 23:59:42 +00:00
Enrico Forestieri
b7545bb87a Clean up left over
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34046 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 23:52:31 +00:00
Uwe Stöhr
5ed3236425 GuiDocument.cpp: follow Qt's StyleSheet guideline and use the the explicit "background-color" string
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34045 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 23:50:39 +00:00
Uwe Stöhr
f8735c3678 Bufferparams.cpp: add a fixme as reminder
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34044 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 23:49:22 +00:00
Uwe Stöhr
4e2cd30657 fileformat change: support to specify a document-wide font color
- new buffer parameter \fontcolor
- the default color is internally black because we have to set a color
- the font color is only used when the user explicitly specified a color

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34042 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 23:39:36 +00:00
Uwe Stöhr
729c0655aa introduce a new color module to GuiDocument as suggested:
- move the background color settings from PageLayoutUi.ui to ColorUi.ui

- move the greyed-out font color from FontUi.ui to ColorUi.ui

- some sorting and whitespace unification

- the group boxes will get the next days each a further entry
 (one for the document-wide text color and one for the shaded box background)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34040 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 22:11:50 +00:00
Uwe Stöhr
a6ce03f20a FontUi.ui: remove senseless tooltip I accidentally introduced in r34015
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34039 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 21:06:21 +00:00
Vincent van Ravesteijn
333c17f879 Fix bug #6633: Equations that end in \limits or \nolimits are corrupted on load.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34025 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 15:22:50 +00:00
Uwe Stöhr
a8825b88c2 FontUi.ui: remove HTML and use plain text
(it turned out that Qt's designer uses by default HTML when there are linebreaks)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34015 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 13:04:40 +00:00
Vincent van Ravesteijn
69fd1193e5 Fix bug #6219: Latex problem with multi-line citep arguments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34011 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-01 23:31:05 +00:00
Vincent van Ravesteijn
ba97587b16 Fix bug #6631: tex2lyx doesn't handle \textquotedbl{} nicely.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34010 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-01 22:49:52 +00:00
Jean-Marc Lasgouttes
b8fb599130 Fix ticket #6634: LyX should pass the "noae" option to Sweave.sty
We pass it as a global document option.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34009 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-01 21:34:22 +00:00
Pavel Sanda
543571fd03 Move command line arg --batch to -batch.
Things are still bit inconsistent due to the existence of
additional -- switches, but the correct fix is not so easy.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34005 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-01 15:18:38 +00:00
Uwe Stöhr
879ed8e2ed fileformat change:
- support for Turkmen

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34000 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-01 00:40:19 +00:00
Richard Heck
1eb8311aff HTML for binomials.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33995 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 21:33:33 +00:00
Pavel Sanda
348991cd71 We need remove autosave on reload now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33994 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 21:29:32 +00:00
Richard Heck
c7cfcf9e2f Make sure to call the parent's validate method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33992 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 21:24:16 +00:00
Richard Heck
6a702a2f99 HTML for substack. Sort of. There's an odd problem here, that is
actually a general LyX bug, but I'll report that to the list.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33991 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 21:17:30 +00:00
Richard Heck
bf76659e67 Revert r33989. We do need this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33990 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 21:02:10 +00:00
Richard Heck
bab268352b HTML for stackrel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33989 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:54:27 +00:00
Richard Heck
85425d8e6c HTML for InsetMathSplit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33988 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:50:29 +00:00
Richard Heck
ae69c7c63c HTML for special characters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33987 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:49:21 +00:00
Richard Heck
da26079578 HTML for math spaces.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33986 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:47:55 +00:00
Richard Heck
f3711d8a65 HTML for math sizes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33985 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:37:23 +00:00
Richard Heck
ea44f30077 Ignore phantoms for now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33984 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:31:15 +00:00
Richard Heck
32ee4c13cf HTML for roots.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33983 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:31:04 +00:00
Richard Heck
36e2a2c95f HTML for underset.
Neither underset nor overset will work reliably, I'm afraid, but such is
the price of using HTML rather than MathML.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33982 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:12:52 +00:00
Pavel Sanda
594849bb4e Next header
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33981 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:06:16 +00:00
Pavel Sanda
8fcccc7b6b Next header
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33980 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:06:00 +00:00
Richard Heck
77bd365b39 HTML for overset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33979 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:04:39 +00:00
Richard Heck
edff97cb30 Matrix output via HTML. I have to say, this one took some work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33978 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 19:59:09 +00:00
Richard Heck
db1d81f03a Forgot this piece before.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33977 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 19:58:49 +00:00
Pavel Sanda
a5cb2afc1b Next headers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33976 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 19:38:05 +00:00
Richard Heck
96390e0ff7 Change semantics of two-arg htmlize to make more consistent with other
functions.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33975 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 19:17:06 +00:00
Pavel Sanda
a1d72cffca Next header
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33974 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 19:09:05 +00:00
Pavel Sanda
bcf9348eb1 Unneeded header
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33973 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 19:03:12 +00:00
Richard Heck
2f44dc2583 This doesn't seem to be compiled even, but oh well.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33972 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 19:01:15 +00:00
Richard Heck
ed8af8f7fd Ignore kerning in HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33971 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 18:59:04 +00:00
Richard Heck
2a1c6c3541 HTML for math fonts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33970 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 18:57:47 +00:00
Richard Heck
9ee805185c Fix up the math stream.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33969 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 18:57:37 +00:00
Richard Heck
b5d2302180 Initialize math_flavor, and introduce an isLaTeX() flavor check.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33968 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 18:57:20 +00:00
Richard Heck
a0043da05f Introduce and use a "math_flavor" flag with OutputParams.
I'm not happy about having what is basically the same enum in
BufferParams.h and OutputParams.h, but I don't see how to unify them
without either (a) including BufferParams.h in OutputParams.h, which is
ugly or (b) creating some new file just containing this enum, which
seems like overkill. Any other ideas?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33967 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 18:24:52 +00:00
Richard Heck
26ce144604 Fix comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33966 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 16:29:59 +00:00
Enrico Forestieri
4fc5f86137 Fix bug #4565: Using keyboard shortcuts to write Greek letters with an underbar produces LaTeX errors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33963 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 01:09:38 +00:00
Uwe Stöhr
33978c0b1b fileformat change:
- support to change the greyed-out note font color (fixes #3865)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33962 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 00:46:50 +00:00
Richard Heck
8cf5ff6fbf Simplify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33961 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 22:51:11 +00:00
Richard Heck
36b1623c5b Integrals via HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33960 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 22:51:02 +00:00
Richard Heck
ab2a59b0a1 I don't think we need to do this for MathML or HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33959 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 22:17:06 +00:00
Richard Heck
caf170d612 HTML for dots.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33958 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 22:14:00 +00:00
Richard Heck
8d51923b8b Do the obvious thing with delimiters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33957 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 22:07:05 +00:00
Richard Heck
ed71c32fcd Treat certain decoration cases differently.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33956 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 22:05:28 +00:00
Richard Heck
69fc590ee3 Decorations via HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33955 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 21:56:52 +00:00
Richard Heck
5aff128354 HTML for comments and colors.
Color doesn't do anything at this point. The colors are given in LaTeX
format. Do we know how to convert these to HTML format?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33954 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 17:24:22 +00:00
Richard Heck
f835e2a6f9 Cases for HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33950 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 02:57:05 +00:00
Richard Heck
3e31491871 HTML for InsetMathBrace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33949 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 02:40:32 +00:00
Richard Heck
27add8d945 HTML for math boxes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33948 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 02:37:05 +00:00
Richard Heck
7be729f028 Bold symbols via HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33947 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 02:05:49 +00:00
Richard Heck
e64be58736 InsetMathBig via HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33946 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 02:04:07 +00:00
Richard Heck
0190b003b0 Fractions via HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33945 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 02:03:45 +00:00
Richard Heck
f5bcb24da2 HTML for scripts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33944 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 01:31:25 +00:00
Richard Heck
f60dad8aaf HTML for numbers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33943 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 01:23:10 +00:00
Richard Heck
ad49c45475 Pure HTML for math symbols.
I may have to re-do some of the symbols file to make this work properly.
Some of the entities used may have been MathML only.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33942 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 00:24:54 +00:00
Richard Heck
b8550d11e8 Pure HTML output for math macros.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33941 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 00:18:24 +00:00
Richard Heck
9e34cf8186 Fix math char stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33940 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 00:18:08 +00:00
Uwe Stöhr
2a39fcd60b PageLayoutUi.ui: add tooltip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33938 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 23:40:42 +00:00
Richard Heck
5ef3c828b2 Simple characters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33937 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 23:03:37 +00:00
Richard Heck
30b18aec37 The beginnings of pure HTML output of math, for our internal XHTML
output routines. The idea is that in some cases people may not want to
use MathML, so we are going to try to give options.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33936 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 22:52:13 +00:00
Richard Heck
c6721161b0 If the translation fails for some reason, just return what we were
given. This is already how it is done in client/.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33935 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 21:33:26 +00:00
Richard Heck
29c93f87e6 Make these const, too. I mean, why not?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33934 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 21:31:17 +00:00
Richard Heck
4991fc3996 This hasn't much effect but seems wise.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33931 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 21:17:44 +00:00
Richard Heck
2a21c12eab There are other ways we can get in trouble, so let's impose the limit
slightly differently.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33927 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 20:52:07 +00:00
Richard Heck
bc6ee8d251 Do the translation the right way.
By the way, has anyone noticed that _() returns empty if you call it
on a string we don't know how to translate? Might it be better if it
returned the original string?



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33925 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 20:21:30 +00:00
Richard Heck
808ff6650c Introduce a simple macro facility for citation formats. Also introduce
simple, translatable units for use in such formats.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33924 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 20:01:28 +00:00
Richard Heck
0c135d1c4e Make the default format translatable, and load the cite formats in
paper.layout.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33921 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 18:50:31 +00:00
Richard Heck
f1912e1c33 Read the citation formats from a file, rather than hardcoding them. This
allows for layout- or module-level customization of the display in the
citation dialog and of the XHTML bibliography output.

There is more of this to come, by the way. The next step is to allow
macros. That will make it easier to deal with translation issues, which
ought to be the final step.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33920 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 18:37:25 +00:00
Richard Heck
63844ddbf9 Clarify and add some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33919 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 18:00:26 +00:00
Vincent van Ravesteijn
111bb60932 Fix bug #2009:'|'-character in headings confuses TOC list in navigate menu.
Solution is to search backwards for the last '|' in the string, and to add a '|' to the ones without a shortcut.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33918 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 17:58:00 +00:00
Vincent van Ravesteijn
e4b3e9b7bc Fix the painting I broke in r33909.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33912 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 16:00:49 +00:00
Richard Heck
dfaab2f50d Remove extra qualifier.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33911 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 15:45:24 +00:00
Vincent van Ravesteijn
0b450f40e7 Refactorization: I don't like nested ?: constructions. Especially not followed by an if statement which is a special case for the deepest level of the nested ?: construction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33910 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 15:32:45 +00:00
Vincent van Ravesteijn
6a9f44eaa2 Refactorization: Buffer::changed() can update the metrics as well, so we don't have to do it in scrollToCursor if we call Buffer::changed() anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33909 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 15:29:26 +00:00
Vincent van Ravesteijn
71c1ad3517 Fix bug #3900: Insets painted as hovered without mouse hover.
When updating the screen, moving the mouse, or scrolling the buffer, we check whether the hovering status of the insets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33908 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 15:21:10 +00:00
Vincent van Ravesteijn
fa0f6cf9be Allow to assign the shortcut to an action not only if this was an unknown action, but also when it is a no-action.
This could be seen by adding a shortcut "Ctrl-R" to accent-acute. Then changing this to "Ctrl-R Ctrl-R". And then changing this back to "Ctrl-R". Now the oldBinding is NOACTION and a warning is issued that "Ctrl-R" was already bound.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33906 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 09:15:27 +00:00
Vincent van Ravesteijn
df1b413587 No need to issue an error if the shortcut binding did not change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33905 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 09:13:00 +00:00