Commit Graph

10549 Commits

Author SHA1 Message Date
Peter Kümmel
5c92641c4d disable scrollbar when it is not needed, especially for the empty start up window
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15677 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 17:51:56 +00:00
Michael Schmitt
b937ae39f9 * src/paragraph.h:
* src/paragraph_pimpl.C:
	* src/paragraph_pimpl.h:
	* src/paragraph.C: get rid of unused method setContentsFromPar()
	and remove another change tracking FIXME at the same time


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15676 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 17:51:41 +00:00
Georg Baum
4fb480f34f fix compile error
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15675 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 17:06:17 +00:00
Peter Kümmel
94792c0821 add MinSizeRel as project which only uses STL and Boost pchs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15674 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 16:11:28 +00:00
Bo Peng
f49f2f6e22 New bookmarks implementation:
* src/lyxfunc.C: handle LFUN_BOOKMARK_GOTO and LFUN_BOOKMARK_CLEAR
	* src/session.h/C: store bookmarks here.
	* src/lfuns.h, src/LyXAction.C: add LFUN_BOOKMARK_CLEAR
	* src/BufferView.h/C: remove saved_positions, move LFUN_BOOKMARK_GOTO to lyxfunc.C
	* src/MenuBackend.h/C: add Bookmarks menu type
	* lib/ui/stdmenus.ui: change bookmarks menu items


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15673 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 15:55:17 +00:00
Michael Schmitt
bc2fb0d99d * po/.po: remerge again (last time for today)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15672 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 15:34:51 +00:00
Michael Schmitt
88f55657d9 * po/ru.po:
* po/sk.po:
	* po/sl.po:
	* po/tr.po: remerge with better 1.4 translations


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15671 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 15:27:09 +00:00
Michael Schmitt
84db512089 * po/nl.po:
* po/nn.po:
	* po/pl.po:
	* po/ro.po: remerge with better 1.4 translations


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15670 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 15:22:10 +00:00
Georg Baum
892d9eaac3 forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15668 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 15:09:32 +00:00
Georg Baum
fa73bbd045 Fix more invalid documents: s/\\color default/\\color inherit/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15666 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 14:55:38 +00:00
Peter Kümmel
1364943414 add link to Qt bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15665 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 14:40:02 +00:00
Michael Schmitt
2840fcf38c * po/fi.po:
* po/fr.po:
	* po/hu.po:
	* po/it.po: remerge with the better 1.4 translations


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15664 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 14:36:07 +00:00
Peter Kümmel
734ea8819e enable precompile headers only for the Debug and Release build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15663 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 14:32:17 +00:00
Michael Schmitt
c1106b1d06 * po/da.po:
* po/de.po:
	* po/es.po:
	* po/eu.po: remerge with 1.4.X translations (which covered more messages)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15662 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 14:28:40 +00:00
Abdelrazak Younes
887bae8390 Fix crash when reconfigure is called without Buffer nor BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15661 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 13:14:21 +00:00
Michael Schmitt
efcafae120 * po/*.po: remerge files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15660 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 13:05:37 +00:00
Georg Baum
44faad89e3 Describe beamer in LaTeX class list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15657 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 10:20:40 +00:00
Georg Baum
fc7171926a define missing color
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15656 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 10:06:31 +00:00
Georg Baum
4c34726901 Fix generation of invalid LyX files
* src/lyxfont.C
	(LyXFont::lyxWriteChanges): Don't change color "inherit" to
	"default", since that cannot be read in.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15654 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 09:38:54 +00:00
Georg Baum
551fe79880 Fix invalid colors (generated by LyX 1.4.3)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15653 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 09:22:35 +00:00
Georg Baum
9f4cc3c9f0 Convert to new format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15652 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 08:41:31 +00:00
Michael Schmitt
c07d1814ac * src/tabular.C: remove change tracking FIXMEs; the code looks OK
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15648 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 20:58:12 +00:00
Georg Baum
6af710094e Add beamer layout file and examople, fresh from the beamer CVS.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15647 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 20:56:42 +00:00
Michael Schmitt
ed75dc4feb * messages.C: use lyxerr[Debug::DEBUG] rather than lyxerr
for debug message


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15646 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 20:26:25 +00:00
Enrico Forestieri
6b1631a8c5 Output a space if pendingSpace() is true and it is actually needed
* src/mathed/MathStream.C
	(isAlpha): new, test whether a lyx::char_type is an ascii letter.
	(operator<<): output a space if pendingSpace() is true and what follows
	begins with an ascii letter. Also update the number of lines written.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15645 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 20:16:47 +00:00
Michael Schmitt
a636a5a7f2 * rowpainter.C: when checking whether the change
bar has to be painted, also consider the imaginary
        end-of-par character


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15644 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 20:07:26 +00:00
Georg Baum
f8b9d95ee4 Support all xymatrix arguments
* src/LaTeXFeatures.C
	(LaTeXFeatures::getPackages): Add package xy

	* src/mathed/InsetMathXYMatrix.[Ch]
	(spacing_): New
	(spacing_code_): New
	(validate): New, require xy package

	* src/mathed/InsetMathXYMatrix.C
	(InsetMathXYMatrix::write): write spacing_ and spacing_code_
	(InsetMathXYMatrix::infoize): output spacing_ and spacing_code_

	* src/mathed/MathFactory.C
	(createInsetMath): handle special arguments of xymatrix

	* src/mathed/MathParser.C
	(Parser::parse1): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15643 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 19:10:30 +00:00
Georg Baum
864ed2c8f9 * src/support/docstream.C
(iconv_codecvt_facet::do_max_length): Update to current UTF8
	specification and return 4 for UTF8.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15642 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 18:54:30 +00:00
Peter Kümmel
a252679cca add missing header, forgotten because of the Qt precompiled headers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15641 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 14:57:25 +00:00
Peter Kümmel
bc0eb0b97f add missing header
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15640 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 14:46:38 +00:00
Peter Kümmel
7ea5cb8d15 enable movable toolbars
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15639 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 14:39:16 +00:00
Peter Kümmel
c04f51682f enable at least a context-sensitive CT toolbar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15638 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 14:23:15 +00:00
Peter Kümmel
8669b0087e Add tab support
frontends/LyXView.h
	- add tab update function 
	
frontends/qt4/GuiView.h
	- add tab update function
	- add function for setting up the tabs
	- add slot for the tab clicks
	- add pimpl
	
frontends/qt4/GuiImplementation.C
	- don't set the buffer as central widget 
	  but initilize the tabs
	  
frontends/qt4/GuiView.C
	- use QTabBar for switching
	- scan the bufferlist on updates
	
frontends/LyXView.C
	- also update the tabs
	


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15637 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 14:12:46 +00:00
Peter Kümmel
b15b581f57 * frontends/Toolbars.C:
revert first patch http://www.lyx.org/trac/changeset/15597
* frontends/qt4/GuiView.C:
	don't 'break' the toolbar because it doesn't work if 
	the toolbar will be hidden





git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15636 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 13:59:22 +00:00
Michael Schmitt
4292f4e9e9 remove references to Qt3/Gtk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15630 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 21:45:37 +00:00
Abdelrazak Younes
27ef7c726f * LyXText::singleWidth(): remove unneeded Buffer argument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15627 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 20:10:35 +00:00
Georg Baum
e61e83ec20 Work around a possible gcc bug: Since Abde'ls recent changes gcc does not
like virtual methods in the base class anymore even if they are implemented.
	* src/frontends/Painter.h
	(rectText): remove the virtual qualifier
	(buttonText): ditto
	(underline): ditto
	(buttonFrame): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15625 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 18:56:22 +00:00
Georg Baum
4d814f3e73 Remove unused variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15624 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 18:32:55 +00:00
Abdelrazak Younes
65354d63a7 small cosmetic cleanups:
* delete some comments
* use lyxerr instead of cout in PanelStack
* move PanelStack into lyx::frontend namespace


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15623 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 14:39:05 +00:00
Abdelrazak Younes
e918c00190 small cleanup while looking for a bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15622 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 14:15:05 +00:00
Jürgen Spitzmüller
6eeb83498c * QPrefScreenFontsUi.ui: assing label to the correct (and existing) buddy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15621 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 14:05:06 +00:00
Abdelrazak Younes
fbcc021da6 small cleanup while looking for a bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15620 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 13:49:41 +00:00
Abdelrazak Younes
992fe1dba6 * QLPainter:
- ctor and dtor moved to public:
  - QLPainter(): takes a QPaintdevice instead of a QWidget.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15619 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 13:16:18 +00:00
Abdelrazak Younes
eb651c3d61 Move BufferView cached pointer out of LyXText:
* LyXText
  - bv(), bv_owner, : deleted.
  - These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
  - These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
  - recUndo(): now need a LCursor argument.
 
* CoordCache::get(LyXText const *, pit_type):
  - now const.
  - use const_iterator instead of iterator.

* FontIterator:
  - add (Buffer const &) argument to ctor
  - buffer_: new const reference to applicable BufferView.

* InsetBase
  - xo(), yo(), covers() and neverIndent() are now const.

* InsetText::setViewCache(): deleted

All other changes are due to the LyXText and InsetBase API changes.



 
  

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 12:45:33 +00:00
Abdelrazak Younes
7a4c86b184 * Painter::isDrawingEnabled():
- make the method const
  - delete the const on return value because they are not really mandatory for POD (Plain Old Data)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15617 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 11:55:13 +00:00
Abdelrazak Younes
662974406a Forgot that also!
* QLPainter::~QLPainter: add virtual

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15616 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 11:04:37 +00:00
Abdelrazak Younes
0a48776a9a Forgot that!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15615 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 10:47:59 +00:00
Abdelrazak Younes
ed921a5955 revert changes from last commit due to a bad tree state.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15614 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 10:20:45 +00:00
Abdelrazak Younes
73ed0b5203 * Painter.h:
* Painter: new ctor that sets drawing_enabled_ to true.
  * setDrawingEnabled(), isDrawingEnabled(): new methods.

* QLPainter.C: only draw if drawing is enabled.

* nullpainter.h: deleted.

* rawpainter.C::paintPar(): only draw if we are inside the Paragraph.

* InsetTabular::draw(): use new Painter method instead of a NullPainter.

* InsetMathNest::drawSelection(): ditto.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15613 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 10:09:59 +00:00
Abdelrazak Younes
2d5ecd2bb8 remove the constness of the two code strings because this does not pass boost_concept_check with gcc-3.3.4-11:
g++ -/usr/include/g++/bits/boost_concept_check.h: In member function `
   lyx::IconvProcessor& lyx::IconvProcessor::operator=(const
   lyx::IconvProcessor&)':
/usr/include/g++/bits/boost_concept_check.h:203:   instantiated from `void __gnu_cxx::_SGIAssignableConcept<_Tp>::__constraints() [with _Tp = lyx::IconvProcessor]'
/usr/include/g++/bits/stl_map.h:94:   instantiated from `std::map<std::string, lyx::IconvProcessor, std::less<std::string>, std::allocator<std::pair<const std::string, lyx::IconvProcessor> > >'
unicode.C:281:   instantiated from here
/usr/include/g++/bits/boost_concept_check.h:203: error: non-static const member
   `const std::string lyx::IconvProcessor::tocode_', can't use default
   assignment operator
/usr/include/g++/bits/boost_concept_check.h:203: error: non-static const member
   `const std::string lyx::IconvProcessor::fromcode_', can't use default
   assignment operator


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15612 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 09:36:33 +00:00