Bug 57555 - No space before "Style" at page start
Summary: No space before "Style" at page start
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-22 14:43 UTC by Pascal Niklaus
Modified: 2007-04-01 09:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
testcase for OOo (7.23 KB, application/vnd.oasis.opendocument.text)
2006-05-17 13:04 UTC, David Faure
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Niklaus 2003-04-22 14:43:40 UTC
Version:           1.2.90 (using KDE 3.1.1)
Installed from:    compiled sources
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB-athlon

Select style "HEADING" and insert a page brake before line

--> There's a space between the top page margin and the heading

In my opinion (I'm probably M$ biased), this space (Paragraph space - Before (mm) in Style manager) should be removed when the line is on a new page, but it isn't.

If this isn't a bug, the default HEADING style should be redefined so that it doesn't have a "space before".

Pascal
Comment 1 David Faure 2003-04-27 22:08:01 UTC
Subject: Re:  New: No space before "Style" at page start

On Tuesday 22 April 2003 14:43, you wrote:
> In my opinion (I'm probably M$ biased), this space (Paragraph space - Before (mm) in Style manager) should be removed when the line is on a new page, but it isn't.
Special cases are always confusing, when things don't work the way you specify...

> If this isn't a bug, the default HEADING style should be redefined so that it doesn't have a "space before".
There is no style called HEADING in the templates provided by KWord.
The styles are called "Head 1", "Head 2" etc. and there is no "space before"
associated with them.
Where does your HEADING style come from?

Comment 2 Pascal Niklaus 2003-04-28 09:36:36 UTC
>Where does your HEADING style come from? 

Hmmm, I see, this HEADING then was imported from M$ Word via OpenOffice Writer
and RTF export. But the question remains, if there's a style with a "space
before">0, should it be ignored at the start of the page? I think it should.

Pascal
Comment 3 David Faure 2003-04-28 12:52:12 UTC
Subject: Re:  No space before "Style" at page start

On Monday 28 April 2003 09:36, you wrote:
> Hmmm, I see, this HEADING then was imported from M$ Word via OpenOffice Writer
> and RTF export. But the question remains, if there's a style with a "space
> before">0, should it be ignored at the start of the page? I think it should.

Does OOWriter do that?

Comment 4 Pascal Niklaus 2003-04-28 13:50:36 UTC
>Does OOWriter do that? 

Yes, OOWriter removes the top spacing/margin if the line is at the start of the
page. M$Word does the same.

So KWord should probably do the same ;-)

Pascal
Comment 5 David Faure 2003-05-02 11:39:17 UTC
Subject: koffice

CVS commit by faure: 

Don't apply top margin at top of page (or after any break, e.g. skipping a frame).
Apparently OOo and MSWord do this too.
(Technically this means applying adjustFlow() on the breakable part of the top margin)

I wonder what happens with "bottom of margin" (of previous paragraph), can it get truncated,
too, so that the next parag is at the top of the next page?
(Can't test, my OOo is currently broken, shows no font at all even in the GUI,
so the menus are unreadable...)

CCMAIL: 57555-done@bugs.kde.org


  M +33 -23    kword/kwtextframeset.cc   1.706
  M +3 -1      kword/kwtextframeset.h   1.236
  M +22 -3     lib/kotext/kotextformatter.cc   1.59
  M +8 -0      lib/kotext/kotextparag.cc   1.161
  M +4 -0      lib/kotext/kotextparag.h   1.35



Comment 6 David Faure 2006-05-17 13:03:34 UTC
Hmm I just tested both OOo and msword, and they both apply the top margin even on the first paragraph of a page. I shouldn't trust what people tell me....

Can you have another look and confirm? Either we're testing something different, or both OOo and msword have changed, which is doubtful....
Comment 7 David Faure 2006-05-17 13:04:33 UTC
Created attachment 16137 [details]
testcase for OOo
Comment 8 Thomas Zander 2007-04-01 09:12:01 UTC
The way this works now (in KWord2 at least) is the following
A paragraph at start of page with:
 * style with paragraph space before is show at page top
 * paragraph-specific settings for space before is honoured
 * style with space before AND the boolean to show it on a new page is honoured.  In the case that both the format and the style have space before; the one from the paragraph is used regardless.

I consider this bug fixed.