[Solved] Document structure protected ?

The Application Programming Interface and the OASIS Open Document Format

[Solved] Document structure protected ?

Postby bcris » Wed Aug 24, 2011 12:26 pm

What java calls are needed to find out if a calc document's structure is protected ? I use Open Office 3.3 on Windows XP SP3 and Java 1.6.0_26.

Thanks in advance !
Last edited by Hagar Delest on Thu Sep 08, 2011 5:32 pm, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.3 on Windows XP SP3
bcris
 
Posts: 21
Joined: Wed Aug 17, 2011 3:51 pm

Re: Document structure protected ?

Postby Zizi64 » Wed Aug 24, 2011 2:01 pm

Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.0; AOO4.1.6
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 8773
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Document structure protected ?

Postby bcris » Sat Aug 27, 2011 8:00 pm

Hi,

Thank you for the links, but as far as I've seen they are all reffering to password protected files (so files that cannot be opened until a password is provided by the user). In my case I am interested in finding out if the calc document has its structure protected, so if the user has to provide a password to be able for example to change the order of the sheets within the document or their names.

As I've seen in Calc there are three types of protection:

1. file protection - where the user has to provide a password to be able to open a file
2. sheet protection - where the user has to provide a password to be able to change the contents of the protected sheet
3. document protection - where the user has to provide a password to be able to change the structure of a document (e.g. sheet order, sheet name)

Are there any java calls with which I can find out if a document has its structure protected (point 3) ?

Thanks in advance !
OpenOffice 3.3 on Windows XP SP3
bcris
 
Posts: 21
Joined: Wed Aug 17, 2011 3:51 pm

Re: Document structure protected ?

Postby B Marcelly » Tue Aug 30, 2011 3:32 pm

Hi,
See interface com.sun.star.util.XProtectable available at the document level
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Protecting_Spreadsheets
Bernard

OpenOffice.org 1.1.5 / Apache OpenOffice 4.1.1 / LibreOffice 5.0.5
MS-Windows 7 Home SP1
B Marcelly
Volunteer
 
Posts: 1160
Joined: Mon Oct 08, 2007 1:26 am
Location: France, Paris area

Re: Document structure protected ?

Postby bcris » Thu Sep 08, 2011 4:01 pm

Thank you for the info ! It works now.
OpenOffice 3.3 on Windows XP SP3
bcris
 
Posts: 21
Joined: Wed Aug 17, 2011 3:51 pm


Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 1 guest