Issue 53534 - Bad code example
Summary: Bad code example
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P4 Trivial
Target Milestone: ---
Assignee: chne
QA Contact: issues@api
URL: http://api.openoffice.org/docs/common...
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2005-08-19 10:39 UTC by przemaz
Modified: 2013-02-24 21:07 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description przemaz 2005-08-19 10:39:57 UTC
The example code  for "Create and insert a TextTable via a TextTableDescriptor"
and for "Create and insert a TextTable directly (may flicker)" is identical.
Comment 1 Rainer Bielefeld 2005-08-24 08:27:22 UTC
I also see that the examples ar identical.
I don't believe that it's P1, that's all I can contribute for this issue.
Comment 2 przemaz 2005-08-24 10:39:42 UTC
Sorry for that P1 priotity. In our team we have reversed order. The less number
is the less priority. I must confess that i don't read the Priority description.
Comment 3 Rainer Bielefeld 2005-08-24 15:08:04 UTC
@  przemaz: That's life :-)
May be you can say for what of the listed functions the example is correct and
contribute a better example for the other header? I don't have any knowledge for
API.
Comment 4 przemaz 2005-08-25 08:01:33 UTC
The example applies to second part - insert a TextTable directly. 

I've searched the API and i don't found neither the TextTableDescriptor
(http://api.openoffice.org/docs/common/ref/index-files/index-20.html) nor
service XTextTableDescriptor
(http://api.openoffice.org/docs/common/ref/index-files/index-24.html)

There is a TableDecriptor but it is used to define a table of a database and not
a table anchored in text document.

I suggest to leave only one example.

Comment 5 flibby05 2006-01-19 13:41:48 UTC
move to api project
Comment 6 flibby05 2006-01-19 13:42:30 UTC
api subcomponent: documentation
Comment 7 jsc 2006-01-19 13:51:31 UTC
JSc -> TL: it's one for you
Comment 8 thomas.lange 2006-05-08 09:39:20 UTC
Setting target to OOo 2.0.4
Comment 9 thomas.lange 2006-05-08 09:40:04 UTC
.
Comment 10 thomas.lange 2006-05-12 09:49:37 UTC
.
Comment 11 thomas.lange 2006-06-16 08:55:41 UTC
There is no (X)TextTableDescriptor and the example should not flicker
because all the changes to the table are applied before it gets inserted.
Changed the documentation accordingly.

Files changed:
offapi:
- com/sun/star/text/TextTable.idl


re-open issue and reassign to cn@openoffice.org
Comment 12 thomas.lange 2006-06-16 08:55:50 UTC
reassign to cn@openoffice.org
Comment 13 thomas.lange 2006-06-16 08:55:54 UTC
reset resolution to FIXED
Comment 14 chne 2006-06-20 11:44:31 UTC
ok in tl21
Comment 15 chne 2006-08-10 09:00:44 UTC
ok in src680_m181