Issue 172 - Word/Open Office compatibility: Hanging Indents
Summary: Word/Open Office compatibility: Hanging Indents
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: 609
Hardware: PC Windows ME
: P3 Trivial with 3 votes (vote)
Target Milestone: ---
Assignee: andreas.martens
QA Contact: issues@www
Keywords: oooqa
Depends on:
Reported: 2000-11-18 16:33 UTC by issues@www
Modified: 2013-08-07 14:38 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

word 2000 presentation showing problem (32.00 KB, application/octet-stream)
2003-12-06 14:52 UTC, issues@www
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description issues@www 2000-11-18 16:33:55 UTC
The attached file shows differences between the two systems when handling 
hanging indents.

OpenOffice seems to indent the paragraph further to the right than it should.
Comment 1 issues@www 2000-11-18 16:38:47 UTC
Created attachment 35 [details]
word 2000 presentation showing problem
Comment 2 issues@www 2000-11-18 16:48:09 UTC
SHould be PC
Comment 3 issues@www 2000-11-18 16:49:03 UTC
Should be PC.  Issuezilla changed the selection when I scrolled down!
Comment 4 stefan.baltzer 2000-11-20 11:08:42 UTC
Reassigned to Michael Ruess, our Word filter specialist
Comment 5 michael.ruess 2000-11-23 15:06:41 UTC
Writer adds the indents of paragraph and numbering. Word does not. So the Filter
has to take care of it. Ergo: it´s for KHZ.
Comment 6 michael.ruess 2001-01-25 14:37:05 UTC
This is a conceptional problem of Writer. Writer adds paragraph and numbering
indents, Word does not. To prevent a loss of one of the information when
exporting the document, it is not possible to set one of the indents to 0cm.
Request to our Product Management: What about an Option where the user can
choose whether the indents are added or not, like we have it for distance
between paragraphs ???
Comment 7 falko.tesch 2001-02-20 10:38:20 UTC
This is a bug not an RFE
Comment 8 michael.ruess 2001-02-27 14:54:15 UTC
Also in this case the PM decided to handle it as a bug.
MRU->JP: I don´t know who´s the right adressee for this, so I sent it to you for 
the first.
Comment 9 jp 2001-03-02 17:27:15 UTC
Looks like a problem of recalculation the numbering and paragraph indent.
Comment 10 jp 2001-08-27 17:45:29 UTC
Without changing our core we can import this document 100%. The 
problem is that in WinWord exist on the one hand the paragraph indent 
and the numbing indent and this two values are not always the same. So 
we have the problem to find out the correct one. The next problem is, 
that WinWord starts with the text behind the number but the 
StartWriter always on the left text indent. So in WinWord are often 
inserted a tab to jump to the left indent. But we can't remove always 
the tab, because we don't know if the number is bigger than the space 
or not. And also often, as in this document, after the number is a 
space and a tab. 
So there exist two different concepts with numbering in documents. And 
currently no plans exist to change our core to solve this "little" 
Comment 11 ooo 2004-08-03 13:34:14 UTC
Reopen to reassign.
Comment 12 ooo 2004-08-03 13:36:06 UTC

This is a leftover from Juergen Pingel (issue had status resolved/later and thus
was missed by most queries), maybe fixed by now, please check and close if

Comment 13 thackert 2005-01-01 09:54:55 UTC
I have seen that the last entry was in August ... :(
Has someone - like er has recommended? If so: could this issue be closed please? 
Comment 14 andreas.martens 2005-02-21 11:17:49 UTC
No, it is not fixed until now (src680m78), even we had some improvement in
importing numbering and indents. But this one has to be retargetted to another
OOo version :-(
Comment 15 gerhard_oettl 2005-11-16 16:07:41 UTC
If the value for the first-line property of the paragraph is negative this is
not considered if a numbering is present.
Assume a paragraph with "indent before text" to 1 and "first line" set to -1
(minus 1). Create two paragraphs with this formating - one with and one without
numbering. Set "indent" and "distance to text" in the numbering-position dialog
to zero to have a "clean" environment. After exporting to doc-format and
reimporting, the paragraph with numbering has "indent before text" 1 and "first
line" set to zero (it has lost the minus 1). The paragraph without numbering is
ok with "indent before text" set to 1 and "first line" set to -1 (minus 1) -
nothing gets lost.

A negative first line value in open-office is a hanging indent in ms-word. A
distance to text in open-office numbering is a kind of negative first line value.

Result of some investigations:

oLn_dialog = open-office left-indent-property of numbering-userdialog
oLn = open-office left-indent-property of numbering (in terms of paragraph-handling)
oDn_dialog = open-office distance-to-text-property of numbering-userdialog
oFn = open-office first-line-property of numbering
oLp = open-office left-indent-property of paragraph
oFp = open-office first-line-property of paragraph
wLp = ms-word left indent-property of paragraph
wS_num = numberic-value of ms-word paragraph-indent-special-setting

Translate open-office-terms to ms-word-terms:
Because "left" is used differently in paragraph (left edge of the
following-rows, but not of the first) and numbering-position dialog (left edge
of the first linebut not the following) we first have to do a little internal
oLn_dialog + oDn_dialog => oLn
(negative)oDn_dialog => oFn
and then:
oLn + oLp + oFn + oFp => wLp
oFn + oFp => wS_num
if wS_num is zero: ms-word paragraph-indent-special-setting is "none"
corresponding value is zero.
if wS_num is lower than zero: ms-word paragraph-indent-special-setting is
"hanging indent" and the corresponding value is the positive of wS_num.
if wS_num is greater than zero: [not tested, i concentrated on hanging indents]
ms-word paragraph-indent-special-setting is "first line" and the corresponding
value is wS_num.

I have to confess, that i have not used ms-word for over two years that i am not
firm with the  numbering-dialogs of ms-word2000 and therefore dont know how to
archive this all best in the doc format and how the numbering-settings and
paragraph-settings interact. What i found would mimic the optic (but may be is
not the best way if the document is edited with ms-word) is to do the same (as
littele as now - i used 1.9.125 for my investigations, but because there is no
activity on that issue i think nothing has changed) with the numbering-setting
and set the paragraph-settings to that calculated above. Because the distance
between numbering and text is exported with a tab-character a tabstop has to be
set at the position wLp + oDn_dialog (or the position that is calculated by
"minimum distance between number and text" whatever is higher).

I know it is not that great solution (and dont cover import at all), but it
should be extremly cheep to implement and would allow ms-word-users to see and
print the document as intended and therefore i hope this could be integrated
till a better possibility raises.

Comment 16 jr 2009-06-14 00:03:38 UTC
Checked the testdoc with OOO310m13 and DEV300m50
Hanging indent is now imported correctly

Thanks for your patience! --> resolved fixed
Comment 17 jr 2009-06-14 00:04:30 UTC