Issue 91005 - Missing property "TextFrame" for XCell, XTextTable
Summary: Missing property "TextFrame" for XCell, XTextTable
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: OOo 2.2
Hardware: All Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needhelp
Depends on:
Blocks:
 
Reported: 2008-06-24 09:45 UTC by eberlein
Modified: 2014-03-13 08:41 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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