I dropped the new patch on #3205, so that we don't forget about it.
T.
Il 22/07/2011 06:22, Tommaso Cucinotta ha scritto:
Hi all,
I just reworked the patch on the current trunk, plus I added a few
desirable things:
-) Insert->External Material...-> enter filename (e.g., foo.dia or
foo.ods or foo.gnumeric), press Create and you get an empty template;
-) type a file-name with an extension, and the template type is
inferred from the dropdown box, if the extension is recognized;
-) choose a different template from the drop-down, and the file-name
extension is automatically inferred;
-) each template may be associated with a list of different sample
filenames and associated extensions;
for example, in the gnumeric section of external_templates:
Sample "sample.gnumeric,sample.ods"
The only thing that is missing, is that I'D LOVE HAVING THIS FOR
INSERT->FIGURE. Indeed, if I use it for inserting DIA figures etc.,
then I get a poorer properties pane (e.g., rotation, size on paper and
on screen, etc.). Furthermore, the image is not previewed.
Instead, if I use Insert->Figure, then I don't have this new feature
that I really like :-).
Anyone willing to give it a try ?
Bye,
T.
Il 24/04/2011 23:31, Tommaso Cucinotta ha scritto:
Il 23/04/2011 23:48, Tommaso Cucinotta ha scritto:
I say "preliminary" because things that one may want to add are:
-) launch also the editor, when you press "Create..."
-) add another "Edit..." button for launching the external editor
-) better control of *where* the new file is created (in the patch
it is the current folder, but I guess I should use the folder of the
".lyx" file I'm inserting into (how to get that ?)
-) possibility to use different empty template files, and to specify
which one we want (e.g., for images, .png, .svg, .dia, ...).
I forgot to mention:
-) instead of the "Create" button, detect the non-existent file on
dialog "Ok" button, and query the user if the file doesn't exist
-) self-detect the format of the new file from the provided filename
extension, if present, instead of relying on the choice Combo (it's a
burden to have to select "Dia" *and* provide a file-name like
"mydrawing.dia" -- the latter just includes the former info).
T.