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
This commit is contained in:
Stephan Bergmann
2014-04-10 18:26:53 +02:00
parent f18158d76c
commit 578cd010f5
2 changed files with 8 additions and 8 deletions

View File

@@ -34,15 +34,15 @@ constants ItemState
{ {
/** specifies an unknown state. /** specifies an unknown state.
*/ */
const short unknown = 0; const short UNKNOWN = 0;
/** specifies that the property is currently disabled. /** specifies that the property is currently disabled.
*/ */
const short disabled = 1; const short DISABLED = 1;
/** specifies that the property is currently read-only. /** 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. /** 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. for a property at the same time.
</p> </p>
*/ */
const short dont_care = 16; const short DONT_CARE = 16;
/** specifies that the property is currently in a default state. /** 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. /** specifies that the property is currently in a set state.
*/ */
const short set = 64; const short SET = 64;
}; };

View File

@@ -813,7 +813,7 @@ void SAL_CALL SfxDispatchController_Impl::addStatusListener(const ::com::sun::st
{ {
// Use special uno struct to transport don't care state // Use special uno struct to transport don't care state
::com::sun::star::frame::status::ItemStatus aItemStatus; ::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 ); 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 // Use special uno struct to transport don't care state
::com::sun::star::frame::status::ItemStatus aItemStatus; ::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 ); aState = makeAny( aItemStatus );
} }