diff options
author | Ursache Vladimir <ursache@collabora.co.uk> | 2015-02-15 05:13:58 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-02-16 06:33:38 +0000 |
commit | 031166e43ff2e476df5158ff3e6e631b0c346441 (patch) | |
tree | c2906dc739e8b601b7554c7bf92a557c2189b836 /include | |
parent | 92dae379f9e9da3a515216a95a820032e895eafe (diff) |
Document SfxItemState
Change-Id: I7cb0b7977b221438e4359c5c96c174f7401f9857
Reviewed-on: https://gerrit.libreoffice.org/14496
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/poolitem.hxx | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx index 93f6bf96789f..182da1946510 100644 --- a/include/svl/poolitem.hxx +++ b/include/svl/poolitem.hxx @@ -119,15 +119,38 @@ enum SfxItemPresentation SFX_ITEM_PRESENTATION_COMPLETE }; - - +/** + * These values have to match the values in the + * com::sun::star::frame::status::ItemState IDL + * to be found at offapi/com/sun/star/frame/status/ItemState.idl +*/ enum class SfxItemState { - // These values have to match the values in the com::sun::star::frame::status::ItemState IDL + + /** Specifies an unknown state. */ UNKNOWN = 0, + + /** Specifies that the property is currently disabled. */ DISABLED = 0x0001, + + /** Specifies that the property is currently read-only. */ READONLY = 0x0002, + + /** Specifies that the property is currently in a don't care state. + * <br/> + * This is normally used if a selection provides more than one state + * for a property at the same time. + */ DONTCARE = 0x0010, + + /** Specifies that the property is currently in a default state. */ DEFAULT = 0x0020, + + /** The property has been explicitly set to a given value hence we know + * we are not taking the default value. + * <br/> + * For example, you may want to get the font color and it might either + * be the default one or one that has been explicitly set. + */ SET = 0x0030 }; |