Commit d0e01095 authored by ElenaSubbotina's avatar ElenaSubbotina

.

parent dc33f7f1
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\OdfFileWriterTest.pdb"
WarningLevel="3" WarningLevel="3"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
DebugInformationFormat="4" DebugInformationFormat="4"
...@@ -66,7 +67,7 @@ ...@@ -66,7 +67,7 @@
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalDependencies="
Rpcrt4.lib" AdditionalDependencies="
Rpcrt4.lib"
LinkIncremental="2" LinkIncremental="2"
IgnoreDefaultLibraryNames="LIBCMTD.lib" IgnoreDefaultLibraryNames=""
GenerateDebugInformation="true" GenerateDebugInformation="true"
SubSystem="1" SubSystem="1"
TargetMachine="1" TargetMachine="1"
...@@ -450,6 +451,14 @@ ...@@ -450,6 +451,14 @@
<File <File
RelativePath="..\..\ASCOfficeDocxFile2\DocWrapper\XlsxSerializer.cpp" RelativePath="..\..\ASCOfficeDocxFile2\DocWrapper\XlsxSerializer.cpp"
> >
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/bigobj"
/>
</FileConfiguration>
</File> </File>
</Filter> </Filter>
</Filter> </Filter>
......
...@@ -1478,6 +1478,13 @@ void odf_chart_context::set_series_pie_explosion(int val)//или точка с ...@@ -1478,6 +1478,13 @@ void odf_chart_context::set_series_pie_explosion(int val)//или точка с
impl_->current_level_.back().chart_properties_->content_.chart_pie_offset_ = val; impl_->current_level_.back().chart_properties_->content_.chart_pie_offset_ = val;
} }
void odf_chart_context::set_series_pie_bubble(bool val)
{
if (!impl_->current_level_.back().chart_properties_)return;
impl_->current_level_.back().chart_properties_->content_.chart_pie_bubble_ = val;
}
//void odf_chart_context::set_cash(std::wstring format, std::vector<double> &data_double) //void odf_chart_context::set_cash(std::wstring format, std::vector<double> &data_double)
//{ //{
// if (data_double.size() <1 || impl_->data_cell_ranges_.size() < 1) return; // if (data_double.size() <1 || impl_->data_cell_ranges_.size() < 1) return;
......
...@@ -89,6 +89,7 @@ public: ...@@ -89,6 +89,7 @@ public:
long get_count_data_points_series(); long get_count_data_points_series();
void set_series_pie_explosion(int val); void set_series_pie_explosion(int val);
void set_series_pie_bubble(bool val);
void end_series(); void end_series();
void end_group_series(); void end_group_series();
......
...@@ -100,6 +100,7 @@ public: ...@@ -100,6 +100,7 @@ public:
Impl(odf_conversion_context *odf_context) :odf_context_(odf_context) Impl(odf_conversion_context *odf_context) :odf_context_(odf_context)
{ {
default_column_width = -1; default_column_width = -1;
optimal_column_width = false;
} }
odf_table_state & current_table() {return tables_.back();} odf_table_state & current_table() {return tables_.back();}
...@@ -107,13 +108,21 @@ public: ...@@ -107,13 +108,21 @@ public:
void start_table(odf_table_state & state) {tables_.push_back(state);} void start_table(odf_table_state & state) {tables_.push_back(state);}
void end_table() {if (tables_.size() > 0) tables_.pop_back(); default_column_width = -1; default_cell_properties = L"";} void end_table()
{
if (tables_.size() > 0) tables_.pop_back();
default_column_width = -1; // todo .. in level ???
default_cell_properties = L"";
optimal_column_width = false;
}
odf_style_context * styles_context() {return odf_context_->styles_context();} odf_style_context * styles_context() {return odf_context_->styles_context();}
odf_conversion_context *odf_context_; odf_conversion_context *odf_context_;
double default_column_width; double default_column_width;
bool optimal_column_width;
std::wstring default_cell_properties; // для предустановки .. std::wstring default_cell_properties; // для предустановки ..
private: private:
...@@ -307,6 +316,10 @@ void odf_table_context::set_default_column_width(double width) ...@@ -307,6 +316,10 @@ void odf_table_context::set_default_column_width(double width)
{ {
impl_->default_column_width = width; impl_->default_column_width = width;
} }
void odf_table_context::set_optimal_column_width(bool val)
{
impl_->optimal_column_width = val;
}
void odf_table_context::set_column_optimal(bool val) void odf_table_context::set_column_optimal(bool val)
{ {
if (impl_->empty()) return; if (impl_->empty()) return;
...@@ -362,7 +375,11 @@ void odf_table_context::set_column_width(double width) ...@@ -362,7 +375,11 @@ void odf_table_context::set_column_width(double width)
{ {
properties->style_table_column_properties_attlist_.style_column_width_ = length(length(width,length::pt).get_value_unit(length::cm),length::cm); properties->style_table_column_properties_attlist_.style_column_width_ = length(length(width,length::pt).get_value_unit(length::cm),length::cm);
//properties->style_table_column_properties_attlist_.style_rel_column_width_ = length(length(width,length::pt).get_value_unit(length::cm),length::cm); //properties->style_table_column_properties_attlist_.style_rel_column_width_ = length(length(width,length::pt).get_value_unit(length::cm),length::cm);
//properties->style_table_column_properties_attlist_.style_use_optimal_column_width_ = false;
if (impl_->optimal_column_width)
{
properties->style_table_column_properties_attlist_.style_use_optimal_column_width_ = true;
}
impl_->current_table().table_width += width; impl_->current_table().table_width += width;
} }
...@@ -370,7 +387,7 @@ void odf_table_context::set_column_width(double width) ...@@ -370,7 +387,7 @@ void odf_table_context::set_column_width(double width)
{ {
properties->style_table_column_properties_attlist_.style_use_optimal_column_width_ = true; properties->style_table_column_properties_attlist_.style_use_optimal_column_width_ = true;
if (impl_->default_column_width >=0) if (impl_->default_column_width >= 0)
{ {
properties->style_table_column_properties_attlist_.style_column_width_ = length(length(impl_->default_column_width,length::pt).get_value_unit(length::cm),length::cm); properties->style_table_column_properties_attlist_.style_column_width_ = length(length(impl_->default_column_width,length::pt).get_value_unit(length::cm),length::cm);
//properties->style_table_column_properties_attlist_.style_rel_column_width_ = length(length(impl_->current_table().table_width,length::pt).get_value_unit(length::cm),length::cm); //properties->style_table_column_properties_attlist_.style_rel_column_width_ = length(length(impl_->current_table().table_width,length::pt).get_value_unit(length::cm),length::cm);
......
...@@ -66,6 +66,7 @@ public: ...@@ -66,6 +66,7 @@ public:
void start_table(office_element_ptr &elm, bool styled = false); void start_table(office_element_ptr &elm, bool styled = false);
void set_default_column_width(double width); void set_default_column_width(double width);
void set_optimal_column_width(bool val);
void change_current_column_width(double width); void change_current_column_width(double width);
void end_table(); void end_table();
......
...@@ -95,6 +95,7 @@ public: ...@@ -95,6 +95,7 @@ public:
_CP_OPT(int) chart_spline_order_; _CP_OPT(int) chart_spline_order_;
_CP_OPT(int) chart_spline_resolution_; _CP_OPT(int) chart_spline_resolution_;
_CP_OPT(int) chart_pie_offset_; _CP_OPT(int) chart_pie_offset_;
_CP_OPT(bool) chart_pie_bubble_;
_CP_OPT(int) chart_interval_minor_divisor_; _CP_OPT(int) chart_interval_minor_divisor_;
_CP_OPT(double) chart_maximum_; _CP_OPT(double) chart_maximum_;
......
...@@ -971,6 +971,8 @@ void OoxConverter::convert(OOX::Spreadsheet::CT_Marker* marker, std::vector<OOX: ...@@ -971,6 +971,8 @@ void OoxConverter::convert(OOX::Spreadsheet::CT_Marker* marker, std::vector<OOX:
convert(dPt[i]->m_marker); convert(dPt[i]->m_marker);
if (dPt[i]->m_explosion && dPt[i]->m_explosion->m_val) if (dPt[i]->m_explosion && dPt[i]->m_explosion->m_val)
odf_context()->chart_context()->set_series_pie_explosion(*dPt[i]->m_explosion->m_val); odf_context()->chart_context()->set_series_pie_explosion(*dPt[i]->m_explosion->m_val);
if (dPt[i]->m_bubble3D && dPt[i]->m_bubble3D->m_val)
odf_context()->chart_context()->set_series_pie_bubble(*dPt[i]->m_bubble3D->m_val);
odf_context()->chart_context()->end_element(); odf_context()->chart_context()->end_element();
current_point = set_point+1; current_point = set_point+1;
......
...@@ -214,6 +214,7 @@ void DocxConverter::convert_document() ...@@ -214,6 +214,7 @@ void DocxConverter::convert_document()
section.props = document->m_oSectPr.GetPointer(); section.props = document->m_oSectPr.GetPointer();
section.start_para = last_section_start; section.start_para = last_section_start;
section.end_para = document->m_arrItems.end(); section.end_para = document->m_arrItems.end();
sections.push_back(section);
//---------------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------------
...@@ -3926,13 +3927,22 @@ bool DocxConverter::convert(OOX::Logic::CTableProperty *oox_table_pr, odf_writer ...@@ -3926,13 +3927,22 @@ bool DocxConverter::convert(OOX::Logic::CTableProperty *oox_table_pr, odf_writer
if (oox_table_pr == NULL) return false; if (oox_table_pr == NULL) return false;
if (table_properties == NULL) return false; if (table_properties == NULL) return false;
if (oox_table_pr->m_oTblW.IsInit()) if (oox_table_pr->m_oTblW.IsInit() && oox_table_pr->m_oTblW->m_oW.IsInit())
{
if (oox_table_pr->m_oTblW->m_oType.IsInit() && oox_table_pr->m_oTblW->m_oW.IsInit())
{ {
if ((oox_table_pr->m_oTblW->m_oType.IsInit() && oox_table_pr->m_oTblW->m_oType->GetValue() == SimpleTypes::tblwidthDxa) && if ( oox_table_pr->m_oTblW->m_oType->GetValue() == SimpleTypes::tblwidthDxa &&
(oox_table_pr->m_oTblW->m_oW.IsInit() && oox_table_pr->m_oTblW->m_oW->GetValue() >0)) oox_table_pr->m_oTblW->m_oW->GetValue() > 0 )
{ {
if (oox_table_pr->m_oTblW->m_oW->IsPercent() == false) if ( oox_table_pr->m_oTblW->m_oW->IsPercent() == false)
odt_context->table_context()->set_default_column_width(oox_table_pr->m_oTblW->m_oW->GetValue()/20.); odt_context->table_context()->set_default_column_width(oox_table_pr->m_oTblW->m_oW->GetValue() / 20.);
}
else if ( oox_table_pr->m_oTblW->m_oType->GetValue() == SimpleTypes::tblwidthAuto &&
oox_table_pr->m_oTblW->m_oW->GetValue() == 0 )
{
//динамическое расширение - автоподбор по содержимому.
odt_context->table_context()->set_optimal_column_width(true);
}
} }
} }
...@@ -4033,7 +4043,7 @@ bool DocxConverter::convert(OOX::Logic::CTableProperty *oox_table_pr, bool base_ ...@@ -4033,7 +4043,7 @@ bool DocxConverter::convert(OOX::Logic::CTableProperty *oox_table_pr, bool base_
{//напрямую задать cell_prop на саму таблицу низя - тока как default-cell-style-name на columns & row {//напрямую задать cell_prop на саму таблицу низя - тока как default-cell-style-name на columns & row
//общие свойства ячеек //общие свойства ячеек
odt_context->styles_context()->create_style(L"",odf_types::style_family::TableCell, true, false, -1); //ради нормального задания дефолтовых свойств на cells odt_context->styles_context()->create_style(L"", odf_types::style_family::TableCell, true, false, -1); //ради нормального задания дефолтовых свойств на cells
odt_context->styles_context()->last_state()->set_dont_write(true); odt_context->styles_context()->last_state()->set_dont_write(true);
odf_writer::style_table_cell_properties * table_cell_properties = odt_context->styles_context()->last_state()->get_table_cell_properties(); odf_writer::style_table_cell_properties * table_cell_properties = odt_context->styles_context()->last_state()->get_table_cell_properties();
......
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="3"
Detect64BitPortabilityProblems="false" Detect64BitPortabilityProblems="false"
......
...@@ -46,10 +46,12 @@ ...@@ -46,10 +46,12 @@
Optimization="0" Optimization="0"
AdditionalIncludeDirectories="../../DesktopEditor/xml/build/vs2005;../../DesktopEditor/xml/libxml2/include" AdditionalIncludeDirectories="../../DesktopEditor/xml/build/vs2005;../../DesktopEditor/xml/libxml2/include"
PreprocessorDefinitions="_DEBUG;_CONSOLE;_USE_MATH_DEFINES;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;USE_LITE_READER;_USE_XMLLITE_READER_;_PRESENTATION_WRITER_;_SVG_CONVERT_TO_IMAGE_;DONT_WRITE_EMBEDDED_FONTS" PreprocessorDefinitions="_DEBUG;_CONSOLE;_USE_MATH_DEFINES;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;USE_LITE_READER;_USE_XMLLITE_READER_;_PRESENTATION_WRITER_;_SVG_CONVERT_TO_IMAGE_;DONT_WRITE_EMBEDDED_FONTS"
MinimalRebuild="false" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="3" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
ProgramDataBaseFileName="$(IntDir)\PptFileFormatTest.pdb"
WarningLevel="3" WarningLevel="3"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
DebugInformationFormat="4" DebugInformationFormat="4"
...@@ -67,7 +69,7 @@ ...@@ -67,7 +69,7 @@
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalDependencies="Urlmon.lib" AdditionalDependencies="Urlmon.lib"
LinkIncremental="1" LinkIncremental="1"
IgnoreDefaultLibraryNames="LIBCMTD.lib;libcmt.lib" IgnoreDefaultLibraryNames=""
IgnoreEmbeddedIDL="true" IgnoreEmbeddedIDL="true"
GenerateDebugInformation="true" GenerateDebugInformation="true"
SubSystem="1" SubSystem="1"
......
...@@ -1212,7 +1212,7 @@ namespace PPTX ...@@ -1212,7 +1212,7 @@ namespace PPTX
} }
} }
bool bRect = bOle; //ole ВСЕГДА rect bool bRect = bOle; //ole ВСЕГДА rect или shape c типом ctPictFrame(75)
if (spPr.Geometry.is<PPTX::Logic::PrstGeom>()) if (spPr.Geometry.is<PPTX::Logic::PrstGeom>())
{ {
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="3"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="3"
Detect64BitPortabilityProblems="false" Detect64BitPortabilityProblems="false"
......
...@@ -335,8 +335,10 @@ ...@@ -335,8 +335,10 @@
Optimization="0" Optimization="0"
EnableIntrinsicFunctions="true" EnableIntrinsicFunctions="true"
PreprocessorDefinitions="_DEBUG;_WINDOWS;USE_PRECOMPILED_HEADERS;WIN32" PreprocessorDefinitions="_DEBUG;_WINDOWS;USE_PRECOMPILED_HEADERS;WIN32"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="1" EnableEnhancedInstructionSet="0"
UsePrecompiledHeader="2" UsePrecompiledHeader="2"
PrecompiledHeaderThrough="pch.h" PrecompiledHeaderThrough="pch.h"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
ProgramDataBaseFileName="$(IntDir)\DocxFormat.pdb" ProgramDataBaseFileName="$(IntDir)\DocxFormat.pdb"
WarningLevel="3" WarningLevel="3"
DebugInformationFormat="4" DebugInformationFormat="4"
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
StructMemberAlignment="0" StructMemberAlignment="0"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\agg2d.pch" AssemblerListingLocation="$(ConfigurationName)\agg2d.pch"
ObjectFile="$(ConfigurationName)\" ObjectFile="$(ConfigurationName)\"
......
...@@ -502,6 +502,7 @@ ...@@ -502,6 +502,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\" AssemblerListingLocation="$(ConfigurationName)\"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\" AssemblerListingLocation="$(ConfigurationName)\"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -343,7 +343,8 @@ ...@@ -343,7 +343,8 @@
PreprocessorDefinitions="WIN32;_DEBUG;_LIB" PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="3" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\" AssemblerListingLocation="$(ConfigurationName)\"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -337,8 +337,10 @@ ...@@ -337,8 +337,10 @@
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
Optimization="0" Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE"
MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\" AssemblerListingLocation="$(ConfigurationName)\"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -345,6 +345,7 @@ ...@@ -345,6 +345,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\" AssemblerListingLocation="$(ConfigurationName)\"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(IntDir)\" AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -48,8 +48,10 @@ ...@@ -48,8 +48,10 @@
Optimization="0" Optimization="0"
AdditionalIncludeDirectories="..\zlib" AdditionalIncludeDirectories="..\zlib"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE"
MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\" AssemblerListingLocation="$(ConfigurationName)\"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -196,6 +196,7 @@ ...@@ -196,6 +196,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\" AssemblerListingLocation="$(ConfigurationName)\"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\" AssemblerListingLocation="$(ConfigurationName)\"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -199,6 +199,7 @@ ...@@ -199,6 +199,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\" AssemblerListingLocation="$(ConfigurationName)\"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -499,8 +499,10 @@ ...@@ -499,8 +499,10 @@
Optimization="0" Optimization="0"
AdditionalIncludeDirectories="..\..\..\include" AdditionalIncludeDirectories="..\..\..\include"
PreprocessorDefinitions="_DEBUG;WIN32;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY" PreprocessorDefinitions="_DEBUG;WIN32;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY"
MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
DisableLanguageExtensions="true" DisableLanguageExtensions="true"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)/" AssemblerListingLocation="$(ConfigurationName)/"
......
...@@ -212,10 +212,11 @@ ...@@ -212,10 +212,11 @@
Optimization="0" Optimization="0"
AdditionalIncludeDirectories="&quot;../agg-2.4/include&quot;;&quot;../freetype-2.5.2/include&quot;" AdditionalIncludeDirectories="&quot;../agg-2.4/include&quot;;&quot;../freetype-2.5.2/include&quot;"
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;$(NOINHERIT)" PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;$(NOINHERIT)"
MinimalRebuild="false" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
StructMemberAlignment="0" StructMemberAlignment="0"
EnableEnhancedInstructionSet="0"
DisableLanguageExtensions="false" DisableLanguageExtensions="false"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\" AssemblerListingLocation="$(ConfigurationName)\"
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
ProgramDataBaseFileName="$(IntDir)\vc80.pdb" ProgramDataBaseFileName="$(IntDir)\vc80.pdb"
......
...@@ -496,6 +496,7 @@ ...@@ -496,6 +496,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
PrecompiledHeaderFile="" PrecompiledHeaderFile=""
AssemblerListingLocation="$(ConfigurationName)\" AssemblerListingLocation="$(ConfigurationName)\"
ObjectFile="$(IntDir)\" ObjectFile="$(IntDir)\"
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="3"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
EnableEnhancedInstructionSet="0"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="3"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
......
...@@ -187,7 +187,7 @@ namespace BinXlsxRW ...@@ -187,7 +187,7 @@ namespace BinXlsxRW
WriteFilterColumns(oAutofilter.m_arrItems); WriteFilterColumns(oAutofilter.m_arrItems);
m_oBcw.WriteItemEnd(nCurPos); m_oBcw.WriteItemEnd(nCurPos);
} }
if(oAutofilter.m_oSortState.IsInit()) if(!oAutofilter.m_oSortState.IsInit())
{ {
nCurPos = m_oBcw.WriteItemStart(c_oSer_AutoFilter::SortState); nCurPos = m_oBcw.WriteItemStart(c_oSer_AutoFilter::SortState);
WriteSortState(oAutofilter.m_oSortState.get()); WriteSortState(oAutofilter.m_oSortState.get());
......
...@@ -74,10 +74,15 @@ namespace BinXlsxRW { ...@@ -74,10 +74,15 @@ namespace BinXlsxRW {
{ {
bool bEmpty = true; bool bEmpty = true;
SimpleTypes::Spreadsheet::CHexColor oRgbColor; SimpleTypes::Spreadsheet::CHexColor oRgbColor;
if(color.m_oIndexed.IsInit()) if(color.m_oIndexed.IsInit())
{ {
int nIndex = (int)color.m_oIndexed->GetValue(); int nIndex = (int)color.m_oIndexed->GetValue();
bool bDefault = true;
if (pIndexedColors)
{
std::map<int, OOX::Spreadsheet::CRgbColor*>::iterator pFind = pIndexedColors->mapIndexedColors.find(nIndex); std::map<int, OOX::Spreadsheet::CRgbColor*>::iterator pFind = pIndexedColors->mapIndexedColors.find(nIndex);
if(pFind != pIndexedColors->mapIndexedColors.end()) if(pFind != pIndexedColors->mapIndexedColors.end())
...@@ -87,9 +92,12 @@ namespace BinXlsxRW { ...@@ -87,9 +92,12 @@ namespace BinXlsxRW {
{ {
bEmpty = false; bEmpty = false;
oRgbColor = pRgbColor->m_oRgb.get(); oRgbColor = pRgbColor->m_oRgb.get();
bDefault = false;
} }
} }
else }
if (bDefault)
{ {
unsigned char ucA; unsigned char ucA;
unsigned char ucR; unsigned char ucR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment