On Tue, Jun 17, 2003 at 09:33:56AM +0000, Angus Leeming wrote:
> I have hit a small nastiness when trying to replace the LFUNs below with a
> single LFUN_DIALOG_SHOW <name>. They all have different "attrib"s, Noop,
> NoBuffer, etc.
>
> Replace these
> { LFUN_DIALOG_PREFERENCES, "dialog-preferences", NoBuffer },
> { LFUN_FORKS_SHOW, "show-forks", NoBuffer },
> { LFUN_HELP_ABOUTLYX, "help-aboutlyx", NoBuffer },
> { LFUN_HELP_TEXINFO, "help-Texinfo", NoBuffer },
> { LFUN_LATEX_LOG, "latex-view-log", ReadOnly },
> { LFUN_LAYOUT_CHARACTER, "layout-character", ReadOnly },
> { LFUN_LAYOUT_DOCUMENT, "layout-document", ReadOnly },
> { LFUN_LAYOUT_PREAMBLE, "layout-preamble", ReadOnly },
> { LFUN_MATH_PANEL, "math-panel", Noop },
> { LFUN_MENUPRINT, "buffer-print", ReadOnly },
> { LFUN_MENUSEARCH, "find-replace", ReadOnly },
> { LFUN_SPELLCHECK, "spellchecker", Noop },
> { LFUN_VC_HISTORY, "vc-history", ReadOnly },
> with this
> { LFUN_DIALOG_SHOW, "dialog-show", Argument },
>
> This information is overridden by the single Argument attrib, but I wonder
> if we should devise some extra machinery to preserve the lost info? Eg, add
> something like this to LyXAction::init:
What do these flags mean anyway?
'NoBuffer' -> LFUN can be used without buffer?
'ReadOnly' -> LFUN can not be used in ro docs?
'Noop' -> ?
> std::map<string, unsigned int> takesarg_attribs;
> takesarg_attribs["dialog-show preferences"] = NoBuffer;
> takesarg_attribs["dialog-show forks"] = NoBuffer;
> takesarg_attribs["dialog-show aboutlyx"] = NoBuffer;
> takesarg_attribs["dialog-show texinfo"] = NoBuffer;
> takesarg_attribs["dialog-show latexlog"] = ReadOnly;
> takesarg_attribs["dialog-show character"] = ReadOnly;
> takesarg_attribs["dialog-show document"] = ReadOnly;
> takesarg_attribs["dialog-show preamble"] = ReadOnly;
> takesarg_attribs["dialog-show mathpanel"] = Noop;
> takesarg_attribs["dialog-show print"] = ReadOnly;
> takesarg_attribs["dialog-show findreplace"] = ReadOnly;
> takesarg_attribs["dialog-show spellchecker"] = Noop;
> takesarg_attribs["dialog-show vc-history"] = ReadOnly;
*shrug* it some how looks like this could be an attribute of the dialog
classes?
Andre'
--
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)