Refactor QXlsx::Styles and QXlsx::Format

This commit is contained in:
Debao Zhang
2013-09-13 12:48:56 +08:00
parent d2fe2769de
commit 113f1c760b
14 changed files with 390 additions and 305 deletions
+9 -12
View File
@@ -210,8 +210,7 @@ private:
friend class WorksheetPrivate;
Format();
bool hasFont() const;
void setFontRedundant(bool redundant);
bool fontIndexValid() const;
int fontIndex() const;
void setFontIndex(int index);
QByteArray fontKey() const;
@@ -223,26 +222,24 @@ private:
QString horizontalAlignmentString() const;
QString verticalAlignmentString() const;
bool borderIndexValid() const;
QByteArray borderKey() const;
bool hasBorders() const;
void setBorderRedundant(bool redundant);
int borderIndex() const;
void setBorderIndex(int index);
bool fillIndexValid() const;
QByteArray fillKey() const;
bool hasFill() const;
void setFillRedundant(bool redundant);
int fillIndex() const;
void setFillIndex(int index);
QByteArray formatKey() const;
static QList<Format *> xfFormats();
static QList<Format *> dxfFormats();
int xfIndex(bool generateIfNotValid=true); //Generate index when first called.
void clearExtraInfos();
bool xfIndexValid() const;
int xfIndex() const;
void setXfIndex(int index);
bool isDxfFormat() const;
bool dxfIndexValid() const;
int dxfIndex() const;
void setDxfIndex(int index);
int theme() const;
int colorIndexed() const;