Code refactor: numFmt part of QXlsx::Format

This commit is contained in:
Debao Zhang
2013-11-19 17:28:47 +08:00
parent 4bcce58f00
commit 3b29af2d2a
6 changed files with 196 additions and 51 deletions
+12 -3
View File
@@ -141,6 +141,7 @@ public:
void setNumberFormatIndex(int format);
QString numberFormat() const;
void setNumberFormat(const QString &format);
void setNumberFormat(int id, const QString &format);
bool isDateTimeFormat() const;
int fontSize() const;
@@ -215,6 +216,17 @@ public:
bool operator == (const Format &format) const;
bool operator != (const Format &format) const;
QVariant property(int propertyId) const;
void setProperty(int propertyId, const QVariant &value);
void clearProperty(int propertyId);
bool hasProperty(int propertyId) const;
bool boolProperty(int propertyId) const;
int intProperty(int propertyId) const;
double doubleProperty(int propertyId) const;
QString stringProperty(int propertyId) const;
QColor colorProperty(int propertyId) const;
private:
friend class Styles;
friend class Worksheet;
@@ -223,9 +235,6 @@ private:
friend class SharedStrings;
friend class ::FormatTest;
bool numFmtIndexValid() const;
void setNumFmt(int index, const QString &string);
bool fontIndexValid() const;
int fontIndex() const;
void setFontIndex(int index);