Issue 68838 - loosing ScPostIts ...
Summary: loosing ScPostIts ...
Status: CONFIRMED
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: 680m182
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-21 16:29 UTC by mmeeks
Modified: 2017-05-20 11:31 UTC (History)
2 users (show)

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


Attachments
test file (7.51 KB, application/vnd.oasis.opendocument.spreadsheet)
2006-08-21 16:30 UTC, mmeeks
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mmeeks 2006-08-21 16:29:34 UTC
Load the attached, select A1->A3, copy, create new document -> Paste,
Save As-> 'foo.ods', close -> re-open:

Notice the postits are now lost; it works fine if you move them around the same
document; and they are rendered nicely before you save ;-)

Chasing the issue - I expect to solve it as part of my (pending) ScPostIt re-work.
Comment 1 mmeeks 2006-08-21 16:30:09 UTC
Created attachment 38682 [details]
test file
Comment 2 mmeeks 2006-08-21 17:19:20 UTC
ScXMLExport::WriteAnnotation is called, but rMyCell.xNoteShape == null.
this is because:
   ScXMLExport::CollectShapesAutoStyles 'HasDrawPage' == false
   this is because
      ScXMLExport::CollectSharedData 'HasDrawPages' == false
which in turn comes down to:
xDocProps->getPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNO_HASDRAWPAGES)))
Comment 3 mmeeks 2006-08-22 15:18:48 UTC
If you export to .xls it's fine.

The code should IMHO force the creation of the drawing layer by using the
XSheetAnnotationShapeSupplier - which is great if we call eg. ::getPosition on
the ScAnnotationShape:: object - it will remove the need to cut/paste that great
block of code.

Then again the code in ScXMLExport::CollectShapesAutoStyle is littered with 
unused code & this block of cut/paste - looks rather sub-optimal; still thinking.
Comment 4 Marcus 2017-05-20 11:31:28 UTC
Reset assigne to the default "issues@openoffice.apache.org".