The current autoformat taken 'Default Style' table style needs to be renamed and a new table style that looks like what is currently generated when you insert a table into LibreOffice needs to be the new 'Default Style'.
So the default table style isnt stored in the autotbl.fmt file but is stored in code, so we need to modify this style to appear similar to what tables normally appear like when they are inserted, but with better defaults.
So borders should be on and have a line width of 0.5pt (bug 99027).
The only thing remaining is to decide on what the best cell padding (aka margins) should be. Here is the comparison.
LibreOffice, Softmaker - 10cm
Calligra, Google - 18cm
Word - 19cm (left, right) and 0cm (top, bottom)
WordPerfect - 21cm (top, left, right) and 10cm (bottom)
Heiko, Stuart, Andreas, Cor, Regina: What is your preference?
iWork Pages cell spacing - 14cm
Created attachment 137570 [details]
demo test file with various examples
I would choose for WordPerfect – 0,21cm (not 21 cm)
Looks best. But then "synchronize" should be off by default ;)
Word is ugly. LibreOffice current is fine. iWork pages too.
The units are 0.10 / 0.14 / 0.20cm etc. I would keep 0.10cm (or use WordPrefect with more left/right marings) because tables are usually a compact layout of data, at least for the academic purpose. In case of a stylish layout (blue/green/red/yellow box) it makes sense to have more room like Calligra's 0.18cm.
left/right 0.20 cm
top/bottom 0.10 cm
Patch is in without the adjustment of the cell padding
If the cell padding is to be changed, i could change it for all sides, but a real dev would have to change it if it needs different values for different sides.
Jim: code pointer :D
(In reply to Yousuf Philips (jay) from comment #6)
> Patch is in without the adjustment of the cell padding
> If the cell padding is to be changed, i could change it for all sides, but a
> real dev would have to change it if it needs different values for different
> Jim: code pointer :D
SvxBoxItem has the SetDistance method which can be used to set inward distances individually.
ex. aBox.SetDistance(110, SvxBoxItemLine::LEFT)
Yousuf Philips committed a patch related to this issue.
It has been pushed to "master":
tdf#107554 New default table style
It will be available in 6.0.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
(In reply to Jim Raykowski from comment #7)
> SvxBoxItem has the SetDistance method which can be used to set inward
> distances individually.
> ex. aBox.SetDistance(110, SvxBoxItemLine::LEFT)
Thanks Jim. Will use it when a final decision is made on the spacing.
(In reply to andreas_k from comment #5)
> left/right 0.20 cm
> top/bottom 0.10 cm
I support this. More horizontal space is better, then the content seems not to be too close to the border. Vertical space is rare, so 0.10 cm looks not space-consuming.
So i ran a twitter poll asking 'How much cell padding/margins should text have in tables?' and there were 102 votes - 0.10cm (70%), 0.14cm (16%), 0.20cm (14%), 0.18cm (1%).
Heiko, this enh is fixed or not?
(In reply to Roman Kuznetsov from comment #12)
> Heiko, this enh is fixed or not?
Don't think so as the OP, Jay, didn't finish. But he retired and therefore the request is obsolete. Let's close the ticket.
I tested now a default table and all are 0,10 cm.
Build ID: a187af327633f5f00363be5131bd21a13e0f1a7b
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US