Michael Schmitt
e5dbc07931
* src/output_plaintext.C: partially revert r16780
...
to support RtL languages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16791 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-21 09:46:15 +00:00
Michael Schmitt
14102b6e99
* src/output_plaintext.C: fix line break handling;
...
don't stop 10 characters before max line length
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16782 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-20 16:38:58 +00:00
Michael Schmitt
954f6feee7
* src/output_plaintext.C: remove cryptic comment;
...
do not output deleted characters in plain text output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16781 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-20 16:25:52 +00:00
Michael Schmitt
6b39c832ce
* src/output_plaintext.C: save two *.po entries;
...
output label+space only if label is not empty
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16780 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-20 16:14:39 +00:00
Michael Schmitt
9f74aa4fe2
* src/output_plaintext.C: fix line breaks in plain text output;
...
add a line break at the end of each paragraph; add a second line break
if maximum line length is > 0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16779 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-20 15:35:39 +00:00
Michael Schmitt
3092763e2e
* output_plaintext.C: cosmetics in comment: line length cannot be < 0
...
* frontends/qt4/ui/QPrefPlaintextUi.ui:
* lyxrc.C: align descriptions (saves a message in *.po)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16777 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-20 14:51:40 +00:00
Jean-Marc Lasgouttes
76dc838dfe
* output_plaintext.C (asciiParagraph): output things in the right
...
order when there is an inset and runparams.linelen == 0.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16765 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-19 16:17:39 +00:00
Michael Schmitt
c5df681fe8
* insets/insetfloatlist.C:
...
* insets/insettoc.C:
* TocBackend.C:
* TocBackend.h: rename 'asciiTocList()' to '.writePlaintextTocList'
* insets/insettext.C:
* output_plaintext.C:
* output_plaintext.h: rename 'asciiParagraph' to 'writePlaintextParagraph'
* output_plaintext.C:
* exporter.C:
* output_plaintext.h: rename 'writeFileAscii' to 'writePlaintextFile'
* lyxrc.C: change lyxrc section title (ASCII => PLAIN TEXT)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16756 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-18 22:29:50 +00:00
Georg Baum
02c64e55c7
remove unneeded includes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16176 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-04 17:41:03 +00:00
Georg Baum
9eab5fa88a
more unicode filenames
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16173 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-04 15:46:57 +00:00
Georg Baum
cdfed1ce7d
remove unused stuff
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16109 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 21:34:24 +00:00
André Pönitz
6c300f72a2
move everything into namespace lyx
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15422 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-21 00:16:43 +00:00
Lars Gullik Bjønnes
b27bb5cb53
Change (and fix) the bullets in itemize to be more unicode friendly.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15416 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-20 19:26:23 +00:00
Georg Baum
34b7650cbb
Introduce wide streams. This fixes the remaining problems of plain text
...
export (e.g. the ToC) and the navigate menu.
* src/insets/insetbase.h
(InsetBase::plaintext): output to a docstream
(InsetBase::textString): ditto
* src/mathed/TextPainter.h
(TextPainter::show): ditto
* src/support/docstream.[Ch] New file and string streams for
docstring. The file streams convert to UTF8 on the fly.
* many more files: Adjust to the changes above
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15301 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-11 19:40:50 +00:00
Lars Gullik Bjønnes
43b77ba2d7
Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14952 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-09 15:27:44 +00:00
Georg Baum
9b3398d56c
Start to export palin text in utf8 (no insets besides InsetText for now)
...
* src/output_plaintext.C
(asciiParagraph): output utf8 instead of ucs4 garbage
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14700 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 11:56:06 +00:00
Georg Baum
9e5a37c7d0
* src/output_plaintext.C
...
(asciiParagraph): fix constant overflow
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14679 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 19:46:36 +00:00
Lars Gullik Bjønnes
9d6cad3fe6
* output_latex.h:
...
* buffer.h:
* CutAndPaste.h:
* pariterator.h:
* paragraph_funcs.h:
* output_linuxdoc.h:
* output_docbook.h:
* insets/insettext.h: get forward declaration of ParagraphList
* output_plaintext.C:
* bufferlist.C:
* undo.C:
* lyxtext.h:
* undo.h:
* buffer_funcs.C:
* insets/insetbibitem.C: get proper ParagraphList decls
* output_linuxdoc.C (linuxdocParagraphs):
* output_latex.C (TeXOnePar):
* insets/insettext.C (appendParagraphs):
* insets/insetcharstyle.C (docbook): use std::distance
* CutAndPaste.C (pasteSelectionHelper, copySelectionHelper):
* paragraph_funcs.C (breakParagraph,
breakParagraphConservative, mergeParagraph):
* text.C (acceptChange, rejectChange):
* text2.C (deleteEmptyParagraphMechanism): use boost::next
* output_docbook.C (several places): use boost::next and
std::distance
* ParagraphList_fwd.h: modify to provid a forward declaratoin
of the new ParagraphList.
* RandomAccessList.h: New container for Paragraphs from
Abdelrazak Younes
* ParagraphList.h: new file, setup user of RandomAccessList
* paragraph.C: remove ParagraphList constructor from this file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13467 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-23 20:11:06 +00:00
José Matox
5d9e560f71
Fix bug 421
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10227 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-15 19:10:25 +00:00
Angus Leeming
0de22c86f8
use USE_COMPRESSION to guard code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9516 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-20 21:34:23 +00:00
Jean-Marc Lasgouttes
d194cfffa5
get rid of ownerPar(), which was super slow; fix tabular crash due to recently introduced BOOST_ASSERTs
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8951 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-16 00:32:04 +00:00
José Matox
498724d21b
up to file format 236 and also fix Bug 421.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8927 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-14 18:41:27 +00:00
Lars Gullik Bjønnes
e34a1e90af
obvious stuff
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8851 a592a061-630c-0410-9148-cb99ea01b6c8
2004-07-25 00:04:42 +00:00
Georg Baum
db707dab04
remove now unnecessary const casts
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8757 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-17 11:28:31 +00:00
Angus Leeming
b11b6f78b1
Squash a bunch of compiler warnings.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8538 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-27 01:18:51 +00:00
André Pönitz
0d43ba149a
the stuff from the sneak preview:
...
For one, it still contains a few things that are already in CVS (the
'brown paperbag' changes).
Secondly, this changes the ParagraphList to a std::vector but does not
yet take full advantage of it except removing LyXText::parOffset() and
similar.
I had an extensive talk with my profiler and we are happy nevertheless.
This also moves almost all Cut&Paste specific stuff from text.C to
CutAndPaste.C. Much smaller interface now... Namespace CutAndPaste is
now lyx::cap::. Was inconsistent with the rest....
Make ParagraphList a proper class. We'll need this later for a
specialized erase/insert.
Remove some unneeded prototypes and function declarations
Use ParameterStruct directly instead of ShareContainer<ParameterStruct>
Inline a few accesses to CursorSlice members as suggested by the profiler.
Fix commandline conversion crash reported by Kayvan.
Replace PosIterator by DocumentIterator. The latter can also iterate
through math and nested text in math...
Remove math specific hack from Documentiterator
Derive InsetCollapsable from InsetText instead of using an InsetText
member. This give us the opportunity to get rid of the InsetOld::owner_
backpointer.
Cosmetics in CutAndPaste.C and cursor.C. Fix nasty crash (popping slices
off an empty selection anchor). Add a few asserts.
Remove all 'manual' update calls. We do now one per user interaction which
is completely sufficient.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8527 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-25 09:16:36 +00:00
André Pönitz
1eaa3eb913
more IU
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8371 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-26 10:13:15 +00:00
André Pönitz
84b462dd37
ismall stuff
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8144 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-28 08:55:12 +00:00
José Matox
cd424d7853
Rename ascii to plaintext and LatexRunParams to OutputParams.
...
Create new files for each output format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8046 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-05 12:06:20 +00:00