Commit 9c419c93 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

(1.0.0.74) ASC version full

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52670 954022d7-b5bf-4e40-9824-e11837661b57
parent c3b2f4aa
// AVSOfficePDFReader.cpp : Implementation of DLL Exports.
// ASCOfficePDFReader.cpp : Implementation of DLL Exports.
#include "stdafx.h"
......@@ -7,10 +7,10 @@
// The module attribute causes DllMain, DllRegisterServer and DllUnregisterServer to be automatically implemented for you
[ module(dll, uuid = "{2F5F8982-81C9-414D-BAB1-5385B6384FC1}",
name = "AVSOfficePDFReader",
helpstring = "AVSOfficePDFReader 1.0 Type Library",
resource_name = "IDR_AVSOFFICEPDFREADER")]
class CAVSOfficePDFReaderModule
name = "ASCOfficePDFReader",
helpstring = "ASCOfficePDFReader 1.0 Type Library",
resource_name = "IDR_ASCOFFICEPDFREADER")]
class CASCOfficePDFReaderModule
{
public:
// Override CAtlDllModuleT members
......
......@@ -2,7 +2,7 @@
//
#include "resource.h"
#define COMPONENT_NAME "OfficePDFReader"
#include "../../../../Common/FileInfo.h"
#include "../Common/FileInfo.h"
#include "version.h"
#define APSTUDIO_READONLY_SYMBOLS
......@@ -172,7 +172,7 @@ END
// REGISTRY
//
IDR_AVSOFFICEPDFREADER REGISTRY "AVSOfficePDFReader.rgs"
IDR_ASCOFFICEPDFREADER REGISTRY "ASCOfficePDFReader.rgs"
/////////////////////////////////////////////////////////////////////////////
//
......@@ -181,7 +181,7 @@ IDR_AVSOFFICEPDFREADER REGISTRY "AVSOfficePDFReader.rgs"
STRINGTABLE
BEGIN
IDS_PROJNAME "AVSOfficePDFReader"
IDS_PROJNAME "ASCOfficePDFReader"
END
#endif // English (U.S.) resources
......
......@@ -2,8 +2,8 @@ HKCR
{
NoRemove AppID
{
'%APPID%' = s 'AVSOfficePDFReader'
'AVSOfficePDFReader.DLL'
'%APPID%' = s 'ASCOfficePDFReader'
'ASCOfficePDFReader.DLL'
{
val AppID = s '%APPID%'
}
......

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual C++ Express 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AVSOfficePDFReader", "AVSOfficePDFReader_vs2005.vcproj", "{BCE14148-A4AB-4472-B690-E2B31926000F}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ASCOfficePDFReader", "ASCOfficePDFReader_vs2005.vcproj", "{BCE14148-A4AB-4472-B690-E2B31926000F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
......
<?xml version="1.0" encoding="windows-1251"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="AVSOfficePDFReader"
Version="8,00"
Name="ASCOfficePDFReader"
ProjectGUID="{BCE14148-A4AB-4472-B690-E2B31926000F}"
RootNamespace="AVSOfficePDFReader"
Keyword="AtlProj"
TargetFrameworkVersion="196613"
>
<Platforms>
<Platform
......@@ -19,7 +17,7 @@
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
UseOfATL="1"
ATLMinimizesCRunTimeLibraryUsage="false"
......@@ -43,17 +41,17 @@
MkTypLibCompatible="false"
TargetEnvironment="1"
GenerateStublessProxies="true"
TypeLibraryName="$(IntDir)/AVSOfficePDFReader.tlb"
HeaderFileName="AVSOfficePDFReader.h"
TypeLibraryName="$(IntDir)/ASCOfficePDFReader.tlb"
HeaderFileName="ASCOfficePDFReader.h"
DLLDataFileName=""
InterfaceIdentifierFileName="AVSOfficePDFReader_i.c"
ProxyFileName="AVSOfficePDFReader_p.c"
InterfaceIdentifierFileName="ASCOfficePDFReader_i.c"
ProxyFileName="ASCOfficePDFReader_p.c"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="FreeType;x:\Common\\"
PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL;_ATL_ATTRIBUTES;_VS_2008"
AdditionalIncludeDirectories="../ASCOfficePDFReader/FreeType;../ASCImageStudio3/ASCGraphics/Interfaces"
PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL;_ATL_ATTRIBUTES;_VS_2005;_CRTDBG_MAP_ALLOC"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
......@@ -77,12 +75,13 @@
<Tool
Name="VCLinkerTool"
IgnoreImportLibrary="true"
OutputFile="$(OutDir)/AVSOfficePDFReader.dll"
LinkIncremental="2"
MergedIDLBaseFileName="_AVSOfficePDFReader.idl"
OutputFile="$(OutDir)/ASCOfficePDFReader.dll"
LinkIncremental="1"
IgnoreDefaultLibraryNames="msvcrt.lib, libcmt.lib"
MergedIDLBaseFileName="_ASCOfficePDFReader.idl"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(OutDir)/AVSOfficePDFReader.lib"
ImportLibrary="$(OutDir)/ASCOfficePDFReader.lib"
TargetMachine="1"
/>
<Tool
......@@ -90,6 +89,7 @@
/>
<Tool
Name="VCManifestTool"
EmbedManifest="true"
/>
<Tool
Name="VCXDCMakeTool"
......@@ -103,6 +103,9 @@
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
Description="Performing registration"
......@@ -120,7 +123,7 @@
>
<Tool
Name="VCPreBuildEventTool"
CommandLine="X:\AVS\Redist\VersionControl.exe &quot;$(SolutionDir)\version.h&quot;"
CommandLine="..\Redist\VersionControl.exe &quot;$(SolutionDir)\version.h&quot;"
/>
<Tool
Name="VCCustomBuildTool"
......@@ -137,16 +140,16 @@
MkTypLibCompatible="false"
TargetEnvironment="1"
GenerateStublessProxies="true"
TypeLibraryName="$(IntDir)/AVSOfficePDFReader.tlb"
HeaderFileName="AVSOfficePDFReader.h"
TypeLibraryName="$(IntDir)/ASCOfficePDFReader.tlb"
HeaderFileName="ASCOfficePDFReader.h"
DLLDataFileName=""
InterfaceIdentifierFileName="AVSOfficePDFReader_i.c"
ProxyFileName="AVSOfficePDFReader_p.c"
InterfaceIdentifierFileName="ASCOfficePDFReader_i.c"
ProxyFileName="ASCOfficePDFReader_p.c"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="X:\AVS\Sources\AVSOfficeStudio\AVSOfficePDFReader\FreeType"
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL;_ATL_ATTRIBUTES;_VS_2008"
AdditionalIncludeDirectories="../ASCOfficePDFReader/FreeType;../ASCImageStudio3/ASCGraphics/Interfaces"
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL;_ATL_ATTRIBUTES;_VS_2005"
RuntimeLibrary="2"
UsePrecompiledHeader="2"
WarningLevel="3"
......@@ -168,15 +171,15 @@
<Tool
Name="VCLinkerTool"
IgnoreImportLibrary="true"
OutputFile="../Redist/AVSOfficePDFReader.dll"
OutputFile="../Redist/ASCOfficePDFReader.dll"
LinkIncremental="1"
MergedIDLBaseFileName="_AVSOfficePDFReader.idl"
MergedIDLBaseFileName="_ASCOfficePDFReader.idl"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)$(TargetName).pdb"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)/AVSOfficePDFReader.lib"
ImportLibrary="$(OutDir)/ASCOfficePDFReader.lib"
TargetMachine="1"
/>
<Tool
......@@ -197,12 +200,15 @@
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
Description="Performing registration"
CommandLine="regsvr32 /s /c &quot;$(TargetPath)&quot;"
/>
</Configuration>
</Configuration>
</Configurations>
<References>
</References>
......@@ -213,7 +219,7 @@
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\AVSOfficePDFReader.cpp"
RelativePath=".\ASCOfficePDFReader.cpp"
>
</File>
<File
......@@ -239,6 +245,14 @@
UsePrecompiledHeader="1"
/>
</FileConfiguration>
<FileConfiguration
Name="ReleaseASC|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
</File>
</Filter>
<Filter
......@@ -405,6 +419,22 @@
RelativePath=".\Hash.h"
>
</File>
<File
RelativePath=".\JArithmeticDecoder.cpp"
>
</File>
<File
RelativePath=".\JArithmeticDecoder.h"
>
</File>
<File
RelativePath=".\JBIG2Stream.cpp"
>
</File>
<File
RelativePath=".\JBIG2Stream.h"
>
</File>
<File
RelativePath=".\JPXStream.cpp"
>
......@@ -620,6 +650,10 @@
RelativePath=".\OutputDevice.h"
>
</File>
<File
RelativePath=".\RendererOutputDev.cpp"
>
</File>
<File
RelativePath=".\RendererOutputDev.h"
>
......@@ -781,11 +815,11 @@
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
<File
RelativePath=".\AVSOfficePDFReader.rc"
RelativePath=".\ASCOfficePDFReader.rc"
>
</File>
<File
RelativePath=".\AVSOfficePDFReader.rgs"
RelativePath=".\ASCOfficePDFReader.rgs"
>
</File>
<Filter
......@@ -853,7 +887,7 @@
Name="Common"
>
<File
RelativePath="..\Common\OfficeDefines.h"
RelativePath="..\ASCImageStudio3\ASCGraphics\Interfaces\ASCRenderer.h"
>
</File>
<File
......@@ -864,10 +898,6 @@
RelativePath="..\..\..\..\Common\OfficeRendererTemplate.h"
>
</File>
<File
RelativePath="..\..\..\..\Common\PaintStruct.h"
>
</File>
</Filter>
<File
RelativePath=".\ReadMe.txt"
......

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AVSOfficePDFReader", "AVSOfficePDFReader.vcproj", "{BCE14148-A4AB-4472-B690-E2B31926000F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BCE14148-A4AB-4472-B690-E2B31926000F}.Debug|Win32.ActiveCfg = Debug|Win32
{BCE14148-A4AB-4472-B690-E2B31926000F}.Debug|Win32.Build.0 = Debug|Win32
{BCE14148-A4AB-4472-B690-E2B31926000F}.Release|Win32.ActiveCfg = Release|Win32
{BCE14148-A4AB-4472-B690-E2B31926000F}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
This diff is collapsed.
......@@ -3,8 +3,8 @@
#include "CharTypes.h"
#include "GlobalParams.h"
#include "..\..\AVSImageStudio3\AVSGraphics\Interfaces\XmlUtils.h"
#include "TemporaryCS.h"
#include "../Common/XmlUtils.h"
#include "../Common/TemporaryCS.h"
class StringExt;
struct CMapVectorEntry;
......
......@@ -3,7 +3,7 @@
#include "CharTypes.h"
#include "GlobalParams.h"
#include "TemporaryCS.h"
#include "../Common/TemporaryCS.h"
struct CharCodeToUnicodeString;
......
#include "stdafx.h"
#include "../Common/RSA/XmlDecoder.h"
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <shlobj.h>
#include "RSA/XmlDecoder.h"
#include "Resource.h"
#include "MemoryUtils.h"
......
......@@ -3,7 +3,7 @@
#include <stdio.h>
#include "CharTypes.h"
#include "TemporaryCS.h"
#include "../Common/TemporaryCS.h"
class StringExt;
class CList;
......
......@@ -93,7 +93,7 @@ private:
PDFDoc *m_pPDFDocument;
GlobalParams *m_pGlobalParams;
AVSGraphics::IAVSRenderer *m_piDocumentRenderer;
AVSGraphics::IASCRenderer *m_piDocumentRenderer;
CStringW m_sTempFolder;
CFontList m_oFontList;
......@@ -330,8 +330,8 @@ public:
//#ifdef _DEBUG
if ( m_piDocumentRenderer )
{
IAVSRenderer *pRenderer = NULL;
m_piDocumentRenderer->QueryInterface( __uuidof(AVSGraphics::IAVSRenderer), (void**)&pRenderer );
IASCRenderer *pRenderer = NULL;
m_piDocumentRenderer->QueryInterface( __uuidof(AVSGraphics::IASCRenderer), (void**)&pRenderer );
RendererOutputDev oRendererOut( m_pGlobalParams, pRenderer, &m_oFontList );
oRendererOut.NewPDF( m_pPDFDocument->GetXRef() );
......@@ -427,8 +427,8 @@ public:
//#ifdef _DEBUG
if ( punkRenderer )
{
IAVSRenderer *pRenderer = NULL;
punkRenderer->QueryInterface( __uuidof(AVSGraphics::IAVSRenderer), (void**)&pRenderer );
IASCRenderer *pRenderer = NULL;
punkRenderer->QueryInterface( __uuidof(AVSGraphics::IASCRenderer), (void**)&pRenderer );
RendererOutputDev oRendererOut( m_pGlobalParams, pRenderer, &m_oFontList );
oRendererOut.NewPDF( m_pPDFDocument->GetXRef() );
......@@ -463,13 +463,13 @@ public:
(*ppRenderer) = NULL;
if( NULL == m_piDocumentRenderer )
return S_OK;
return m_piDocumentRenderer->QueryInterface(__uuidof(AVSGraphics::IAVSRenderer), (void**)&ppRenderer);
return m_piDocumentRenderer->QueryInterface(__uuidof(AVSGraphics::IASCRenderer), (void**)&ppRenderer);
}
STDMETHOD(SetCommandRenderer)(IUnknown* pRenderer)
{
RELEASEINTERFACE( m_piDocumentRenderer );
if( NULL != pRenderer )
pRenderer->QueryInterface(__uuidof( AVSGraphics::IAVSRenderer), (void**)&m_piDocumentRenderer);
pRenderer->QueryInterface(__uuidof( AVSGraphics::IASCRenderer), (void**)&m_piDocumentRenderer);
return S_OK;
}
......
......@@ -7,8 +7,8 @@
#include "File.h"
#include "CMap.h"
#include "..\AVSOfficeHTMLFile\AVSOfficeHTMLFile\prj\Base64.h"
#include "..\..\AVSImageStudio3\AVSGraphics\Interfaces\XmlUtils.h"
#include "../ASCOfficeHtmlFile_SaxHtmlParser/AVSOfficeHtmlFile/prj/Base64.h"
#include "../Common/XmlUtils.h"
#include "FontFileTrueType.h"
#include "FontFileType1C.h"
......@@ -265,7 +265,7 @@ BOOL CFontList::GetFont(Ref *pRef, TFontEntry *pEntry)
return TRUE;
}
RendererOutputDev::RendererOutputDev(GlobalParams *pGlobalParams, IAVSRenderer *pRenderer, CFontList *pFontList)
RendererOutputDev::RendererOutputDev(GlobalParams *pGlobalParams, IASCRenderer *pRenderer, CFontList *pFontList)
{
m_pGlobalParams = pGlobalParams;
m_pFontList = pFontList;
......@@ -310,7 +310,7 @@ RendererOutputDev::RendererOutputDev(GlobalParams *pGlobalParams, IAVSRenderer *
}
m_pFontManager = NULL;
::CoCreateInstance( __uuidof(AVSGraphics::CAVSFontManager), NULL, CLSCTX_ALL, __uuidof(AVSGraphics::IAVSFontManager), (void **)&m_pFontManager );
::CoCreateInstance( __uuidof(AVSGraphics::CASCFontManager), NULL, CLSCTX_ALL, __uuidof(AVSGraphics::IASCFontManager), (void **)&m_pFontManager );
if ( NULL != m_pFontManager )
m_pFontManager->Initialize( _T("<FontManagerOptions><WinList load='0' /></FontManagerOptions>") );
......
#ifndef _RENDERER_OUTPUTDEV_H
#define _RENDERER_OUTPUTDEV_H
#include "..\..\AVSImageStudio3\AVSGraphics\Interfaces\AVSRenderer.h"
#include "..\..\AVSImageStudio3\AVSGraphics\Objects\Structures.h"
#include "../ASCImageStudio3/ASCGraphics/Interfaces/ASCRenderer.h"
#include "../ASCImageStudio3/ASCGraphics/Objects/Structures.h"
#define _ONLY_PDF_WRITER_INTERFACE
#include "..\AVSOfficePdfWriter\PDFWriter.h"
#include "../ASCOfficePdfWriter/PDFWriter.h"
#include "OutputDevice.h"
#include "TemporaryCS.h"
#include "../Common/TemporaryCS.h"
class Gr8BitFont;
class OutputDev;
......@@ -69,7 +69,7 @@ class RendererOutputDev: public OutputDev
{
public:
RendererOutputDev(GlobalParams *pGlobalParams, IAVSRenderer *pRenderer, CFontList *pFontList = NULL);
RendererOutputDev(GlobalParams *pGlobalParams, IASCRenderer *pRenderer, CFontList *pFontList = NULL);
virtual ~RendererOutputDev();
virtual BOOL UpSideDown()
{
......@@ -238,7 +238,7 @@ public:
virtual void ClearSoftMask(GrState *pGState);
//-----
void NewPDF(XRef *pXref);
void SetAVSRenderer(IAVSRenderer *pRenderer)
void SetAVSRenderer(IASCRenderer *pRenderer)
{
m_bUseAxialShaded = FALSE;
m_bUseRadialShaded = FALSE;
......@@ -288,7 +288,7 @@ private:
void DoTransform(double *pMatrix, double *pdShiftX, double *pdShiftY, BOOL bText = FALSE);
private:
IAVSRenderer *m_pRenderer;
IASCRenderer *m_pRenderer;
int m_nRendererType;
double m_arrMatrix[6];
......@@ -299,7 +299,7 @@ private:
XRef *m_pXref; // Xref PDF-
CFontList *m_pFontList;
AVSGraphics::IAVSFontManager *m_pFontManager;
AVSGraphics::IASCFontManager *m_pFontManager;
BOOL *m_pbBreak; //
......
......@@ -3,7 +3,7 @@
// Used by AVSOfficePDFReader.rc
//
#define IDS_PROJNAME 100
#define IDR_AVSOFFICEPDFREADER 101
#define IDR_ASCOFFICEPDFREADER 101
#define IDR_Symbol 204
#define IDR_ZapfDingbats 205
#define IDR_Helvetica 206
......
#include "stdafx.h"
#include "PaintStruct.h"
#include "../Common/PaintStruct.h"
#include <stdlib.h>
#include <string.h>
......
......@@ -2,7 +2,7 @@
#define _UNICODE_MAP_H
#include "CharTypes.h"
#include "TemporaryCS.h"
#include "../Common/TemporaryCS.h"
class StringExt;
......
......@@ -12,7 +12,7 @@
#include "Dict.h"
#include "ErrorConstants.h"
#include "XRef.h"
#include "TemporaryCS.h"
#include "../Common/TemporaryCS.h"
//---------------------------------------------------------------------------------------------------------------------------
......
......@@ -37,21 +37,20 @@
#pragma warning(disable: 4005 4996 4244)
#include <atlbase.h>
#include <atldefine.h>
#include <atlcom.h>
#include <atlwin.h>
#include <atltypes.h>
#include <atlctl.h>
#include <atlhost.h>
#include "../Common/atldefine.h"
using namespace ATL;
#include "AVSUtils.h"
#include "../Common/ASCUtils.h"
#import "..\..\..\Redist\AVSOfficeStudio\AVSOfficeEditor.dll" rename_namespace("AVSOfficeEditor")
#import "..\..\..\Redist\AVSMediaCore3.dll" named_guids rename_namespace("MediaCore"), exclude("tagRECT")
#import "..\..\..\Redist\AVSMediaFormatSettings3.dll" named_guids rename_namespace("MediaFormat"), exclude("tagRECT")
#import "..\..\..\Redist\AVSImageStudio3.dll" named_guids rename_namespace("AVSImageStudio")
#import "..\..\..\Redist\AVSImageJpeg2000.dll" named_guids rename_namespace("AVSImageJpeg2000")
#import "..\..\..\Redist\AVSGraphics.dll" named_guids rename_namespace("AVSGraphics")
#import "../Redist/ASCMediaCore3.dll" named_guids rename_namespace("MediaCore"), exclude("tagRECT")
#import "../Redist/ASCImageStudio3.dll" named_guids rename_namespace("AVSImageStudio")
#import "../Redist/ASCImageJpeg2000.dll" named_guids rename_namespace("AVSImageJpeg2000")
#import "../Redist/ASCGraphics.dll" named_guids rename_namespace("AVSGraphics")
......@@ -2,6 +2,6 @@
//1
//0
//0
//73
#define INTVER 1,0,0,73
#define STRVER "1,0,0,73\0"
//74
#define INTVER 1,0,0,74
#define STRVER "1,0,0,74\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