lyx_mirror/src/frontends/xforms/forms
André Pönitz 69fae0531d * lfuns.h: new LFUN_REPEAT, LFUN_INSERT_LINE, LFUN_INSERT_PAGEBREAK
* factory.C: handle new InsetPagebreak, InsetLine

	* ParagraphParameters.h: remove [line|pagebreak]_[above|below]
	and move handling into new InsetPagebreak, InsetLine

	* BufferView_pimpl.C:
	* LyXAction.C:
	* ParagraphParameters.C:
	* ParameterStruct.h:
	* lyxfunc.C:
	* lyxtext.h:
	* paragraph.C:
	* paragraph.h:
	* paragraph_funcs.C:
	* paragraph_pimpl.C:
	* rowpainter.C:
	* text.C:
	* text2.C:
	* text3.C: adjust

etc


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7985 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-27 12:41:26 +00:00
..
.cvsignore better lib building 2003-05-08 18:05:07 +00:00
fdfix.sh The std::string mammoth path. 2003-10-06 15:43:21 +00:00
fdfixc.sed POSIX-compliant sed. 2003-09-15 08:12:13 +00:00
fdfixh.sed POSIX-compliant sed. 2003-09-15 08:12:13 +00:00
form_aboutlyx.fd Port the About LyX dialog to the Dialog scheme. 2003-03-09 20:29:58 +00:00
form_bibitem.fd Hold on to your hats. 2003-02-25 14:51:38 +00:00
form_bibtex.fd Revert, revert, revert. Sorry about that, y'all. 2003-09-03 17:40:58 +00:00
form_box.fd The Box patch 2003-10-07 07:42:15 +00:00
form_branch.fd The 'Branches' mega-patch. 2003-08-17 11:28:23 +00:00
form_browser.fd port the various dialogs to display the contents of an external file to the new Dialog-based scheme 2003-03-25 18:13:46 +00:00
form_changes.fd Rob's changes patch 2003-03-14 11:31:07 +00:00
form_character.fd The new combox code. 2003-04-02 14:20:30 +00:00
form_citation.fd Hold on to your hats. 2003-02-25 14:51:38 +00:00
form_colorpicker.fd A color picker for xforms. 2003-07-23 15:36:40 +00:00
form_document.fd The 'Branches' mega-patch. 2003-08-17 11:28:23 +00:00
form_errorlist.fd the errorlist change 2003-05-13 21:15:48 +00:00
form_ert.fd Hold on to your hats. 2003-02-25 14:51:38 +00:00
form_external.fd Add transformations to InsetExternal. 2003-10-07 22:59:58 +00:00
form_filedialog.fd
form_float.fd Move the float dialog to the new scheme. 2003-03-05 19:46:08 +00:00
form_forks.fd (Rob Lahaye): prettify a couple of dialogs; use float_equal. 2003-02-27 09:21:15 +00:00
form_graphics.fd Tiny clean up. 2003-09-29 21:40:13 +00:00
form_include.fd Move the include dialog to the new scheme 2003-03-05 14:59:37 +00:00
form_maths_delim.fd Move 4 of the xforms math (sub) dialogs to the new scheme. 2003-06-17 10:30:38 +00:00
form_maths_matrix.fd Move 4 of the xforms math (sub) dialogs to the new scheme. 2003-06-17 10:30:38 +00:00
form_maths_panel.fd Move xforms' Maths Panel to the new scheme. 2003-06-17 12:53:35 +00:00
form_maths_space.fd Move 4 of the xforms math (sub) dialogs to the new scheme. 2003-06-17 10:30:38 +00:00
form_maths_style.fd Move 4 of the xforms math (sub) dialogs to the new scheme. 2003-06-17 10:30:38 +00:00
form_minipage.fd port the minipage dialog to the new scheme. Various other small changes 2003-03-07 14:08:10 +00:00
form_note.fd Extend Note inset to other forms of annotation like Comment 2003-07-08 14:19:25 +00:00
form_paragraph.fd * lfuns.h: new LFUN_REPEAT, LFUN_INSERT_LINE, LFUN_INSERT_PAGEBREAK 2003-10-27 12:41:26 +00:00
form_preamble.fd
form_preferences.fd A color picker for xforms. 2003-07-23 15:36:40 +00:00
form_print.fd Michael's text fixes 2003-01-23 16:23:43 +00:00
form_ref.fd Hold on to your hats. 2003-02-25 14:51:38 +00:00
form_search.fd Minor bits 'n' bobs from Michael, J�rgen and Jean-Marc. 2003-01-06 14:02:24 +00:00
form_sendto.fd Michael's text fixes 2003-01-23 16:23:43 +00:00
form_spellchecker.fd spell rework. revert fix 2003-02-17 18:40:04 +00:00
form_tabular_create.fd Port the TabularCreate dialog to the Dialog scheme. 2003-03-09 19:34:46 +00:00
form_tabular.fd Michaels patch 2003-08-18 12:57:30 +00:00
form_texinfo.fd Move the Texinfo dialog to the new Dialog scheme. 2003-06-19 17:16:12 +00:00
form_text.fd A real, LyX label dialog. Part 2: xforms. 2003-02-27 16:29:28 +00:00
form_thesaurus.fd port the thesaurus dialog to the new scheme 2003-03-26 12:17:20 +00:00
form_toc.fd Hold on to your hats. 2003-02-25 14:51:38 +00:00
form_url.fd Hold on to your hats. 2003-02-25 14:51:38 +00:00
form_wrap.fd Port wrap dialog to the new scheme. 2003-03-05 23:19:45 +00:00
Makefile.am The Box patch 2003-10-07 07:42:15 +00:00
README The new combox code. 2003-04-02 14:20:30 +00:00
tmp_str.sed POSIX-compliant sed. 2003-09-15 08:12:13 +00:00

All .fd files go in this directory.
Each .fd file should have just one form in them

NOTE: An exception to the above is any tabbed form which 
      xforms requires multiple forms to create.  In that case
      the group of forms constitutes one gui form.

* All forms should be named form_xxx and saved into a file of the same name.
For example, the copyright notice is called form_copyright and is stored in
form_copyright.fd.
Tabbed folders should be named form_xxx_yyy.
For example, the file folder in the graphics dialog has the identifier
form_graphics_file.

If you match this pattern, the fdfix.sh script will be able to manipulate
the generated .c and .h files to produce the .C and .h files used by LyX. A form
called form_xxx will result in a struct FD_xxx.

* Name all buttons and other form components that are likely to cause a
callback. The names should be of the form:  button_ok, radio_group_item and
so on.

Being more explicit:
	class             | prefix
	------------------+-------
	FL_BROWSER        | browser
	FL_BUTTON         | button
	FL_PIXMAPBUTTON   | button
	FL_CHECKBUTTON    | check
	FL_CHOICE         | choice
	FL_COUNTER        | counter
	FL_DIAL           | dial
	FL_INPUT          | input
	FL_FRAME          | frame
	FL_LABELFRAME     | frame
	FL_ROUND3DBUTTON,
	RADIO_BUTTON      | radio
	FL_SLIDER         | slider
	FL_VALSLIDER      | slider
	FL_TABFOLDER      | tabfolder
	FL_TEXT           | text

The only exceptions to this are objects that are to be converted in the sed
scripts. At the moment this applies only to bmtable and to combox:

	Convert an FL_BUTTON to a FL_BMTABLE by using prefix "bmtable".
	Convert an FL_CHOICE to a FL_COMBOX by using prefix "combox".

Enter the full name of the callback eg.:
        C_FormBaseOkCB

If you follow these simple rules then you will generate code for functions
build_xxx that will need no further editing to make them work. For example,
form_graphics.h contains the struct declarations and build methods, so:

extern FD_graphics * build_graphics(void *);
extern FD_graphics_file * build_graphics_file(void *);
extern FD_graphics_size * build_graphics_size(void *);
extern FD_graphics_bbox * build_graphics_bbox(void *);
extern FD_graphics_special * build_graphics_special(void *);
extern FD_graphics_lyxview * build_graphics_lyxview(void *);

where the function is to be passed a pointer to the parent dialog
(usually "this") so that this pointer can be cast off to FormBase * in the
assigned callback function and the appropriate class method called.