You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/05/29 03:57:11 UTC

[Bug 119464] New: [From Symphony]text alignment changed from left to center when importing the docx

https://issues.apache.org/ooo/show_bug.cgi?id=119464

          Priority: P3
            Bug ID: 119464
          Assignee: ooo-issues@incubator.apache.org
           Summary: [From Symphony]text alignment changed from left to
                    center when importing the docx
          Severity: normal
        Issue Type: DEFECT
    Classification: Application
                OS: All
          Reporter: zongdongjun@gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: OOo 3.4 Beta
         Component: formatting
           Product: word processor

Created attachment 77648
  --> https://issues.apache.org/ooo/attachment.cgi?id=77648&action=edit
sample file for this bug

Build:
Aoo3.4

Steps:
1.Open the attachecd sample file in Aoo3.4
2.Check the text alignment on page 1

Bug:
The alignment change to center when open in Aoo3.4

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 119464] [From Symphony]text alignment changed from left to center when importing the docx

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119464

--- Comment #5 from Yolanda Zhang Ying <tl...@gmail.com> ---
Created attachment 77990
  --> https://issues.apache.org/ooo/attachment.cgi?id=77990&action=edit
UT case been tested

The attachment include the UT case for this issues, and I mainly focus on the
Paragraph style with Title and Subtitle, which I fixed in code.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 119464] [From Symphony]text alignment changed from left to center when importing the docx

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119464

--- Comment #6 from Yolanda Zhang Ying <tl...@gmail.com> ---
Root cause:
The default paragraph alignment settings in OOXML is different from AOO's
settings, if no property set in OOXML file for para align, it means align left
been applied, which is center in AOO. 

Solution:
Before we import Title and Subtitle style, we put the para alignment with Left
in, so we can keep the default value for these 2 paragraph styles.

UT:
Please refer to the UT samples in attachment.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 119464] [From Symphony]text alignment changed from left to center when importing the docx

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119464

Yolanda Zhang Ying <tl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #77979|0                           |1
        is obsolete|                            |

--- Comment #3 from Yolanda Zhang Ying <tl...@gmail.com> ---
Created attachment 77987
  --> https://issues.apache.org/ooo/attachment.cgi?id=77987&action=edit
Patch for paragraph alignment issue

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 119464] [From Symphony]text alignment changed from left to center when importing the docx

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119464

Yolanda Zhang Ying <tl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tldyzem@gmail.com

--- Comment #1 from Yolanda Zhang Ying <tl...@gmail.com> ---
In the sample, the issued paragraph been applied with Title style, and the
definition for the Title style use the alignment of Left by default.
And also, in OOXML file, the title style has no <w:jc> settings in style.xml,
which the token represent the alignment property, and no settings means set to
left.
But in AOO, if no <w:jc> information been read from OOXML file, the default
value of center will be applied, so the problem occurred.
So does the Subtitle style.

The possible values of <w:jc> are:
both:  Justified
center: Align Center
left: Align Left
right: Align Right
distribute: Distribute All Characters Equally
highKashida: Widest Kashida Length
lowKashida: Low Kashida Length
mediumKashida: Medium Kashida Length
numTab: Align to list tab
thaiDistribute: Thai Language Justification

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 119464] [From Symphony]text alignment changed from left to center when importing the docx

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119464

mayongl <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |ACCEPTED
                 CC|                            |mayongl@apache.org
           Assignee|ooo-issues@incubator.apache |mayongl@apache.org
                   |.org                        |

--- Comment #8 from mayongl <ma...@apache.org> ---
Review passed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 119464] [From Symphony]text alignment changed from left to center when importing the docx

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119464

--- Comment #2 from Yolanda Zhang Ying <tl...@gmail.com> ---
Created attachment 77979
  --> https://issues.apache.org/ooo/attachment.cgi?id=77979&action=edit
code patch for default paragraph alignment

Code change to solve the problem for default paragraph styles alignment

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 119464] [From Symphony]text alignment changed from left to center when importing the docx

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119464

Yolanda Zhang Ying <tl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #77987|0                           |1
        is obsolete|                            |

--- Comment #4 from Yolanda Zhang Ying <tl...@gmail.com> ---
Created attachment 77988
  --> https://issues.apache.org/ooo/attachment.cgi?id=77988&action=edit
Patch for paragraph alignment issue

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 119464] [From Symphony]text alignment changed from left to center when importing the docx

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119464

yanji.yj@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
                 CC|                            |yanji.yj@gmail.com
     Ever confirmed|0                           |1

--- Comment #7 from yanji.yj@gmail.com ---
reproduced issue

-- 
You are receiving this mail because:
You are the assignee for the bug.