@@ -125,6 +125,17 @@ void ConditionalFormattingPrivate::writeCfVo(QXmlStreamWriter &writer, const Xls
125
125
\value Highlight_Expression
126
126
*/
127
127
128
+ /* !
129
+ \enum ConditionalFormatting::ValueObjectType
130
+
131
+ \value VOT_Formula
132
+ \value VOT_Max
133
+ \value VOT_Min
134
+ \value VOT_Num
135
+ \value VOT_Percent
136
+ \value VOT_Percentile
137
+ */
138
+
128
139
/* !
129
140
Construct a conditional formatting object
130
141
*/
@@ -164,6 +175,7 @@ ConditionalFormatting::~ConditionalFormatting()
164
175
/* !
165
176
* Add a hightlight rule with the given \a type, \a formula1, \a formula2,
166
177
* \a format and \a stopIfTrue.
178
+ * Return false if failed.
167
179
*/
168
180
bool ConditionalFormatting::addHighlightCellsRule (HighlightRuleType type, const QString &formula1, const QString &formula2, const Format &format, bool stopIfTrue)
169
181
{
@@ -290,6 +302,7 @@ bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type, const
290
302
* \overload
291
303
*
292
304
* Add a hightlight rule with the given \a type, \a formula, \a format and \a stopIfTrue.
305
+ * Return false if failed.
293
306
*/
294
307
bool ConditionalFormatting::addHighlightCellsRule (HighlightRuleType type, const QString &formula, const Format &format, bool stopIfTrue)
295
308
{
@@ -302,6 +315,7 @@ bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type, const
302
315
/* !
303
316
* Add a dataBar rule with the given \a color, \a type1, \a val1
304
317
* , \a type2, \a val2, \a showData and \a stopIfTrue.
318
+ * Return false if failed.
305
319
*/
306
320
bool ConditionalFormatting::addDataBarRule (const QColor &color, ValueObjectType type1, const QString &val1, ValueObjectType type2, const QString &val2, bool showData, bool stopIfTrue)
307
321
{
@@ -334,6 +348,7 @@ bool ConditionalFormatting::addDataBarRule(const QColor &color, bool showData, b
334
348
335
349
/* !
336
350
* Add a colorScale rule with the given \a minColor, \a maxColor and \a stopIfTrue.
351
+ * Return false if failed.
337
352
*/
338
353
bool ConditionalFormatting::add2ColorScaleRule (const QColor &minColor, const QColor &maxColor, bool stopIfTrue)
339
354
{
@@ -361,6 +376,7 @@ bool ConditionalFormatting::add2ColorScaleRule(const QColor &minColor, const QCo
361
376
362
377
/* !
363
378
* Add a colorScale rule with the given \a minColor, \a midColor, \a maxColor and \a stopIfTrue.
379
+ * Return false if failed.
364
380
*/
365
381
bool ConditionalFormatting::add3ColorScaleRule (const QColor &minColor, const QColor &midColor, const QColor &maxColor, bool stopIfTrue)
366
382
{
0 commit comments