Commit 62df9189 authored by Ivan.Shulga's avatar Ivan.Shulga Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52644 954022d7-b5bf-4e40-9824-e11837661b57
parent 788f449e

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ASCOfficeDocxRenderer", "ASCOfficeDocxRenderer\ASCOfficeDocxRenderer.vcproj", "{B9D1A580-70B2-4CF0-A8D4-152A8E84015E}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "boost_filesystem", "..\Common\ASCDocxFormat\Projects\boost_filesystem.vcproj", "{3C7D3E76-9C62-4D0E-9645-8731700B1D70}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "boost_system", "..\Common\ASCDocxFormat\Projects\boost_system.vcproj", "{7A3C0AE1-9FA1-4F56-99C0-139192364F57}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Common", "..\Common\ASCDocxFormat\Projects\Common.vcproj", "{873D625C-37E4-47C4-8120-2D9FC6A98765}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DocxFormat", "..\Common\ASCDocxFormat\Projects\DocxFormat.vcproj", "{67EB0D73-21A0-44C9-ADB2-109526E60429}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OfficeSvmFile", "..\ASCImageStudio3\ASCGraphics\OfficeSvmFile\OfficeSvmFile.vcproj", "{7D2165DA-B528-4318-A03F-6E922547C09D}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Utility", "..\Common\ASCDocxFormat\Projects\Utility.vcproj", "{56F6B346-D0EA-4149-88C4-B6D09E0E9BA6}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "XML", "..\Common\ASCDocxFormat\Projects\XML.vcproj", "{CF068422-CD0A-484E-B4A9-A0CD108EBBB9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B9D1A580-70B2-4CF0-A8D4-152A8E84015E}.Debug|Win32.ActiveCfg = Debug|Win32
{B9D1A580-70B2-4CF0-A8D4-152A8E84015E}.Debug|Win32.Build.0 = Debug|Win32
{B9D1A580-70B2-4CF0-A8D4-152A8E84015E}.Release|Win32.ActiveCfg = Release|Win32
{B9D1A580-70B2-4CF0-A8D4-152A8E84015E}.Release|Win32.Build.0 = Release|Win32
{3C7D3E76-9C62-4D0E-9645-8731700B1D70}.Debug|Win32.ActiveCfg = Debug|Win32
{3C7D3E76-9C62-4D0E-9645-8731700B1D70}.Debug|Win32.Build.0 = Debug|Win32
{3C7D3E76-9C62-4D0E-9645-8731700B1D70}.Release|Win32.ActiveCfg = Release|Win32
{3C7D3E76-9C62-4D0E-9645-8731700B1D70}.Release|Win32.Build.0 = Release|Win32
{7A3C0AE1-9FA1-4F56-99C0-139192364F57}.Debug|Win32.ActiveCfg = Debug|Win32
{7A3C0AE1-9FA1-4F56-99C0-139192364F57}.Debug|Win32.Build.0 = Debug|Win32
{7A3C0AE1-9FA1-4F56-99C0-139192364F57}.Release|Win32.ActiveCfg = Release|Win32
{7A3C0AE1-9FA1-4F56-99C0-139192364F57}.Release|Win32.Build.0 = Release|Win32
{873D625C-37E4-47C4-8120-2D9FC6A98765}.Debug|Win32.ActiveCfg = Debug|Win32
{873D625C-37E4-47C4-8120-2D9FC6A98765}.Debug|Win32.Build.0 = Debug|Win32
{873D625C-37E4-47C4-8120-2D9FC6A98765}.Release|Win32.ActiveCfg = Release|Win32
{873D625C-37E4-47C4-8120-2D9FC6A98765}.Release|Win32.Build.0 = Release|Win32
{67EB0D73-21A0-44C9-ADB2-109526E60429}.Debug|Win32.ActiveCfg = Debug|Win32
{67EB0D73-21A0-44C9-ADB2-109526E60429}.Debug|Win32.Build.0 = Debug|Win32
{67EB0D73-21A0-44C9-ADB2-109526E60429}.Release|Win32.ActiveCfg = Release|Win32
{67EB0D73-21A0-44C9-ADB2-109526E60429}.Release|Win32.Build.0 = Release|Win32
{7D2165DA-B528-4318-A03F-6E922547C09D}.Debug|Win32.ActiveCfg = Debug|Win32
{7D2165DA-B528-4318-A03F-6E922547C09D}.Debug|Win32.Build.0 = Debug|Win32
{7D2165DA-B528-4318-A03F-6E922547C09D}.Release|Win32.ActiveCfg = Release|Win32
{7D2165DA-B528-4318-A03F-6E922547C09D}.Release|Win32.Build.0 = Release|Win32
{56F6B346-D0EA-4149-88C4-B6D09E0E9BA6}.Debug|Win32.ActiveCfg = Debug|Win32
{56F6B346-D0EA-4149-88C4-B6D09E0E9BA6}.Debug|Win32.Build.0 = Debug|Win32
{56F6B346-D0EA-4149-88C4-B6D09E0E9BA6}.Release|Win32.ActiveCfg = Release|Win32
{56F6B346-D0EA-4149-88C4-B6D09E0E9BA6}.Release|Win32.Build.0 = Release|Win32
{CF068422-CD0A-484E-B4A9-A0CD108EBBB9}.Debug|Win32.ActiveCfg = Debug|Win32
{CF068422-CD0A-484E-B4A9-A0CD108EBBB9}.Debug|Win32.Build.0 = Debug|Win32
{CF068422-CD0A-484E-B4A9-A0CD108EBBB9}.Release|Win32.ActiveCfg = Release|Win32
{CF068422-CD0A-484E-B4A9-A0CD108EBBB9}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
This diff is collapsed.
#pragma once
class AVSOfficeCriticalSection
{
private:
CRITICAL_SECTION CriticalSection;
public:
AVSOfficeCriticalSection()
{
InitializeCriticalSection( &(this->CriticalSection) );
}
~AVSOfficeCriticalSection()
{
DeleteCriticalSection( &(this->CriticalSection) );
}
void Enter()
{
EnterCriticalSection( &(this->CriticalSection) );
}
void Leave()
{
LeaveCriticalSection( &(this->CriticalSection) );
}
};
\ No newline at end of file
// ASCOfficeDocxRenderer.cpp : Implementation of DLL Exports.
#include "stdafx.h"
#include "resource.h"
// The module attribute causes DllMain, DllRegisterServer and DllUnregisterServer to be automatically implemented for you
[ module(dll, uuid = "{F522F14B-4A53-4DC8-960B-C5A46B447BEC}",
name = "ASCOfficeDocxRenderer",
helpstring = "ASCOfficeDocxRenderer 1.0 Type Library",
resource_name = "IDR_ASCOFFICEDOCXRENDERER") ]
class CAVSOfficeDocxRendererModule
{
public:
// Override CAtlDllModuleT members
};
HKCR
{
NoRemove AppID
{
'%APPID%' = s 'ASCOfficeDocxRenderer'
'ASCOfficeDocxRenderer.DLL'
{
val AppID = s '%APPID%'
}
}
}
<?xml version="1.0" encoding="windows-1251"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9,00"
Name="ASCOfficeDocxRenderer"
ProjectGUID="{B9D1A580-70B2-4CF0-A8D4-152A8E84015E}"
RootNamespace="ASCOfficeDocxRenderer"
Keyword="AtlProj"
TargetFrameworkVersion="196613"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="2"
UseOfATL="1"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
CommandLine=""
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="_DEBUG"
MkTypLibCompatible="false"
TargetEnvironment="1"
GenerateStublessProxies="true"
TypeLibraryName="$(IntDir)/ASCOfficeDocxRenderer.tlb"
HeaderFileName="ASCOfficeDocxRenderer.h"
DLLDataFileName=""
InterfaceIdentifierFileName="ASCOfficeDocxRenderer_i.c"
ProxyFileName="ASCOfficeDocxRenderer_p.c"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\Common\ASCDocxFormat\Source\DocxFormat;..\..\Common\ASCDocxFormat\Source\XML;..\..\Common\ASCDocxFormat\Source\Utility;..\..\Common\ASCDocxFormat\Source\Common"
PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL;_ATL_ATTRIBUTES"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1049"
AdditionalIncludeDirectories="$(IntDir)"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
IgnoreImportLibrary="true"
AdditionalDependencies="Msimg32.lib"
OutputFile="$(OutDir)/ASCOfficeDocxRenderer.dll"
LinkIncremental="2"
AdditionalLibraryDirectories="..\..\ASCOfficeUtils\ZLIB\zlib123dll\static32;..\..\Common\ASCDocxFormat\Lib\Debug"
IgnoreDefaultLibraryNames="LIBC.LIB"
MergedIDLBaseFileName="_ASCOfficeDocxRenderer.idl"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(OutDir)/ASCOfficeDocxRenderer.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
Description="Performing registration"
CommandLine="regsvr32 /s /c &quot;$(TargetPath)&quot;"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="2"
UseOfATL="1"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
CommandLine="..\..\..\..\Redist\VersionControl.exe $(ProjectDir)version.h"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="NDEBUG"
MkTypLibCompatible="false"
TargetEnvironment="1"
GenerateStublessProxies="true"
TypeLibraryName="$(IntDir)/ASCOfficeDocxRenderer.tlb"
HeaderFileName="ASCOfficeDocxRenderer.h"
DLLDataFileName=""
InterfaceIdentifierFileName="ASCOfficeDocxRenderer_i.c"
ProxyFileName="ASCOfficeDocxRenderer_p.c"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\Common\ASCDocxFormat\Source\DocxFormat;..\..\Common\ASCDocxFormat\Source\XML;..\..\Common\ASCDocxFormat\Source\Utility;..\..\Common\ASCDocxFormat\Source\Common"
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL;_ATL_ATTRIBUTES"
RuntimeLibrary="2"
UsePrecompiledHeader="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1049"
AdditionalIncludeDirectories="$(IntDir)"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
IgnoreImportLibrary="true"
OutputFile="$(OutDir)/ASCOfficeDocxRenderer.dll"
LinkIncremental="1"
MergedIDLBaseFileName="_ASCOfficeDocxRenderer.idl"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)/ASCOfficeDocxRenderer.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
Description="Performing registration"
CommandLine="regsvr32 /s /c &quot;$(TargetPath)&quot;"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\ASCDocxRenderer.cpp"
>
</File>
<File
RelativePath=".\ASCOfficeDocxRenderer.cpp"
>
</File>
<File
RelativePath=".\Document.cpp"
>
</File>
<File
RelativePath=".\FontManager.cpp"
>
</File>
<File
RelativePath=".\Page.cpp"
>
</File>
<File
RelativePath=".\PageString.cpp"
>
</File>
<File
RelativePath=".\stdafx.cpp"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\TransformationMatrix.cpp"
>
</File>
<File
RelativePath=".\VMLGraphicsPath.cpp"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\ASCDocxRenderer.h"
>
</File>
<File
RelativePath=".\ASCOfficeCriticalSection.h"
>
</File>
<File
RelativePath="..\..\ASCImageStudio3\ASCGraphics\Interfaces\ASCRenderer.h"
>
</File>
<File
RelativePath=".\Document.h"
>
</File>
<File
RelativePath=".\FontManager.h"
>
</File>
<File
RelativePath="E:\Subversion\Common\OfficeRendererTemplate.h"
>
</File>
<File
RelativePath=".\OOXUtils.h"
>
</File>
<File
RelativePath=".\Page.h"
>
</File>
<File
RelativePath=".\PageString.h"
>
</File>
<File
RelativePath=".\Resource.h"
>
</File>
<File
RelativePath=".\Singleton.h"
>
</File>
<File
RelativePath=".\stdafx.h"
>
</File>
<File
RelativePath=".\TransformationMatrix.h"
>
</File>
<File
RelativePath=".\Utils.h"
>
</File>
<File
RelativePath=".\version.h"
>
</File>
<File
RelativePath=".\VMLGraphicsPath.h"
>
</File>
<File
RelativePath="..\..\..\..\..\Common\xmlutils.h"
>
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
<File
RelativePath=".\ASCOfficeDocxRenderer.rc"
>
</File>
<File
RelativePath=".\ASCOfficeDocxRenderer.rgs"
>
</File>
</Filter>
<File
RelativePath=".\ReadMe.txt"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
<?xml version="1.0" encoding="windows-1251"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8,00"
Name="ASCOfficeDocxRenderer"
ProjectGUID="{BAB70A60-2DA0-4149-B8FC-99D7007E9BDB}"
RootNamespace="ASCOfficeDocxRenderer"
Keyword="AtlProj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="2"
UseOfATL="1"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
CommandLine=""
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="_DEBUG"
MkTypLibCompatible="false"
TargetEnvironment="1"
GenerateStublessProxies="true"
TypeLibraryName="$(IntDir)/ASCOfficeDocxRenderer.tlb"
HeaderFileName="ASCOfficeDocxRenderer.h"
DLLDataFileName=""
InterfaceIdentifierFileName="ASCOfficeDocxRenderer_i.c"
ProxyFileName="ASCOfficeDocxRenderer_p.c"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\Common\ASCDocxFormat\Source\DocxFormat;..\..\Common\ASCDocxFormat\Source\XML;..\..\Common\ASCDocxFormat\Source\Utility;..\..\Common\ASCDocxFormat\Source\Common"
PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL;_ATL_ATTRIBUTES"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1049"
AdditionalIncludeDirectories="$(IntDir)"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
IgnoreImportLibrary="true"
AdditionalDependencies="Msimg32.lib"
OutputFile="$(OutDir)/ASCOfficeDocxRenderer.dll"
LinkIncremental="2"
AdditionalLibraryDirectories="..\..\ASCOfficeUtils\ZLIB\zlib123dll\static32;..\..\Common\ASCDocxFormat\Lib\Debug"
IgnoreDefaultLibraryNames="LIBC.LIB"
MergedIDLBaseFileName="_ASCOfficeDocxRenderer.idl"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(OutDir)/ASCOfficeDocxRenderer.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
Description="Performing registration"
CommandLine="regsvr32 /s /c &quot;$(TargetPath)&quot;"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="2"
UseOfATL="1"
ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
CommandLine="..\..\..\..\Redist\VersionControl.exe $(ProjectDir)version.h"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="NDEBUG"
MkTypLibCompatible="false"
TargetEnvironment="1"
GenerateStublessProxies="true"
TypeLibraryName="$(IntDir)/ASCOfficeDocxRenderer.tlb"
HeaderFileName="ASCOfficeDocxRenderer.h"
DLLDataFileName=""
InterfaceIdentifierFileName="ASCOfficeDocxRenderer_i.c"
ProxyFileName="ASCOfficeDocxRenderer_p.c"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\Common\ASCDocxFormat\Source\DocxFormat;..\..\Common\ASCDocxFormat\Source\XML;..\..\Common\ASCDocxFormat\Source\Utility;..\..\Common\ASCDocxFormat\Source\Common"
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL;_ATL_ATTRIBUTES"
RuntimeLibrary="2"
UsePrecompiledHeader="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1049"
AdditionalIncludeDirectories="$(IntDir)"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
IgnoreImportLibrary="true"
AdditionalDependencies="Msimg32.lib"
OutputFile="..\..\Redist\$(ProjectName).dll"
LinkIncremental="1"
AdditionalLibraryDirectories="..\..\ASCOfficeUtils\ZLIB\zlib123dll\static32;..\..\Common\ASCDocxFormat\Lib\Release"
IgnoreDefaultLibraryNames="LIBC.LIB"
MergedIDLBaseFileName="_ASCOfficeDocxRenderer.idl"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)/ASCOfficeDocxRenderer.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
Description="Performing registration"
CommandLine="regsvr32 /s /c &quot;$(TargetPath)&quot;"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\ASCDocxRenderer.cpp"
>
</File>
<File
RelativePath=".\ASCOfficeDocxRenderer.cpp"
>
</File>
<File
RelativePath=".\Document.cpp"
>
</File>
<File
RelativePath=".\FontManager.cpp"
>
</File>
<File
RelativePath=".\Page.cpp"
>
</File>
<File
RelativePath=".\PageString.cpp"
>
</File>
<File
RelativePath=".\stdafx.cpp"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\TransformationMatrix.cpp"
>
</File>
<File
RelativePath=".\VMLGraphicsPath.cpp"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\ASCDocxRenderer.h"
>
</File>
<File
RelativePath=".\ASCOfficeCriticalSection.h"
>
</File>
<File
RelativePath="..\..\ASCImageStudio3\ASCGraphics\Interfaces\ASCRenderer.h"
>
</File>
<File
RelativePath=".\Document.h"
>
</File>
<File
RelativePath=".\FontManager.h"
>
</File>
<File
RelativePath="E:\Subversion\Common\OfficeRendererTemplate.h"
>
</File>
<File
RelativePath=".\OOXUtils.h"
>
</File>
<File
RelativePath=".\Page.h"
>
</File>
<File
RelativePath=".\PageString.h"
>
</File>
<File
RelativePath=".\Resource.h"
>
</File>
<File
RelativePath=".\Singleton.h"
>
</File>
<File
RelativePath=".\stdafx.h"
>
</File>
<File
RelativePath=".\TransformationMatrix.h"
>
</File>
<File
RelativePath=".\Utils.h"
>
</File>
<File
RelativePath=".\version.h"
>
</File>
<File
RelativePath=".\VMLGraphicsPath.h"
>
</File>
<File
RelativePath="..\..\..\..\..\Common\xmlutils.h"
>
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
<File
RelativePath=".\ASCOfficeDocxRenderer.rc"
>
</File>
<File
RelativePath=".\ASCOfficeDocxRenderer.rgs"
>
</File>
</Filter>
<File
RelativePath=".\ReadMe.txt"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
This diff is collapsed.
#pragma once
#include "Page.h"
namespace DocxRenderer
{
class Document
{
private:
struct FontCharacteristics
{
std::wstring panose;
bool isFixedWidth;
std::vector<std::wstring> signature;
FontCharacteristics():
panose(_T( "00000000000000000000" )), isFixedWidth(false)
{
this->signature.clear();
this->signature.push_back( _T( "00000000" ) );
this->signature.push_back( _T( "00000000" ) );
this->signature.push_back( _T( "00000000" ) );
this->signature.push_back( _T( "00000000" ) );
this->signature.push_back( _T( "00000000" ) );
this->signature.push_back( _T( "00000000" ) );
}
bool operator == ( const FontCharacteristics& _fontCharacteristics ) const
{
if ( this->panose != _fontCharacteristics.panose )
{
return false;
}
if ( this->isFixedWidth != _fontCharacteristics.isFixedWidth )
{
return false;
}
for ( unsigned int i = 0; i < this->signature.size(); i++ )
{
if ( this->signature[i] != _fontCharacteristics.signature[i] )
{
return false;
}
}
return true;
}
bool IsDefault() const
{
if ( this->panose != _T( "00000000000000000000" ) )
{
return false;
}
for ( unsigned int i = 0; i < this->signature.size(); i++ )
{
if ( this->signature[i] != _T( "00000000" ) )
{
return false;
}
}
if ( this->isFixedWidth )
{
return false;
}
return true;
}
};
struct Font
{
std::string name;
FontCharacteristics characteristics;
};
private:
Page previousPage;
Page currentPage;
mutable Docx::Folder ooxFolder;
FontManager fontManager;
TextAssociationType textAssociationType;
double width;
double height;
unsigned int pageCount;
std::wstring destinationPath;
Font currentFont;
private:
bool IsFontPresent( const std::string& _fontName ) const;
std::wstring FindFont( const FontCharacteristics& _fontCharacteristics ) const;
public:
explicit Document( TextAssociationType _textAssociationType = TextAssociationTypeDefault );
Document( const std::wstring& _ooxDir, TextAssociationType _textAssociationType = TextAssociationTypeDefault );
void CreateFromTemplate( const std::wstring& _ooxDir );
void SetDestinationPath( const std::wstring& _destinationPath );
std::wstring GetDestinationPath() const;
void AddPage();
void SetWidth( double _dWidth );
double GetWidth() const;
void SetHeight( double _dHeight );
double GetHeight() const;
void SetTextAssociationType( TextAssociationType _textAssociationType );
TextAssociationType GetTextAssociationType() const;
void BeginCommand( unsigned long _lType );
void EndCommand( unsigned long _lType );
void AddText( const std::wstring& _text, double _dX, double _dY, double _dWidth, double _dHeight, double _dBaseLineOffset, const std::wstring& _gidText = _T( "" ) );
void AddImage( const std::wstring& _fileName, double _dX, double _dY, double _dWidth, double _dHeight );
void PathMoveTo( double _dX, double _dY );
void PathLineTo( double _dX, double _dY );
void PathLinesTo( const std::vector<double>& _points );
void PathCurveTo( double _x1, double _y1, double _x2, double _y2, double _x3, double _y3 );
void PathCurvesTo( const std::vector<double>& _points );
void PathArcTo( double _x, double _y, double _width, double _height, double _startAngle, double _sweepAngle );
void PathClose();
void PathEnd();
void DrawPath( long _nType, unsigned int _resize = 1000000 );
void PathStart();
void PathGetCurrentPoint( double* _dX, double* _dY );
void GetCommandParams( double* _dAngle, double* _dLeft, double* _dTop, double* _dWidth, double* _dHeight, unsigned long* _lFlags );
void SetCommandParams( double _dAngle, double _dLeft, double _dTop, double _dWidth, double _dHeight, unsigned long _lFlags );
void SetTransform( double _dA, double _dB, double _dC, double _dD, double _dE, double _dF );
void SetTransform( const TransformationMatrix& _matrix );
void GetTransform( double* _pdA, double* _pdB, double* _pdC, double* _pdD, double* _pdE, double* _pdF );
void ResetTransform();
long GetClipMode();
void SetClipMode( long _lMode );
void PathText( const std::wstring& _text, double _dX, double _dY, double _dWidth, double _dHeight, double _dBaseLineOffset );
void SetPenColor( const std::string& _penColor );
void SetPenSize( double _penSize );
void SetFontColor( const std::string& _fontColor );
void SetBrushColor( const std::string& _brushColor );
void SetFontName( const std::string& _fontName );
void SetFont( const Font& _font );
void SetFontSize( double _fontSize );
void LoadFontFromFile( const std::wstring& _fileName, double _fontSize, double _xDPI = 72, double _yDPI = 72, long _faceIndex = 0 );
void SetBold( bool _value );
void SetItalic( bool _value );
void SetUnderline( bool _value );
void SetStrikeout( bool _value );
void Save() const;
};
}
\ No newline at end of file
This diff is collapsed.
#pragma once
#include "Docx.h"
#include "Singleton.h"
#include "Utils.h"
#import ".\..\..\Redist\ASCGraphics.dll" raw_interfaces_only
namespace DocxRenderer
{
class FontManager
{
public:
enum MeasureType
{
MeasureTypeGlyph = 0,
MeasureTypePosition
};
private:
AVSGraphics::IAVSFontManagerPtr pFontManager;
double xDPI;
double yDPI;
std::wstring defaultFontName;
public:
FontManager( const std::wstring& _xmlOptions = _T( "" ), double _xDPI = 72, double _yDPI = 72 );
~FontManager();
void SetDefaultFont( const std::wstring& _familyName );
std::wstring GetDefaultFont() const;
void SetXDPI( double _xDPI );
double GetXDPI() const;
void SetYDPI( double _yDPI );
double GetYDPI() const;
double GetTextWidth( const std::wstring& _text, const std::wstring& _fontName, double _fontSize, long _fontStyle, MeasureType _measureType = MeasureTypeGlyph ) const;
double GetTextWidth( const std::wstring& _text, MeasureType _measureType = MeasureTypeGlyph, bool _isGidText = false ) const;
double GetTextHeight( const std::wstring& _text, const std::wstring& _fontName, double _fontSize, long _fontStyle, MeasureType _measureType = MeasureTypeGlyph ) const;
double GetFontHeight( const std::wstring& _fontName, double _fontSize, long _fontStyle ) const;
double GetFontHeight( double _fontSize ) const;
void MeasureString( const std::wstring& _text, const std::wstring& _fontName, double _fontSize, long _fontStyle, double _x, double _y, double* _boxX, double* _boxY, double* _boxWidth, double* _boxHeight, MeasureType _measureType = MeasureTypeGlyph ) const;
double GetSpaceWidthBetweenStrings( const std::wstring& _firstString, const std::wstring& _secondString, const std::wstring& _fontName, double _fontSize, long _fontStyle, MeasureType _measureType = MeasureTypeGlyph ) const;
void LoadFontFromFile( const std::wstring& _fileName, double _fontSize, double _xDPI = 0, double _yDPI = 0, long _faceIndex = 0 );
std::wstring GetFamilyName() const;
std::wstring GetStyleName() const;
std::wstring GetPANOSE() const;
bool IsFixedWidth() const;
std::vector<std::wstring> GetSignature() const;
};
class FontManagerSingleton: public Singleton<FontManagerSingleton>, public FontManager
{
protected:
FontManagerSingleton(): FontManager() {};
virtual ~FontManagerSingleton() {};
friend class Singleton<FontManagerSingleton>;
};
}
\ No newline at end of file
#pragma once
#include "Docx.h"
namespace DocxRenderer
{
namespace OOXUtils
{
inline OOX::Logic::TextFrameProperties GetTextFrameProperties( double _x, double _y, double _width = 0 /*auto*/, double _height = 0 /*auto*/ )
{
OOX::Logic::TextFrameProperties textFrameProperty;
textFrameProperty.HAnchor = "page";
textFrameProperty.VAnchor = "page";
UniversalUnit mmValue( UniversalUnit::Mm );
UniversalUnit dxValue( UniversalUnit::Dx );
mmValue = _x;
dxValue = mmValue;
textFrameProperty.X = ( ( dxValue > 0 ) ? ( dxValue ) : ( 1 ) );
mmValue = _y;
dxValue = mmValue;
textFrameProperty.Y = ( ( dxValue > 0 ) ? ( dxValue ) : ( 1 ) );
if ( _width > 0 )
{
mmValue = _width;
dxValue = mmValue;
textFrameProperty.W = dxValue;
}
if ( _height > 0 )
{
mmValue = _height;
dxValue = mmValue;
textFrameProperty.H = dxValue;
}
return textFrameProperty;
}
}
}
\ No newline at end of file
This diff is collapsed.
#pragma once
#include "PageString.h"
namespace DocxRenderer
{
class Page
{
private:
bool hyperlinkMode;
bool clipMode;
double width;
double height;
mutable std::vector<PageString> strings;
mutable std::list<PageString> sortedStrings;
DocxRenderer::VMLGraphicsPath vmlGraphicsPath;
OOX::Logic::Paragraph drawingParagraph;
TransformationMatrix matrix;
TextAssociationType textAssociationType;
Docx::Folder* ooxFolder;
FontManager* fontManager;
std::string penColor;
double penSize;
std::string fontColor;
std::string brushColor;
std::string fontName;
double fontSize;
bool bold;
bool italic;
bool underline;
bool strikeout;
double dAngle;
double dLeft;
double dTop;
double dWidth;
double dHeight;
unsigned long lFlags;
static const double STANDART_STRING_HEIGHT_MM;
static const double THE_SAME_STRING_Y_PRECISION_MM;
private:
OOX::Logic::RunProperty GetRunProperties() const;
PageString* GetPageString( double _y ) const;
public:
Page();
Page( Docx::Folder* _ooxFolder, FontManager* _fontManager, TextAssociationType _textAssociationType = TextAssociationTypeDefault, double _width = 0, double _height = 0 );
void SetWidth( double _width );
double GetWidth() const;
void SetGraphicsWidth( double _width );
void SetHeight( double _height );
double GetHeight() const;
void SetGraphicsHeight( double _height );
void SetTextAssociationType( TextAssociationType _textAssociationType );
TextAssociationType GetTextAssociationType() const;
void BeginCommand( unsigned long _lType );
void EndCommand( unsigned long _lType );
void SetOOXFolder( Docx::Folder* _ooxFolder );
void SetFontManager( FontManager* _fontManager );
void AddText( const std::wstring& _text, double _dX, double _dY, double _dWidth, double _dHeight, double _dBaseLineOffset, double _xRestriction = 0, double _yRestriction = 0, const std::wstring& _gidText = _T( "" ) );
void AddImage( const std::wstring& _fileName, double _dX, double _dY, double _dWidth, double _dHeight );
void AddShape( const OOX::Logic::Shape& _shape );
void PathMoveTo( double _dX, double _dY );
void PathLineTo( double _dX, double _dY );
void PathLinesTo( const std::vector<double>& _points );
void PathCurveTo( double _x1, double _y1, double _x2, double _y2, double _x3, double _y3 );
void PathCurvesTo( const std::vector<double>& _points );
void PathArcTo( double _x, double _y, double _width, double _height, double _startAngle, double _sweepAngle );
void PathClose();
void PathEnd();
void DrawPath( long _nType, unsigned int _resize = 1000000 );
void PathStart();
void PathGetCurrentPoint( double* _dX, double* _dY );
void GetCommandParams( double* _dAngle, double* _dLeft, double* _dTop, double* _dWidth, double* _dHeight, unsigned long* _lFlags );
void SetCommandParams( double _dAngle, double _dLeft, double _dTop, double _dWidth, double _dHeight, unsigned long _lFlags );
void SetTransform( double _dA, double _dB, double _dC, double _dD, double _dE, double _dF );
void SetTransform( const TransformationMatrix& _matrix );
void GetTransform( double* _pdA, double* _pdB, double* _pdC, double* _pdD, double* _pdE, double* _pdF );
void ResetTransform();
long GetClipMode();
void SetClipMode( long _lMode );
void PathText( const std::wstring& _text, double _dX, double _dY, double _dWidth, double _dHeight, double _dBaseLineOffset );
void SetPenColor( const std::string& _penColor );
void SetPenSize( double _penSize );
void SetFontColor( const std::string& _fontColor );
void SetBrushColor( const std::string& _brushColor );
void SetFontName( const std::string& _fontName );
void SetFontSize( double _fontSize );
void SetBold( bool _value );
void SetItalic( bool _value );
void SetUnderline( bool _value );
void SetStrikeout( bool _value );
void Build() const;
std::vector<OOX::Logic::Paragraph> GetParagraphs() const;
unsigned int GetParagraphsCount() const;
};
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by ASCOfficeDocxRenderer.rc
//
#define IDS_PROJNAME 100
#define IDR_ASCOFFICEDOCXRENDERER 101
#define IDR_DOCUMENT1 201
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 202
#define _APS_NEXT_COMMAND_VALUE 32768
#define _APS_NEXT_CONTROL_VALUE 201
#define _APS_NEXT_SYMED_VALUE 102
#endif
#endif
// stdafx.cpp : source file that includes just the standard includes
// AVSOfficeDocxRenderer.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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