Commit Graph

11497 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
Abdelrazak Younes
d1c76c28bd update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16449 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-31 15:41:06 +00:00
Peter Kümmel
f402ee9f84 fix: The items in the treeview are editable, invoke ert-insert => seg fault
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16448 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 21:53:00 +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
Peter Kümmel
4fe3d7d426 also warnings as errors with /W3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16440 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 13:53:34 +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
ec4ff5e1a8 New textclass
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16428 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 13:40:50 +00:00
Georg Baum
9f4fb61163 Change default encoding of arabic to cp1256 because iso8859-6 is incomplete
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16427 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 13: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
Jean-Marc Lasgouttes
6146f2dad4 Fix description of LabelCounter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16422 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 10:22:16 +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
Michael Schmitt
5a0f092f74 * Status.15x: remove invalid bug report (my MikTeX environment was broken)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16419 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 18:20:26 +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
Michael Schmitt
88a6d1a918 * lib/configure.py: fix typos ("Declear" => "Declare")
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16415 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 15:30:12 +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
Jürgen Spitzmüller
f4540ab1aa * Status.15x: clarify status of the charstyle dialog resizing bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16407 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 06:21:03 +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
Michael Schmitt
bcc3f4794e * Status.15x: "reopen" dialog resize bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16405 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 23:11:46 +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
c4307d1dd3 add new galician file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16401 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 11:59:56 +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
Jean-Marc Lasgouttes
63b31731e2 new Galician tutorial; updated Intro
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16397 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 10:37:03 +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