To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=91005
                 Issue #|91005
                 Summary|Missing property "TextFrame" for XCell, XTextTable
               Component|Word processor
                 Version|OOo 2.2
                Platform|All
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P3
            Subcomponent|programming
             Assigned to|mru
             Reported by|eberlein





------- Additional comments from [EMAIL PROTECTED] Tue Jun 24 08:45:19 +0000 
2008 -------
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)).

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to