Commit Graph

8989 Commits

Author SHA1 Message Date
Abdelrazak Younes
a64d5ba362 Transfer x2pos() and pos2x from LyXText to TextMetrics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16458 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-01 11:36:30 +00:00
Abdelrazak Younes
3f9aa10f6a delete unused variable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16457 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-01 10:53:10 +00:00
Abdelrazak Younes
9939a42b80 Compilation fix, again... sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16456 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-01 10:44:52 +00:00
Abdelrazak Younes
c87fa1927b Compilation fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16455 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-01 10:41:28 +00:00
Abdelrazak Younes
f1d90e17d8 Transfer getColumnNearX from LyXText to TextMetrics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16454 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-01 10:33:37 +00:00
Abdelrazak Younes
e58397400c Following depm sanitization, the assertion was bogus when entering an inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16453 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-01 09:59:11 +00:00
Abdelrazak Younes
79d7691614 Recommit Peter's commit from rev 16444. svn commit did not complain...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16452 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-01 09:46:12 +00:00
Abdelrazak Younes
97a59984b1 Transfer these methods from LyXText to TextMetrics:
- labelEnd()
- rowBreakPoint()
- setRowWidth()
- setHeightOfRow()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16451 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-01 09:36:55 +00:00
Abdelrazak Younes
a9bc3e688b Fix crash when scrolling up using the arrow keys.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16450 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-01 09:31:43 +00:00
Peter Kümmel
c845e5968f disable editing in the toc dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16447 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 21:51:05 +00:00
Peter Kümmel
45e7e717d4 remove some msvc warnings
* src/mathed/InsetMathNest.C : 
	unreachable code
* src/aspell_local.h : 
	aspell is a Clibrary, no class keyword available
* src/texrow.h : 
	could not generate standard constructor
* development/cmake/CMakeLists.txt : 
	- disable same warnings
    - all size_t/int related warnings are disabled



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16446 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 21:05:44 +00:00
Peter Kümmel
ce0b071c94 make out-of-bound access impossible
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16444 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 18:24:25 +00:00
Abdelrazak Younes
ad84c0ce5d delete unused variables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16443 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 15:53:19 +00:00
Abdelrazak Younes
ceb51f7f76 Sanitize the DEPM!
* BufferView:
  - checkDepm(): new method for DEPM mechanism.
  - mouseSetCursor(): use checkDepm().

* text2.C:
  - use BufferView::checkDepm() instead of using LyXText::deleteEmptyParagraphMechanism() directly.
  - deleteEmptyParagraphMechanism(): prepare for conversion to DocIterator (code transferred to BufferView::checkDepm()).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16442 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 15:05:15 +00:00
Peter Kümmel
1e74724606 add more lyxerr output, don't use a reference (maybe stdlib-debug has problems with it)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16441 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 14:50:45 +00:00
Edwin Leuven
8005e8a6f6 remove unused vars
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16439 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 12:39:41 +00:00
Abdelrazak Younes
53ce526058 remove duplicate methods moved to TextMetrics.C.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16438 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 11:50:39 +00:00
Peter Kümmel
10f5ccaab8 we've never used Q_FOREACH
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16437 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 10:35:17 +00:00
Peter Kümmel
74b8008837 undo last acedential checkin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16436 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 10:30:02 +00:00
Peter Kümmel
af2ce964ae we've never used Q_FOREACH
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16435 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 10:23:06 +00:00
Abdelrazak Younes
d77424fc86 delete unused stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16434 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 00:00:19 +00:00
Abdelrazak Younes
b2126408cf This commit do the Model/View separation of the LyXText and Paragraph classes. The separation is mostly complete for the Paragraph class but some more transfer should occur for the LyXText class.
* ParagraphMetrics.[Ch]: new files

* TextMetrics.[Ch]: new files.

* lyxtext.h/text2.C/text3.C: some code transferred to the TextMetrics class.

* paragraph.[Ch]: all screen oriented code transfered to ParagraphMetrics class.

* BufferView:
 - text_metrics_: new TextMetrics cache private member.
 - textMetrics(): new access method.
 - parMetrics(): ditto.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16433 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 23:54:48 +00:00
Jean-Marc Lasgouttes
d9d0e7d5e8 * cursor.C (popRight): place cursor at the right spot:
notifyCursorLeaves may have killed the inset and put its contents
	at lower level (bug 2908)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16430 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 14:17:48 +00:00
Jean-Marc Lasgouttes
7459f3ad6a * insetcollapsable.C (hasFixedWidth): new virtual method, returns
false by default.
	(metrics): do not set to openinlined if
	hasFixedWidth is true.

	* insetbox.C (hasFixedWidth): returns true if the box has a fixed
	width. 
	(metrics): use hasFixedWidth.
	



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16426 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 11:52:01 +00:00
Jean-Marc Lasgouttes
ca6838b288 * InsetMathNest.C (handleFont): avoid crash on undo when
suppressing a font inset (bug 3019).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16424 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 11:07:23 +00:00
Georg Baum
67dd949130 Fix LaTeX generation of files with inputenc == default.
See the patch itself for further comments.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16421 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 09:24:18 +00:00
Georg Baum
fcd3b56a22 add missing encoding declaration
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16420 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 18:47:13 +00:00
Georg Baum
244b2c1fab Add some more LaTeX encodings, fix thailatex and display all available
encodings in the preferences dialog

	* src/LaTeXFeatures.C: special treatment for tis620-0 encoding
	* src/bufferparams.C: ditto
	* src/output_latex.C: ditto

	* src/encoding.[Ch]: Add the possibility to iterate over all encodings

	* src/paragraph_pimpl.C: Add latin10 and cp858 to Euro treatment

	* src/buffer.C: Update format number

	* src/frontends/qt4/QDocumentDialog.C: Don't hardcode available
	encodings

	* lib/lyx2lyx/LyX.py,
	  lib/lyx2lyx/lyx_1_5.py: implement conversion from 256 to 255

	* lib/encodings: Add some encodings, fix all "unknown" entries

	* development/FORMAT: Document file format change


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16418 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 18:15:25 +00:00
Georg Baum
c7490b191e Add LyX 1.4.x format for export
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16417 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 16:23:12 +00:00
Georg Baum
f94d42f72c fix comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16416 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 16:19:22 +00:00
Georg Baum
5e5dc39d2c fix typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16414 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 12:05:40 +00:00
Georg Baum
4de1cc0339 remove obsolete comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16413 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 12:01:27 +00:00
Georg Baum
ea81b496be remove useless in_ert variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16411 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 10:24:45 +00:00
Georg Baum
63524a4184 * src/support/unicode.C
(iconv_convert): Fix a crash: Don't try to create a vector from two
	pointers where end is before begin.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16408 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 07:35:57 +00:00
Bo Peng
36b485d842 Fix a crash caused by cur.text() != this for collapsable insets
* src/insets/insetcollapsable.C: test if inset is open before editing


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16406 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 03:00:48 +00:00
Jürgen Spitzmüller
f55fde9bab * src/mathed/InsetMathNest.C (do_dispatch):
- catch LFUN_QUOTE_INSERT and output plain quote (bug 3044).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16403 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 15:01:09 +00:00
Georg Baum
979fdf7456 Fix strange bibtex problem by converting some more functions to use FileName
instead of std::string

	* src/support/lyxlib.h
	* src/support/getcwd.C
	(getcwd): return a FileName, not a std::string in filesystem encoding

	* src/support/filetools.[Ch]
	(makeAbsPath): return a FileName, not a std::string in undefined encoding

	* src/support/lyxlib.h
	* src/support/tempName.C
	(makeAbsPath): return a FileName, not a std::string in undefined encoding

	* many other files: Adjust to the changes above


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16399 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 10:56:11 +00:00
Georg Baum
6c4aa88c2e remove unused stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16395 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 08:40:40 +00:00
Abdelrazak Younes
246e06c331 Fix focus problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16392 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-24 18:16:25 +00:00
Abdelrazak Younes
caaaf6f20b Really fix focus problem on new view.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16391 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-24 17:11:32 +00:00
Jürgen Spitzmüller
72bb51b0fc * src/frontends/qt4/QCharacter.C:
- fix dialog resizing for QT >= 4.2 (bug 3032).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16390 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-24 11:38:19 +00:00
Abdelrazak Younes
42426e1423 Fix focus on WorkArea after mini-buffer command.
* LyXView:
  - setFocus(): new pure virtual method.

* QCommandBuffer:
  - simplify Ctor
  - call GuiView::setFocus() instead of centralWidget()->setFocus()

* GuiView:
  - implement setFocus():
  - focusNextPrevChild(): use setFocus().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16386 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-23 17:09:50 +00:00
Abdelrazak Younes
9e4ac7fca9 Fix Tab and Ctrl-Tab keys handling and focus problems related to it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16381 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-22 16:13:19 +00:00
Georg Baum
5843e6bd7f fix encoding of user name and email address
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16379 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-22 10:26:52 +00:00
Georg Baum
cb0b0bb799 * src/LColor.[Ch]
(LColor::getFromGUIName): delete, since it is unused, broken and
	not easy to implement correctly


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16378 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-22 10:23:25 +00:00
Georg Baum
2caff468e5 convert more GUI strings to docstring
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16377 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-22 10:06:40 +00:00
Georg Baum
07e76f0911 get rid of more utf8 conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16376 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-22 09:23:10 +00:00
Bo Peng
2867d821ee Fix "virtual function called" error, by Abdel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16375 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-22 02:57:25 +00:00
Enrico Forestieri
c55d189873 Fix display of the style name in the BibTeX Bibliography panel
* src/frontends/controllers/ControlBibtex.C
	(ControlBibtex::getStylefile): get the correct parameter.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16374 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-22 01:12:43 +00:00
Edwin Leuven
5ad83ced7c avoids updates on
1. mouse click (without selection)
 2. mouse movements (when selection doesn't change) 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16373 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 21:27:04 +00:00
Georg Baum
1e9f9be483 get rid of more utf8 conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16372 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 20:52:59 +00:00
Enrico Forestieri
3aa4567fe8 Use the standard mouse pointer shape when displaying an alert dialog
* src/frontends/qt4/Alert_pimpl.C
	(prompt_pimpl): override the cursor shape chosen by Qt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16371 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 20:29:15 +00:00
Georg Baum
ea2c007320 remove unneeded conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16370 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 19:02:17 +00:00
Abdelrazak Younes
6e02338328 * ctor: change viewport attribute (disable double-buffering).
* focusInEvent(): start the blinking cursor after the resize.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16366 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 14:50:46 +00:00
Georg Baum
1189f55eae convert LyXFont::stateText and LColor::getGUIName to docstring,
saving again some utf8 conversions


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16365 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 14:31:19 +00:00
Georg Baum
c6f0c8d0b6 convert author names and status messages to docstring
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16363 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 13:58:28 +00:00
Georg Baum
49b753f603 Fix another instance of filename encoding problems
* src/support/filetools.h
	(fileSearch): change return value type to vector<FileName>

	* src/support/filetools.C
	(dirList): Convert filenames from the file system encoding

	* src/converter.C
	(Converters::move): Adjust to dirList interface change

	* src/support/filename.[Ch]
	(FileName::fromFilesystemEncoding): New static method

	* src/client/client.C: Add comments about filename encoding


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16362 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 13:01:47 +00:00
Georg Baum
a1389d411c Fix two filename bugs (from Enrico and me)
* src/support/filetools.[Ch]
	(fileOpenSearch): comment out since it is unused
	(fileSearch): Use addExtension instead of changeExtension, since we
	are always called without extesnion, or with the correct one.
	(addExtension): new function

	* src/lyx_main.C
	(LyX::init): tell fileSearch that we are also interested in the name
	if the file does not exist


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16361 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 12:04:01 +00:00
Abdelrazak Younes
0e2095ad62 Fix this error message on startup:
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter:🔚 Painter not active, aborted



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16360 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 12:01:35 +00:00
Georg Baum
33ca420a4a * src/converter.C
(Converters::move): Use removeExtension and reuse variable 'path'


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16358 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 11:46:13 +00:00
Georg Baum
c865de2c05 remove unused stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16357 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 10:37:28 +00:00
Abdelrazak Younes
d3cad65fe2 Change the rule to generate package.C from %VAR% to @VAR@
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16355 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 09:48:26 +00:00
Georg Baum
e2eb27d76e Let the compiler generate default constructor, copy constructor and
assignment operator


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16354 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 08:46:32 +00:00
Enrico Forestieri
b892a6bc43 Use a larger font for displaying the version number on the splash screen
* src/frontends/qt4/GuiWorkArea.C
	(GuiWorkArea::doGreyOut): don't use LyXFont::SIZE_XXXX directly as
	a font size as these are enum values and not the actual sizes.
	Move the version number slightly to the right to make it more
	readable against the splash screen.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16353 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 02:49:27 +00:00
Abdelrazak Younes
8f90d0bb96 Partial Fix for Tab key press bug. It is now properly processed but the focus is not returned to the WorkArea afterward.
* WorkArea.h: processKeySym() is now public

* GuiView:
  * event(): new method to intercept Tab key press.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16352 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-20 21:28:05 +00:00
Jean-Marc Lasgouttes
4f8febc1b4 * QLMenubar.C (macxMenuBarInit): fix workaround for menu merging
with Qt/Mac. Still does not work in non-default locale.

	* QLPopupMenu.C (specialMacXmenuHack): remove, not needed anymore.

	* GuiView.C (init): remove Mac hack, not needed anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16349 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-20 14:28:06 +00:00
Abdelrazak Younes
361a97b070 Fix bug 3024 (http://bugzilla.lyx.org/show_bug.cgi?id=3024).
The use of top-level lyx::dispatch() ensure that the CoordCache is OK at each step.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16348 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-20 14:17:50 +00:00
Abdelrazak Younes
ceda236931 add an assertion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16347 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-20 14:15:26 +00:00
Jean-Marc Lasgouttes
9c513e90d1 * insetcollapsable.C (doDispatch): fix crash in previous patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16344 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-20 13:25:46 +00:00
Georg Baum
0d089d48ca fix formatting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16340 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 18:04:42 +00:00
Jean-Marc Lasgouttes
6853846d98 * insetcollapsable.C (doDispatch): do nothing on mouse release if
there is a selection.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16337 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 15:42:10 +00:00
Abdelrazak Younes
30f8a6327f First step towards model/view separation of Paragraph class.
- ParagraphMetrics: new class gathering everything related to metrics.
- Paragraph: now derives from ParagraphMetrics.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16335 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 14:27:38 +00:00
Georg Baum
1ca55d1c8f Fix bug 3034
* src/mathed/InsetMathGrid.C: Don't declare mathed_parse_normal,
	include MathParser.h instead
	(InsetMathGrid::doDispatch): remove to_utf8, mathed_parse_normal
	takes now a docstring

	* src/mathed/MathMacroTemplate.C
	(MathMacroTemplate::read): restore the version of 1.4.x, since
	the new one did only work for macros without whitespace

	* src/mathed/MathParser.[Ch]
	(Parser): Add constructor from a docstring
	(mathed_parse_cell): Create the parser directly from the string,
	since the istream variant of tokenize() does only work if reading
	from the .lyx file
	(mathed_parse_normal): ditto
	(mathed_parse_normal): Delete the istream variant (unused)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16334 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 14:24:25 +00:00
Abdelrazak Younes
47adc642a3 header cleanup following rev 16332.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16333 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 14:09:47 +00:00
Abdelrazak Younes
4eb12c683b Moves textRow() from DocIterator to cursor.C where it belongs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16332 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 13:39:46 +00:00
Jürgen Spitzmüller
9475c48bf2 * src/frontends/qt4/ui/QViewSourceUi.ui: remove bogus Whatsthis entry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16330 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 08:17:47 +00:00
Jürgen Spitzmüller
a37f3198ad Trivial ui tweak:
* src/frontends/qt4/ui/QGraphicsUi.ui: fix tab accelerating order.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16325 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-18 20:17:12 +00:00
Georg Baum
b7c3347e9a Fix bug 3037
* src/lyxfunc.C
	(LyXFunc::dispatch): Use default include type if no type is given


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16324 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-18 16:45:20 +00:00
Jean-Marc Lasgouttes
e5b8f69561 * Application.C (Application): initialize correctly current_view_.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16322 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-18 15:21:43 +00:00
Enrico Forestieri
6b5289825e Don't use a global variable for avoiding removal of the system temp dir
* src/support/package.h
	(Package::system_temp_dir): new, return the system temp dir.

	* src/support/package.C.in
	(Package::Package): record the system temp dir.

	* src/lyx_main.C
	(LyX::prepareExit): don't remove the temporary directory if it
	is the same as the system temp dir, meaning that the lyx_tmpdir
	has not yet been created.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16318 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 21:52:40 +00:00
Edwin Leuven
dc8bba7918 fix: http://bugzilla.lyx.org/show_bug.cgi?id=452
ControlMath.C: cleanup order of symbols in math panel
iconpalette.C: 6 cols since many symbols come in pairs
Rrightarrow.xpm: was missing
searrow.xpm: was north east
swarrow.xpm: was north west


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16316 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 17:36:00 +00:00
Michael Schmitt
822df54fc2 * paragraph_pimpl.C: fix a seg fault when accepting a change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16315 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 15:09:32 +00:00
Georg Baum
e208fa001b remove unused stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16314 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 15:05:18 +00:00
Jürgen Spitzmüller
506c5df84b * src/frontends/qt4/ui/QCitationUi.ui:
- fix shortcut

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16313 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 14:04:18 +00:00
Jürgen Spitzmüller
ddac5c916b * src/text2.C (getPitNearY):
- fix compiler warning (unsigned/signed int comparision).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16312 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 12:52:53 +00:00
Georg Baum
29b6f5cad9 Convert filenames to local encoding for running lyx2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16311 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 12:12:17 +00:00
Georg Baum
e4c3ce4627 Convert most of the bibtex machinery to docstring.
Don't limit citation keys to ASCII anymore, since InsetBibitem can generate
non-ASCII keys.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16310 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 10:52:04 +00:00
Abdelrazak Younes
21b0a4ab9b Fix for bug 3027 by Martin V.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16309 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 10:11:28 +00:00
Georg Baum
01c3046d5a Add some forgotten FileName conversions to enable installation in non-ascii
paths


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16308 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 09:46:04 +00:00
Georg Baum
cd5c02c925 fix variable initialization order (shuts up a gcc warning)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16298 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-16 10:40:43 +00:00
Georg Baum
bdbedecab3 add comment about possibly wrong encoding
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16297 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-16 10:38:01 +00:00
Georg Baum
0a1057b62e remove unused stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16296 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-16 10:37:41 +00:00
Abdelrazak Younes
4d96e200f0 Fix this crash:
new doc
type:  foo bar
put cursor after foo: foo| bar
enter space: foo | bar
click somewhere else -> CRASH

The problem is that the paragraph breaking needs to be redone after the empty space is deleted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16295 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 23:17:10 +00:00
Enrico Forestieri
5b5585e723 Account for a bigger width or precision when inserting a number into
a wide stream on systems where sizeof(wchar_t) == 2.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16294 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 22:53:06 +00:00
Bo Peng
7df29f6562 minor style change: use 0 instead of NULL
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16293 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 21:39:57 +00:00
Bo Peng
647df45a50 minor comment fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16286 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 16:53:02 +00:00
Bo Peng
e78b1cf6d7 BufferView.h/C: use member variable last_inset_ instead of static variable in workAreaDispatch to avoid potential mutliple window problems
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16285 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 16:48:09 +00:00
Abdelrazak Younes
b802e94208 Fix cursor repositioning when a Window is resized or when switching Windows showing the same Buffer (this bug was not visible if "Cursor follow mouse" was set).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16282 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 16:16:20 +00:00
Edwin Leuven
6bfb3e6dc4 georg baum:
- add encoding arg to idocfstream
- open .bib files with idocfstream
- add ascii_lowercase that takes docstring

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16281 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 16:09:05 +00:00
Bo Peng
50d1ba117a add a comment in workAreaResize
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16280 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 15:39:57 +00:00