]> 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)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 26 Mar 2019 12:43:33 +0000 (13:43 +0100)
commit683b3a05e2901f2e036bf1b2c873347fa0eb0434
treecd6064eedf895a88be4c17dcdaf23d173afc9536
parent2ed3b22a0674ced6a16a9d2d6be9655b988b95a0
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