Issue 120766 - XEnumerationAccess.createEnumeration() doesn't show table after drag-n-drop
Summary: XEnumerationAccess.createEnumeration() doesn't show table after drag-n-drop
Status: UNCONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Linux, all
: P3 Normal
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-30 15:26 UTC by pavlok311
Modified: 2013-02-24 21:08 UTC (History)
1 user (show)

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


Attachments
File with table that isn't included in enumeration (30.00 KB, application/msword)
2012-08-30 15:29 UTC, pavlok311
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pavlok311 2012-08-30 15:26:47 UTC
If table is created in Microsoft Office 2010 Word editor, then dragged-and-dropped and saved as '.doc' file this table is not included in XEnumerationAccess.createEnumeration();

Here is the test python code:

        def list_elements(_el):
            if not hasattr(_el, 'createEnumeration'):
                return

            enum = _el.createEnumeration()
            while enum.hasMoreElements():
                new_el = enum.nextElement()
                print 'el = ', new_el.ImplementationName
                list_elements(new_el)

        print 'Element type = ', el.ImplementationName
        list_elements(el)
        print 'Listing finished'


For the file with a table which wasn't dragged-and-dropped the result is:

Element type =  SwXBodyText
el =  SwXTextTable
el =  SwXParagraph
el =  SwXTextPortion
Listing finished

For table which was dragged-and-dropped:

Element type =  SwXBodyText
el =  SwXParagraph
el =  SwXTextPortion
Listing finished
Comment 1 pavlok311 2012-08-30 15:29:18 UTC
Created attachment 79244 [details]
File with table that isn't included in enumeration