Issue 91005

Summary: Missing property "TextFrame" for XCell, XTextTable
Product: Writer Reporter: eberlein <pet.ebe>
Component: programmingAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: elish, issues
Version: OOo 2.2Keywords: needhelp
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---

Description eberlein 2008-06-24 09:45:19 UTC
If a XTextTable/XCell is located in a XTextSection, then the section can be
accessed by

xPropertySet = (XPropertySet) UnoRuntime.queryInterface(                       
    XPropertySet.class, xCell);
xPropertySetInfo = xPropertySet.getPropertySetInfo();


if (xPropertySetInfo.hasPropertyByName("TextSection")) { 
    XTextSection xSection = (XTextSection)
UnoRuntime.queryInterface(TextSection.class,
xPropertySet.getPropertyValue("TextSection"));

if (xSection != null) {
    // surrounding context is a section
}

The same should be possible, if a table is located in a XTextFrame.
There is no way to evaluate, if the surrounding context is a XTextFrame (dirty:
placing the ViewCursor at the end of the last cell and goRight(1,false)).
Comment 1 eric.savary 2008-06-24 11:20:42 UTC
Reassigned to JSK
Comment 2 joerg.skottke 2008-10-23 14:24:52 UTC
API -> CN
Comment 3 chne 2009-04-20 12:05:46 UTC
change owner
Comment 4 chne 2009-04-28 11:59:59 UTC
reassign