Bug 63436

Summary: Support for ODF fields as written by KWord
Product: LibreOffice Reporter: Jan Holesovsky <kendy>
Component: WriterAssignee: George Bateman <george.bateman16>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: dennisroczek, george.bateman16, libreoffice
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard: EasyHack DifficultyInteresting SkillCpp
i915 platform: i915 features:

Description Jan Holesovsky 2013-04-11 16:18:42 UTC
See the bugreport from AOO bugzilla:

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

We do not support this; but should be reasonably straight-forward to implement.

In essence, you need to make sure that in SvxFieldData::Create() from editeng/source/items/flditem.cxx, none of the xPropSet->getPropertyValue(...); throws.

To achieve that, you want to extend the XMLSenderFieldImportContext::PrepareField() from xmloff/source/text/txtfldi.cxx so that it fills all the appropriate properties during load, like for example:

aAny <<= text::textfield::Type::EXTENDED_TIME;
rPropSet->setPropertyValue(UNO_TC_PROP_TEXTFIELD_TYPE, aAny);

for date/time.
Comment 1 Björn Michaelsen 2013-10-04 18:48:07 UTC
adding LibreOffice developer list as CC to unresolved EasyHacks for better visibility.

see e.g. http://nabble.documentfoundation.org/minutes-of-ESC-call-td4076214.html for details
Comment 2 Björn Michaelsen 2014-12-02 10:53:12 UTC
adding LibreOffice developer list as CC to unresolved Writer EasyHacks for better visibility.

see e.g. http://nabble.documentfoundation.org/minutes-of-ESC-call-td4076214.html for details
Comment 3 George Bateman 2014-12-19 19:14:23 UTC
I cannot reproduce the bug on Ubuntu 14.04, 64-bit. Both files attached in the AOO report open fine on a freshly built copy of LO, and on my OS-supplied copy, "Version 4.2.7.2, Build ID 420m0(Build:2)".
Should this be closed?
Comment 4 Dennis Roczek 2014-12-22 15:45:37 UTC
Well, not really. The "import" works (not crash), but there are two bookmarks in the aoo bug document. 

1) called "Bezugszeichen"
and
2) called "Anrede"

Anrede is shown in the navigator, but the Bezugszeichen-Bookmark which is located before the date "7. Oktober 2005" is not visible in the navigator.
Comment 5 George Bateman 2014-12-23 15:46:45 UTC
OK, I see. Can I take this bug?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.