Issue 118772

Summary: Users' styles can not be transferred with copy / paste to another drawing
Product: Draw Reporter: Li Lin Yi <lilinyi921734>
Component: formattingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Major    
Priority: P5 (lowest) CC: Armin.Le.Grand, issues, mark
Version: 3.4.0 Beta (OOo)   
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Li Lin Yi 2012-01-12 05:49:10 UTC
Steps to Reproduce:
1. Start OpenOffice.org Draw.
2. Draw a shape, such as rectangle.
3. Change the color to yellow.
4. Select shape again, press <F11> to open "Styles and Formatting" dialog.
5. On the top of the dialog click icon "New Style from Selection", and the "Create Style" dialog appears.
6. Type Style name "y" and click OK, the new style "y" will be listed.
7. Select the rectangle again and Menu Edit -> Copy.
8. Menu File -> New -> Drawing, and a new Draw document appears.
9. Click somewhere in the document, then Menu Edit -> Paste.

Actual Results: 
The rectangle appears, but it is blue. <F11> to check "Styles and Formatting" dialog, there is no "y" style.

Expected Results:
The rectangle should be yellow, and the new "y" style should be copied to the new draw document.

Build Date & Platform:
Build revision 1228147, on SUSE Linux Enterprise Desktop 11(i586)
Comment 1 Armin Le Grand 2012-02-06 12:11:25 UTC
ALG: Happens as described. A short check of SdrExchangeView::GetMarkedObjModel() (used when copying) and SdrExchangeView::Paste (used when pasting) shows that indeed styles are not taken into account. This is a missing feature.