Commit d973586b authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

ASCOfficeOdfFileW.dll (1.2.0.172)

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58994 954022d7-b5bf-4e40-9824-e11837661b57
parent 50fe29e4
...@@ -8,8 +8,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OdfFormat", "source\OdfForm ...@@ -8,8 +8,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OdfFormat", "source\OdfForm
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Oox2OdfConverter", "source\Oox2OdfConverter.vcproj", "{BEE01B53-244A-44E6-8947-ED9342D9247E}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Oox2OdfConverter", "source\Oox2OdfConverter.vcproj", "{BEE01B53-244A-44E6-8947-ED9342D9247E}"
ProjectSection(ProjectDependencies) = postProject ProjectSection(ProjectDependencies) = postProject
{A100103A-353E-45E8-A9B8-90B87CC5C0B0} = {A100103A-353E-45E8-A9B8-90B87CC5C0B0}
{E5A67556-44DA-4481-8F87-0A3AEDBD20DD} = {E5A67556-44DA-4481-8F87-0A3AEDBD20DD} {E5A67556-44DA-4481-8F87-0A3AEDBD20DD} = {E5A67556-44DA-4481-8F87-0A3AEDBD20DD}
{A100103A-353E-45E8-A9B8-90B87CC5C0B0} = {A100103A-353E-45E8-A9B8-90B87CC5C0B0}
EndProjectSection EndProjectSection
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ASCOfficeOdfFileWTest", "ASCOfficeOdfFileWTest\ASCOfficeOdfFileWTest.vcproj", "{FBA8446A-150F-4A10-B4DA-1022048D6473}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ASCOfficeOdfFileWTest", "ASCOfficeOdfFileWTest\ASCOfficeOdfFileWTest.vcproj", "{FBA8446A-150F-4A10-B4DA-1022048D6473}"
...@@ -20,6 +20,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DocxFormat", "..\Common\Doc ...@@ -20,6 +20,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DocxFormat", "..\Common\Doc
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ASCOfficeOdfFileW", "ASCOfficeOdfFileW.vcproj", "{6258296E-ABCE-4BC6-9F4A-8522CD615603}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ASCOfficeOdfFileW", "ASCOfficeOdfFileW.vcproj", "{6258296E-ABCE-4BC6-9F4A-8522CD615603}"
ProjectSection(ProjectDependencies) = postProject ProjectSection(ProjectDependencies) = postProject
{A100103A-353E-45E8-A9B8-90B87CC5C0B0} = {A100103A-353E-45E8-A9B8-90B87CC5C0B0}
{BEE01B53-244A-44E6-8947-ED9342D9247E} = {BEE01B53-244A-44E6-8947-ED9342D9247E} {BEE01B53-244A-44E6-8947-ED9342D9247E} = {BEE01B53-244A-44E6-8947-ED9342D9247E}
EndProjectSection EndProjectSection
EndProject EndProject
......
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
/> />
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
CommandLine="regsvr32 /s /c &quot;$(TargetPath)&quot;&#x0D;&#x0A;copy &quot;$(TargetPath)&quot; &quot;../Redist&quot;" CommandLine="regsvr32 /s /c &quot;$(TargetPath)&quot;&#x0D;&#x0A;copy &quot;$(TargetPath)&quot; &quot;../Redist&quot;&#x0D;&#x0A;"
/> />
</Configuration> </Configuration>
</Configurations> </Configurations>
......
...@@ -3205,6 +3205,7 @@ void DocxConverter::convert(OOX::Logic::CTbl *oox_table) ...@@ -3205,6 +3205,7 @@ void DocxConverter::convert(OOX::Logic::CTbl *oox_table)
bool styled_table = false; bool styled_table = false;
bool in_frame = false; bool in_frame = false;
int in_frame_anchor = odf::anchor_type::Paragraph;
if (oox_table->m_oTableProperties && (oox_table->m_oTableProperties->m_oTblStyle.IsInit() && oox_table->m_oTableProperties->m_oTblStyle->m_sVal.IsInit())) if (oox_table->m_oTableProperties && (oox_table->m_oTableProperties->m_oTblStyle.IsInit() && oox_table->m_oTableProperties->m_oTblStyle->m_sVal.IsInit()))
{// {//
...@@ -3227,11 +3228,12 @@ void DocxConverter::convert(OOX::Logic::CTbl *oox_table) ...@@ -3227,11 +3228,12 @@ void DocxConverter::convert(OOX::Logic::CTbl *oox_table)
} }
if (oox_table->m_oTableProperties->m_oTblpPr->m_oTblpY.IsInit()) if (oox_table->m_oTableProperties->m_oTblpPr->m_oTblpY.IsInit())
{ {
in_frame = true;
if (oox_table->m_oTableProperties->m_oTblpPr->m_oVertAnchor.IsInit() && if (oox_table->m_oTableProperties->m_oTblpPr->m_oVertAnchor.IsInit() &&
oox_table->m_oTableProperties->m_oTblpPr->m_oVertAnchor->GetValue() == SimpleTypes::vanchorText) oox_table->m_oTableProperties->m_oTblpPr->m_oVertAnchor->GetValue() == SimpleTypes::vanchorText)
in_frame = false; {
else //in_frame_anchor = odf::anchor_type::Char;
in_frame = true; }
} }
} }
...@@ -3254,7 +3256,7 @@ void DocxConverter::convert(OOX::Logic::CTbl *oox_table) ...@@ -3254,7 +3256,7 @@ void DocxConverter::convert(OOX::Logic::CTbl *oox_table)
odt_context->drawing_context()->set_drawings_rect(x, y, width, height); odt_context->drawing_context()->set_drawings_rect(x, y, width, height);
odt_context->drawing_context()->set_anchor(odf::anchor_type::Paragraph); odt_context->drawing_context()->set_anchor(in_frame_anchor);
odt_context->drawing_context()->set_wrap_style(odf::style_wrap::Dynamic); odt_context->drawing_context()->set_wrap_style(odf::style_wrap::Dynamic);
if (oox_table->m_oTableProperties->m_oTblpPr->m_oVertAnchor.IsInit()) if (oox_table->m_oTableProperties->m_oTblpPr->m_oVertAnchor.IsInit())
...@@ -3276,15 +3278,22 @@ void DocxConverter::convert(OOX::Logic::CTbl *oox_table) ...@@ -3276,15 +3278,22 @@ void DocxConverter::convert(OOX::Logic::CTbl *oox_table)
if (oox_table->m_oTableProperties->m_oTblpPr->m_oRightFromText.IsInit()) if (oox_table->m_oTableProperties->m_oTblpPr->m_oRightFromText.IsInit())
{ {
odt_context->drawing_context()->set_horizontal_pos(oox_table->m_oTableProperties->m_oTblpPr->m_oRightFromText->ToPoints()); if (!x) //x = *x + oox_table->m_oTableProperties->m_oTblpPr->m_oRightFromText->ToPoints();
x = oox_table->m_oTableProperties->m_oTblpPr->m_oRightFromText->ToPoints();
odt_context->drawing_context()->set_horizontal_pos(*x);
} }
if (oox_table->m_oTableProperties->m_oTblpPr->m_oTopFromText.IsInit()) if (oox_table->m_oTableProperties->m_oTblpPr->m_oTopFromText.IsInit())
{ {
odt_context->drawing_context()->set_vertical_pos(oox_table->m_oTableProperties->m_oTblpPr->m_oTopFromText->ToPoints()); if (!y) //y = *y + oox_table->m_oTableProperties->m_oTblpPr->m_oTopFromText->ToPoints();
y = oox_table->m_oTableProperties->m_oTblpPr->m_oTopFromText->ToPoints();
odt_context->drawing_context()->set_vertical_pos(*y);
} }
odt_context->drawing_context()->start_drawing(); odt_context->drawing_context()->start_drawing();
odt_context->drawing_context()->start_text_box(); odt_context->drawing_context()->start_text_box();
odt_context->drawing_context()->set_text_box_min_size(0, 1.);
odt_context->drawing_context()->set_z_order(0x7fffffff-1); odt_context->drawing_context()->set_z_order(0x7fffffff-1);
odt_context->drawing_context()->set_text_box_parent_style(L"Frame"); odt_context->drawing_context()->set_text_box_parent_style(L"Frame");
odt_context->drawing_context()->set_name(L"TableFrame"); odt_context->drawing_context()->set_name(L"TableFrame");
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
//1 //1
//2 //2
//0 //0
//167 //172
#define INTVER 1,2,0,167 #define INTVER 1,2,0,172
#define STRVER "1,2,0,167\0" #define STRVER "1,2,0,172\0"
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