Commit Graph

36 Commits

Author SHA1 Message Date
Georg Baum
b02242bfaf Rework InsetCommandParams interface and file storage
* src/insets/insetcommandparams.[Ch]:
	(operator[]): New, access a parameter
	(clear): New, clear all parameters
	(info_): New, stire info about this command
	(cmdname): Rename to name_
	(contents, options, sec_options): Replace with params_. Parameters
	are now stored as docstring.
	(findInfo): New factor for command info for all commands
	(read, write): Use new syntax
	(parameter set and get methods): reimplemenmt for new parameter storage

	* src/insets/insetcommand.h
	(getParam): New, get a parameter
	(setParam): New, set a parameter
	(parameter set and get methods): Adjust to InsetCommandParams changes

	* src/insets/insetbibitem.[Ch]
	(write): Remove, not needed anymore
	(directWrite): ditto

	* src/insets/insetbibitem.C
	(InsetBibitem::read): Use InsetCommand::read

	* src/insets/insetref.C
	(InsetRef::latex): Use new InsetCommandParams interface

	* src/mathed/InsetMathHull.C
	(InsetMathHull::doDispatch): ditto

	* src/text3.C
	(LyXText::dispatch): ditto

	* src/factory.C
	(createInset): Create InsetCommandParams with command name
	(readInset): ditto
	(readInset): Remove error message for bibitem, since bibitem is
	now a normal command inset

	* src/buffer.C: Bump file format number

	* src/frontends/controllers/ControlCommand.[Ch]
	(ControlCommand): take an additional command name parameter

	* src/text.C
	(readParToken): Remove code for \bibitem

	* lib/lyx2lyx/LyX.py: Bump latest file format number

	* lib/lyx2lyx/lyx_1_5.py
	(convert_bibitem, convert_commandparams): new, convert to new format
	(revert_commandparams): new, convert to old format

	* development/FORMAT: document new format

	* many other files: Adjust to the changes above


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15357 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-17 21:07:16 +00:00
Georg Baum
a70b4ef051 refine the logic for checking whether a dialog may apply its data or not
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9874 a592a061-630c-0410-9148-cb99ea01b6c8
2005-04-26 09:37:52 +00:00
Angus Leeming
2a31934f38 Wrap most of the frontend code up inside namespace lyx::frontend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8766 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-19 15:11:37 +00:00
Angus Leeming
fd355bbb2f Remove a whole heap of redundant functions from classes derived from
InsetCommand.
Clean-up many Mailer::string2params functions.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8233 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-11 15:23:15 +00:00
Lars Gullik Bjønnes
44cd0fc9a1 The std::string mammoth path.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7862 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-06 15:43:21 +00:00
Angus Leeming
4348674beb Small clean-up.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7795 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-18 22:26:46 +00:00
Angus Leeming
97035ea00a Another 49 #includes bite the dust.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7681 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 15:31:19 +00:00
Angus Leeming
0be0fcfd59 If I ever see another licence blurb again, it'll be too soon...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7598 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-23 00:17:00 +00:00
Angus Leeming
0de182f257 * Give Dialog::Controller::initialiseParams a bool return type.
* Constify many ButtonController/View methods.
* Try and document the code ;-)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6495 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-14 00:20:42 +00:00
Angus Leeming
ede9561daa Collapse all those LFUN_XYZ_APPLY to a single LFUN_INSET_APPLY.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6293 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-27 13:26:07 +00:00
Angus Leeming
cda53633ff Hold on to your hats.
Qt users should autogen.sh
Gnome users --- you're on your own ;-)
Happy recompiling.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6253 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-25 14:51:38 +00:00
Lars Gullik Bjønnes
99d1627a47 dont use pragma impementation and interface anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6138 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-13 16:53:15 +00:00
Angus Leeming
1eb8155fa0 This file is part of LyX, the document processor.
Licence details can be found in the file COPYING.

and thank God for sed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5211 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-05 15:14:23 +00:00
Angus Leeming
6fac1dc980 Really dull and boring header shit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5210 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-05 14:10:50 +00:00
Angus Leeming
c265d16ed0 Nothing but a changed email address (trying to factor my tree in in small steps)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4998 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-15 16:02:22 +00:00
Angus Leeming
ca26056e2a * Throw out DialogBase.h
* Only #include what's needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4979 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-14 19:19:47 +00:00
Angus Leeming
9681e21dae * Constify Buffer::getLabelList.
* reduce file dependencies of the controllers on the core.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4947 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-12 20:17:41 +00:00
André Pönitz
b8198905dc the FuncRequest changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4887 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-07 08:11:41 +00:00
Lars Gullik Bjønnes
3005c47180 handle some tmpl files in a more sane way
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4355 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-10 17:33:05 +00:00
Lars Gullik Bjønnes
1e39473100 Switch from SigC signals to boost::signals
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4281 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-29 16:21:03 +00:00
John Levon
435d527581 guii2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4190 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-23 12:08:47 +00:00
Lars Gullik Bjønnes
f7ba7c8e9f ws cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3806 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-21 21:21:28 +00:00
Angus Leeming
ec8da0035d The reducing file dependencies in the frontends patch.
Ok, Ok, I know this touches a lot of files, but the benefits are worth the
huge re-compilation now. Trust me. Would I lie to you?

Actually, this also fixes a bug in ControlInset, so you'd have had to
recompile 31 files anyway. Happy now?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3391 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-16 14:47:58 +00:00
Lars Gullik Bjønnes
efe0b0b8eb Dispatch->dispatch, some trans work
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2254 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-16 15:42:57 +00:00
Lars Gullik Bjønnes
d1182f17da LyX Drinkers Union: patch 1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2141 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-25 00:06:33 +00:00
Angus Leeming
467323b2b8 Removed // -*- C++ -*- from all .C files!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2121 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-13 15:11:17 +00:00
Angus Leeming
0c2a3e5960 Added // -*- C++ -*- to the top of all files in controllers/ and xforms/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2118 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-13 14:33:31 +00:00
Angus Leeming
697a0d48b5 Move included files out of .h files and into .C files. Means that the
GUI-specific views no longer depend on LyXView.h etc, etc.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1959 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-26 18:40:38 +00:00
Lars Gullik Bjønnes
ec57ed1e96 call message more directly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1951 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-24 17:33:01 +00:00
Angus Leeming
24cc3e5be3 Fixed "can't create new inset" bug. Described dialogs' control loop in
controllers/README.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1825 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-26 08:14:39 +00:00
Angus Leeming
127265cc83 controller-view split for Url popup.
Something has gone wrong with the creation of new insets from the
menu, but this commit squashes a couple of minor bugs.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1818 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-23 18:46:11 +00:00
Angus Leeming
9705be9f1b Implemented controller-view split for FormError and FormInclude.
Cleaned up code in controllers in the process; I think that the interface
is stabilising now.
Cleaned up code in InsetInclude a little.

Mental note (to me?!): the Bibitem, Bibtex and Include insets create an
inset when the appropriate menu item is selected. This is incorrect;
the inset should only be created when "Ok" is pressed, as with the
majority of insets. CREATE_XXX flags and associated code are needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1817 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-23 17:09:34 +00:00
Angus Leeming
8a4455d459 Reorganised, cleaned-up and improved documentation of controllers.
Implemented controller-view split for Copyright and Credits popups.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1803 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-22 11:24:36 +00:00
Angus Leeming
a12309c76b Implementation of controller-view split for FormCharacter.
Some small clean-ups of code in frontends/controllers and frontends/xforms.
Added size_type and size() to Languages in language.h


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1798 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-21 13:27:03 +00:00
Angus Leeming
9f29ab3aa5 controller-view split of FormLog and FormVCLog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1796 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-20 10:14:03 +00:00
Angus Leeming
9c36dd0f40 Merging BRANCH_MVC back into HEAD.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1770 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-15 13:37:04 +00:00