Bug 55969 - BASIC: API methods for select-protected-cells
Summary: BASIC: API methods for select-protected-cells
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
(earliest affected) release
Hardware: All All
: low normal
Assignee: Not Assigned
Whiteboard: BSA
Depends on:
Blocks: Macro-VBA
  Show dependency treegraph
Reported: 2012-10-14 12:05 UTC by pierre-yves samyn
Modified: 2018-05-21 18:40 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description pierre-yves samyn 2012-10-14 12:05:03 UTC

LibreOffice has added a pair of options to the Sheet Protection dialog. 
Allow all users of this sheet to: Select protected cells, Select unprotected cells

(XML : table:table-protection table:select-protected-cells=...)

AFAIK, there are no API methods for that.

It's a problem because many programs deal with (un)protection of sheets.

Comment 1 j.tronel 2013-12-22 16:15:40 UTC
Not yet added for Version:
Comment 2 Joel Madero 2014-01-24 14:40:37 UTC
Please do not change the priority, this is in no way a major bug. It is an enhancement request
Comment 3 Laurent AIGLE 2014-01-25 07:39:26 UTC
Excuse me
I thought it was only the opinion of each
(first connexion for me)
Comment 4 Joel Madero 2014-01-25 07:41:50 UTC
No worries - and apologies for the bluntness (I have to say similar things to lots of users, many of whom know the policy yet play with settings anyways). When we move to our own bug tracker we'll likely lock out those settings so that there is no confusion:)

That being said, for future references: https://wiki.documentfoundation.org/images/c/c4/Unconfirmed_Bugs_Status_Flowchart_Version_0.1.pdf

That is the general guideline that many of us follow to ensure that we don't bias our own bugs and over prioritize :-D
Comment 5 Robinson Tryon (qubit) 2014-02-04 13:09:36 UTC
Seems like a straightforward enhancement request.

Status -> NEW
Comment 6 Michael Büssow 2016-12-19 19:50:02 UTC
Are there some developments? Or did I miss something?
It is annoying if you protect/unprotect a sheet via macro and lose the property Select-protected-cells=false
Comment 7 pierre-yves samyn 2017-05-20 06:09:55 UTC

Kohei Yoshida, thanks to him, added 4 new options (see Bug 43535) that it would be nice to include in this problem if by chance a developer is looking into this issue.

Comment 8 Johnny Rosenberg 2017-07-16 14:02:34 UTC
I also ran into this today. I remember there was a ”bug” sometime ago, that if protected a sheet and didn't allow selecting protected cells, next time the document was opened that option was gone – it wasn't saved with the document. If that's still true, I can understand that adding this feature in the API is not very motivated. However, this is fixed since a while back. If I protect a sheet from selecting protected cells, then save, quit and reopen it, the feature is still there, preventing me from selecting protected cells, so it works perfectly.

With that background, introducing the feature in the API would feel like a natural step to me.