30 #include <sbIPropertyArray.h>
31 #include <sbIPropertyManager.h>
32 #include <nsITreeView.h>
40 const nsAString& aDisplayName,
41 const nsAString& aLocalizationKey,
42 const PRBool aRemoteReadable,
43 const PRBool aRemoteWritable,
44 const PRBool aUserViewable,
45 const PRBool aUserEditable)
48 mDisplayName = aDisplayName;
49 mLocalizationKey = aLocalizationKey;
50 mUserViewable = aUserViewable;
51 mUserEditable = aUserEditable;
52 mRemoteReadable = aRemoteReadable;
53 mRemoteWritable = aRemoteWritable;
54 mType.AssignLiteral(
"image");
55 mSuppressSelect = PR_TRUE;
64 NS_ENSURE_SUCCESS(rv, rv);
72 sbImagePropertyInfo::GetImageSrc(
const nsAString&
aValue,
80 sbImagePropertyInfo::GetProgressMode(
const nsAString&
aValue,
83 NS_ENSURE_ARG_POINTER(_retval);
84 *_retval = nsITreeView::PROGRESS_NONE;
89 sbImagePropertyInfo::GetCellValue(
const nsAString&
aValue,
97 sbImagePropertyInfo::GetRowProperties(
const nsAString& aValue,
105 sbImagePropertyInfo::GetCellProperties(
const nsAString& aValue,
108 _retval.AssignLiteral(
"image");
113 sbImagePropertyInfo::GetColumnType(nsAString& _retval)
115 _retval.AssignLiteral(
"text");
122 sbImagePropertyInfo::GetSuppressSelect(PRBool* aSuppressSelect)
124 NS_ENSURE_ARG_POINTER(aSuppressSelect);
125 *aSuppressSelect = mSuppressSelect;
130 sbImagePropertyInfo::SetSuppressSelect(PRBool aSuppressSelect)
132 mSuppressSelect = aSuppressSelect;
137 sbImagePropertyInfo::IsDisabled(
const nsAString& aCurrentValue,
140 NS_ENSURE_ARG_POINTER(_retval);
146 sbImagePropertyInfo::HitTest(
const nsAString& aCurrentValue,
147 const nsAString& aPart,
154 NS_ENSURE_ARG_POINTER(_retval);
155 *_retval = aPart.EqualsLiteral(
"image");
160 sbImagePropertyInfo::GetValueForClick(
const nsAString& aCurrentValue,
167 return NS_ERROR_NOT_IMPLEMENTED;
177 PRBool *_retval NS_OUTPARAM)
179 NS_ENSURE_ARG_POINTER(_retval);
NS_IMPL_ISUPPORTS_INHERITED2(sbImagePropertyInfo, sbImmutablePropertyInfo, sbIClickablePropertyInfo, sbITreeViewPropertyInfo) sbImagePropertyInfo
The property information specific to clickable properties.
NS_IMETHOD Format(const nsAString &aValue, nsAString &_retval)