|
|
@ -47,6 +47,15 @@ Styles::Styles(CreateFlag flag) |
|
|
|
{ |
|
|
|
//!Fix me. Should the custom num fmt Id starts with 164 or 176 or others??
|
|
|
|
|
|
|
|
//!Fix me! Where should we put these register code?
|
|
|
|
if (QMetaType::type("XlsxColor") == QMetaType::UnknownType) { |
|
|
|
qRegisterMetaType<XlsxColor>("XlsxColor"); |
|
|
|
qRegisterMetaTypeStreamOperators<XlsxColor>("XlsxColor"); |
|
|
|
#if QT_VERSION >= 0x050200 |
|
|
|
QMetaType::registerDebugStreamOperator<XlsxColor>(); |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
if (flag == F_NewFromScratch) { |
|
|
|
//Add default Format
|
|
|
|
Format defaultFmt; |
|
|
|