]> git.lyx.org Git - features.git/commit
Introducing table templates
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 26 Mar 2019 12:43:33 +0000 (13:43 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:21 +0000 (15:48 +0200)
commitef55689c5927affb5b49e1407748ccdc64fe96ac
treec7edb53f09bf199b0f92a2c2b5c485b506e93981
parent81839cd2198788111a084925a3a1e3e95c80747d
Introducing table templates

The idea is simple: we insert a pre-formatted table (with a given border
style currently, but other attributes are possible as well) via file-insert
and scale it then to the requested size.

We need three sizes (1x1, 1x2 and 1x3) to generate all sizes properly (due
to border specifications).

Currently, these styles can only be accessed via lfun tabular-style-insert
and the Tabular Create dialog.

My plan is to add a buffer param to set a default style (#9901) which then
also is respected by the toolbar button and probably a layout tag to let
classes specify a default style (#8360).
21 files changed:
lib/Makefile.am
lib/tabletemplates/Formal.lyx [new file with mode: 0644]
lib/tabletemplates/Formal_1x1.lyx [new file with mode: 0644]
lib/tabletemplates/Formal_1x2.lyx [new file with mode: 0644]
lib/tabletemplates/Grid_with_Head.lyx [new file with mode: 0644]
lib/tabletemplates/Grid_with_Head_1x1.lyx [new file with mode: 0644]
lib/tabletemplates/Grid_with_Head_1x2.lyx [new file with mode: 0644]
lib/tabletemplates/No_Borders.lyx [new file with mode: 0644]
lib/tabletemplates/No_Borders_1x1.lyx [new file with mode: 0644]
lib/tabletemplates/No_Borders_1x2.lyx [new file with mode: 0644]
lib/tabletemplates/Simple_Grid.lyx [new file with mode: 0644]
lib/tabletemplates/Simple_Grid_1x1.lyx [new file with mode: 0644]
lib/tabletemplates/Simple_Grid_1x2.lyx [new file with mode: 0644]
po/Rules-lyx
po/lyx_pot.py
src/FuncCode.h
src/LyXAction.cpp
src/Text3.cpp
src/frontends/qt4/GuiTabularCreate.cpp
src/frontends/qt4/GuiTabularCreate.h
src/frontends/qt4/ui/TabularCreateUi.ui