Commit f5af771a authored by Sergey.Tsarkov's avatar Sergey.Tsarkov Committed by Alexander Trofimov

подключены старые формулы

исправлен баг на сохранение сдвига формулы в документе

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62402 954022d7-b5bf-4e40-9824-e11837661b57
parent 49683487
<?xml version="1.0" encoding="windows-1251"?> <?xml version="1.0" encoding="windows-1251"?>
<VisualStudioProject <VisualStudioProject
ProjectType="Visual C++" ProjectType="Visual C++"
Version="8,00" Version="8.00"
Name="ASCHTMLRenderer" Name="ASCHTMLRenderer"
ProjectGUID="{DC24710E-8DF2-4A7A-B7C3-2313E294143C}" ProjectGUID="{DC24710E-8DF2-4A7A-B7C3-2313E294143C}"
RootNamespace="ASCHTMLRenderer" RootNamespace="ASCHTMLRenderer"
...@@ -417,18 +417,6 @@ ...@@ -417,18 +417,6 @@
<Filter <Filter
Name="MetaFile" Name="MetaFile"
> >
<File
RelativePath="..\DesktopEditor\raster\Metafile\Common.cpp"
>
</File>
<File
RelativePath="..\DesktopEditor\raster\Metafile\Common.h"
>
</File>
<File
RelativePath="..\DesktopEditor\raster\Metafile\Common\IOutputDevice.h"
>
</File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\MetaFile.cpp" RelativePath="..\DesktopEditor\raster\Metafile\MetaFile.cpp"
> >
...@@ -437,155 +425,123 @@ ...@@ -437,155 +425,123 @@
RelativePath="..\DesktopEditor\raster\Metafile\MetaFile.h" RelativePath="..\DesktopEditor\raster\Metafile\MetaFile.h"
> >
</File> </File>
<File
RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFile.h"
>
</File>
<File
RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileClip.h"
>
</File>
<File
RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileObjects.h"
>
</File>
<File
RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileRenderer.h"
>
</File>
<File
RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileTypes.cpp"
>
</File>
<File
RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileTypes.h"
>
</File>
<Filter <Filter
Name="Wmf" Name="Wmf"
> >
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\RendererOutput.h" RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfClip.cpp"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfCharsets.h" RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfClip.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfCodePage1361.h" RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfFile.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfCodePage932.h" RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfObjects.cpp"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfCodePage936.h" RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfObjects.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfCodePage949.h" RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfPlayer.cpp"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfCodePage950.h" RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfPlayer.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfColor.h" RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfTypes.h"
> >
</File> </File>
</Filter>
<Filter
Name="Emf"
>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfFile.h" RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfClip.cpp"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfMemory.h" RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfClip.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfObjects.cpp" RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfFile.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfObjects.h" RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfObjects.cpp"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfOutputDevice.h" RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfObjects.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfPlayer.cpp" RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfPath.cpp"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfPlayer.h" RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfPath.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfRegion.h" RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfPlayer.cpp"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfTypes.h" RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfPlayer.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Wmf\WmfUtils.h" RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfTypes.h"
> >
</File> </File>
</Filter> </Filter>
<Filter <Filter
Name="Emf" Name="Common"
> >
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfClip.cpp" RelativePath="..\DesktopEditor\raster\Metafile\Common\IOutputDevice.h"
>
</File>
<File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfClip.h"
>
</File>
<File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfFile.h"
>
</File>
<File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfObjects.cpp"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfObjects.h" RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFile.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfOutputDevice.h" RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileClip.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfPath.cpp" RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileObjects.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfPath.h" RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileRenderer.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfPlayer.cpp" RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileTypes.cpp"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfPlayer.h" RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileTypes.h"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\EmfTypes.h" RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileUtils.cpp"
> >
</File> </File>
<File <File
RelativePath="..\DesktopEditor\raster\Metafile\Emf\RendererOutput.h" RelativePath="..\DesktopEditor\raster\Metafile\Common\MetaFileUtils.h"
> >
</File> </File>
</Filter> </Filter>
......
...@@ -4045,17 +4045,17 @@ public: ...@@ -4045,17 +4045,17 @@ public:
int res = c_oSerConstants::ReadOk; int res = c_oSerConstants::ReadOk;
if ( c_oSer_OMathBottomNodesValType::Val == type ) if ( c_oSer_OMathBottomNodesValType::Val == type )
{ {
BYTE MJc; BYTE Jc;
CString sMJc (_T("centerGroup")); CString sJc (_T("centerGroup"));
MJc = m_oBufferedStream.GetUChar(); Jc = m_oBufferedStream.GetUChar();
switch(MJc) switch(Jc)
{ {
case 0: sMJc = _T("center");break; case 0: sJc = _T("center");break;
case 1: sMJc = _T("centerGroup");break; case 1: sJc = _T("centerGroup");break;
case 2: sMJc = _T("left");break; case 2: sJc = _T("left");break;
case 3: sMJc = _T("right");break; case 3: sJc = _T("right");break;
} }
CString sVal; sVal.Format(_T("<m:mJc m:val=\"%ls\" />"), sMJc); CString sVal; sVal.Format(_T("<m:jc m:val=\"%ls\" />"), sJc);
GetRunStringWriter().WriteString(sVal); GetRunStringWriter().WriteString(sVal);
} }
else else
......
...@@ -4589,7 +4589,6 @@ namespace BinDocxRW ...@@ -4589,7 +4589,6 @@ namespace BinDocxRW
case OOX::et_w_object: case OOX::et_w_object:
{ {
int nCurPos = m_oBcw.WriteItemStart(c_oSerRunType::object); int nCurPos = m_oBcw.WriteItemStart(c_oSerRunType::object);
//write Picture //write Picture
CString* pXml = NULL; CString* pXml = NULL;
...@@ -4597,12 +4596,8 @@ namespace BinDocxRW ...@@ -4597,12 +4596,8 @@ namespace BinDocxRW
OOX::Logic::CObject* pObject = static_cast<OOX::Logic::CObject*>(item); OOX::Logic::CObject* pObject = static_cast<OOX::Logic::CObject*>(item);
pXml = pObject->m_sXml.GetPointer(); pXml = pObject->m_sXml.GetPointer();
int nCurPos1 = m_oBcw.WriteItemStart(c_oSerRunType::pptxDrawing);
WriteDrawing(pXml, NULL, NULL);
m_oBcw.WriteItemEnd(nCurPos1);
//write equation //write equation
/*if (pObject->m_oOleObject.IsInit()) if (pObject->m_oOleObject.IsInit())
{ {
CString sProgID = pObject->m_oOleObject->m_sProgId.get().GetString(); CString sProgID = pObject->m_oOleObject->m_sProgId.get().GetString();
if ( _T("Equation.3") == sProgID) if ( _T("Equation.3") == sProgID)
...@@ -4622,7 +4617,12 @@ namespace BinDocxRW ...@@ -4622,7 +4617,12 @@ namespace BinDocxRW
oReader.SetOutputDev(&oBinEqWriter); oReader.SetOutputDev(&oBinEqWriter);
oReader.Parse(); oReader.Parse();
} }
}*/ }
int nCurPos1 = m_oBcw.WriteItemStart(c_oSerRunType::pptxDrawing);
WriteDrawing(pXml, NULL, NULL);
m_oBcw.WriteItemEnd(nCurPos1);
m_oBcw.WriteItemEnd(nCurPos); m_oBcw.WriteItemEnd(nCurPos);
break; break;
} }
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
//2 //2
//0 //0
//1 //1
//322 //323
#define INTVER 2,0,1,322 #define INTVER 2,0,1,323
#define STRVER "2,0,1,322\0" #define STRVER "2,0,1,323\0"
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "../../raster/BgraFrame.h" #include "../../raster/BgraFrame.h"
#include <time.h> #include <time.h>
#include <math.h>
#define U_TO_UTF8(val) NSFile::CUtf8Converter::GetUtf8StringFromUnicode2(val.c_str(), val.length()) #define U_TO_UTF8(val) NSFile::CUtf8Converter::GetUtf8StringFromUnicode2(val.c_str(), val.length())
......
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