summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-10 18:26:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-11 08:41:09 +0200
commit578cd010f504e4261c908c5bfbb46e035e22397f (patch)
tree3fbc3a2f3ede04624391660841f57bd478cca180
parentf18158d76c0151feb9cc731e4148de5f8604f704 (diff)
Use valid UNOIDL identifiers in css.frame.Status.ItemState
These are present since OOo 2.0, but are unpublished and appear to be rarely used, so changing them is hopefully OK. Change-Id: I144eceb074cfdd91777f4c940cbfbc0dd73d4347
-rw-r--r--offapi/com/sun/star/frame/status/ItemState.idl12
-rw-r--r--sfx2/source/control/unoctitm.cxx4
2 files changed, 8 insertions, 8 deletions
diff --git a/offapi/com/sun/star/frame/status/ItemState.idl b/offapi/com/sun/star/frame/status/ItemState.idl
index 16a2046950e0..c12987a395cb 100644
--- a/offapi/com/sun/star/frame/status/ItemState.idl
+++ b/offapi/com/sun/star/frame/status/ItemState.idl
@@ -34,15 +34,15 @@ constants ItemState
{
/** specifies an unknown state.
*/
- const short unknown = 0;
+ const short UNKNOWN = 0;
/** specifies that the property is currently disabled.
*/
- const short disabled = 1;
+ const short DISABLED = 1;
/** specifies that the property is currently read-only.
*/
- const short read_only = 2;
+ const short READ_ONLY = 2;
/** specifies that the property is currently in a don't care state.
@@ -51,15 +51,15 @@ constants ItemState
for a property at the same time.
</p>
*/
- const short dont_care = 16;
+ const short DONT_CARE = 16;
/** specifies that the property is currently in a default state.
*/
- const short default_value = 32;
+ const short DEFAULT_VALUE = 32;
/** specifies that the property is currently in a set state.
*/
- const short set = 64;
+ const short SET = 64;
};
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index f9389bd1f3ac..618ad66c5770 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -813,7 +813,7 @@ void SAL_CALL SfxDispatchController_Impl::addStatusListener(const ::com::sun::st
{
// Use special uno struct to transport don't care state
::com::sun::star::frame::status::ItemStatus aItemStatus;
- aItemStatus.State = ::com::sun::star::frame::status::ItemState::dont_care;
+ aItemStatus.State = ::com::sun::star::frame::status::ItemState::DONT_CARE;
aState = makeAny( aItemStatus );
}
@@ -902,7 +902,7 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
{
// Use special uno struct to transport don't care state
::com::sun::star::frame::status::ItemStatus aItemStatus;
- aItemStatus.State = ::com::sun::star::frame::status::ItemState::dont_care;
+ aItemStatus.State = ::com::sun::star::frame::status::ItemState::DONT_CARE;
aState = makeAny( aItemStatus );
}