Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | textTable.anchor and compareRegionEnds fails | ||
---|---|---|---|
Product: | App Dev | Reporter: | iannz <hillview> |
Component: | api | Assignee: | stephan.wunderlich |
Status: | CLOSED FIXED | QA Contact: | issues@api <issues> |
Severity: | Trivial | ||
Priority: | P3 | CC: | gbpacheco, issues |
Version: | 3.3.0 or older (OOo) | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
iannz
2004-04-01 00:20:19 UTC
SW->TL: reproduced with src680_m32, could you please have a look at this . The basic reason for the problem is that anchors of text tables does not have a position in the text! That is implementation specific but cannot be changed without rewriting the core. Thus I added ome comments to the TextTable.idl and XTextContent::getAnchor. It loks like this: +++++++++++++++++++++++++++++++ Note: The anchor of the actual implementation for text tables does not have a position in the text. Thus that anchor can not be used for some operation like attach for example or insertTextContent or other function that require the object to have a position in the text. The reason why a text table still needs an anchor is that for example tables should be insertable via insertTextContent and that interface uses a parameter of that type. +++++++++++++++++++++++++++++++ Files changed: offapi: - com/sun/star/text/TextTable.idl new revision: 1.14.180.1 - com/sun/star/text/XTextContent.idl new revision: 1.9.212.1 I have not tried but I think in order to find out if a table is within a particular range you may compare the text range of the first/last cell. new target OO2.0.1 Reassigned for verification re-open issue and reassign to sw@openoffice.org . . idl-files have been adjusted => verified idl-files have been adjusted in src680_m140 => closed Created attachment 73290 |