How to access CharSet of a document

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
makrandmane
Posts: 6
Joined: Mon Mar 31, 2008 8:01 am

How to access CharSet of a document

Post by makrandmane »

Hello

we are developing new Extension for open office Writer I am using Net Beans 5.5 JDK 6.0
Open Office 3.0

For some purpose I want to access CharSet of a document

Is there any way to identify used character set for particular document ?

For eg . I want Document CherSet like “Windows 1252”

Thank you
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: How to access CharSet of a document

Post by acknak »

[Moved topic to Macros and UNO API]
AOO4/LO5 • Linux • Fedora 23
JohnV
Volunteer
Posts: 1585
Joined: Mon Oct 08, 2007 1:32 am
Location: Kentucky, USA

Re: How to access CharSet of a document

Post by JohnV »

Although most of us probably only use 1 character set (Font?) in a document a different one can be applied to different paragraph or even individual characters. In addition, just one font can have different characteristics such as Bold, Italics, etc. and font size.

I think we need more information as to what you want exactly.
User avatar
kingfisher
Volunteer
Posts: 2127
Joined: Tue Nov 20, 2007 10:53 am

Re: How to access CharSet of a document

Post by kingfisher »

Cells have a number of 'char' attributes / properties. The only 'char' properties belonging to the document concern locale.
Apache OpenOffice 4.1.12 on Linux
User avatar
kingfisher
Volunteer
Posts: 2127
Joined: Tue Nov 20, 2007 10:53 am

Re: How to access CharSet of a document

Post by kingfisher »

I can find no charset property. I suggest you subscribe to the api dev list and ask there:

To subscribe to the list, send a message to:
<dev-subscribe@api.openoffice.org>

To remove your address from the list, send a message to:
<dev-unsubscribe@api.openoffice.org>

Send mail to the following for info and FAQ for this list:
<dev-info@api.openoffice.org>
<dev-faq@api.openoffice.org>

Similar addresses exist for the digest list:
<dev-digest-subscribe@api.openoffice.org>
<dev-digest-unsubscribe@api.openoffice.org>

The email address you use may receive spam. The mailing list can also be accessed via Nabble; you register with Nabble separately but should still subscribe to the list directly. If you are concerned about spam, I suggest the digest subscription using some otherwise unused email address and corresponding with the list via Nabble.
Apache OpenOffice 4.1.12 on Linux
pitonyak
Volunteer
Posts: 186
Joined: Sun Oct 07, 2007 9:13 pm
Location: Columbus, Ohio, USA

Re: How to access CharSet of a document

Post by pitonyak »

Each cell has a text object. What happens if you look at the text object (should be able to call getText() on the cell).
Andrew Pitonyak
http://www.pitonyak.org/oo.php
LO and AOO on Fedora
Post Reply