Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
9e5379fe
Commit
9e5379fe
authored
Jun 01, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
тестовый пример для .net и com dll
parent
a5f8a0c3
Changes
25
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
723 additions
and
1081 deletions
+723
-1081
DesktopEditor/doctrenderer/docbuilder.com/docbuilder.h
DesktopEditor/doctrenderer/docbuilder.com/docbuilder.h
+6
-3
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/AssemblyInfo.cpp
...t_builder/docbuilder/doctrendererwrapper/AssemblyInfo.cpp
+0
-38
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/ReadMe.txt
...er/test_builder/docbuilder/doctrendererwrapper/ReadMe.txt
+0
-38
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/Stdafx.cpp
...er/test_builder/docbuilder/doctrendererwrapper/Stdafx.cpp
+0
-5
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/Stdafx.h
...erer/test_builder/docbuilder/doctrendererwrapper/Stdafx.h
+0
-7
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/app.ico
...derer/test_builder/docbuilder/doctrendererwrapper/app.ico
+0
-0
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/app.rc
...nderer/test_builder/docbuilder/doctrendererwrapper/app.rc
+0
-0
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/doctrendererwrapper.cpp
...er/docbuilder/doctrendererwrapper/doctrendererwrapper.cpp
+0
-91
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/doctrendererwrapper.h
...lder/docbuilder/doctrendererwrapper/doctrendererwrapper.h
+0
-32
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/doctrendererwrapper.vcxproj
...ocbuilder/doctrendererwrapper/doctrendererwrapper.vcxproj
+0
-166
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/doctrendererwrapper.vcxproj.filters
...r/doctrendererwrapper/doctrendererwrapper.vcxproj.filters
+0
-52
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/resource.h
...er/test_builder/docbuilder/doctrendererwrapper/resource.h
+0
-3
DesktopEditor/doctrenderer/test_builder/docbuilder/test/test.csproj.user
...octrenderer/test_builder/docbuilder/test/test.csproj.user
+0
-6
DesktopEditor/doctrenderer/test_builder/wrappers/App.config
DesktopEditor/doctrenderer/test_builder/wrappers/App.config
+5
-5
DesktopEditor/doctrenderer/test_builder/wrappers/MainForm.Designer.cs
...r/doctrenderer/test_builder/wrappers/MainForm.Designer.cs
+47
-47
DesktopEditor/doctrenderer/test_builder/wrappers/MainForm.cs
DesktopEditor/doctrenderer/test_builder/wrappers/MainForm.cs
+114
-96
DesktopEditor/doctrenderer/test_builder/wrappers/MainForm.resx
...opEditor/doctrenderer/test_builder/wrappers/MainForm.resx
+119
-119
DesktopEditor/doctrenderer/test_builder/wrappers/Program.cs
DesktopEditor/doctrenderer/test_builder/wrappers/Program.cs
+22
-22
DesktopEditor/doctrenderer/test_builder/wrappers/Properties/AssemblyInfo.cs
...renderer/test_builder/wrappers/Properties/AssemblyInfo.cs
+36
-36
DesktopEditor/doctrenderer/test_builder/wrappers/Properties/Resources.Designer.cs
...er/test_builder/wrappers/Properties/Resources.Designer.cs
+71
-71
DesktopEditor/doctrenderer/test_builder/wrappers/Properties/Resources.resx
...trenderer/test_builder/wrappers/Properties/Resources.resx
+116
-116
DesktopEditor/doctrenderer/test_builder/wrappers/Properties/Settings.Designer.cs
...rer/test_builder/wrappers/Properties/Settings.Designer.cs
+30
-30
DesktopEditor/doctrenderer/test_builder/wrappers/Properties/Settings.settings
...nderer/test_builder/wrappers/Properties/Settings.settings
+7
-7
DesktopEditor/doctrenderer/test_builder/wrappers/test.csproj
DesktopEditor/doctrenderer/test_builder/wrappers/test.csproj
+122
-91
DesktopEditor/doctrenderer/test_builder/wrappers/test.sln
DesktopEditor/doctrenderer/test_builder/wrappers/test.sln
+28
-0
No files found.
DesktopEditor/doctrenderer/docbuilder.com/docbuilder.h
View file @
9e5379fe
...
...
@@ -35,6 +35,9 @@ __interface IASCDocBuilder : IDispatch
[
id
(
107
)]
HRESULT
RunText
([
in
]
BSTR
commands
,
[
out
,
retval
]
VARIANT_BOOL
*
result
);
[
id
(
108
)]
HRESULT
SetProperty
([
in
]
BSTR
sproperty
);
[
id
(
201
)]
HRESULT
Initialize
(
void
);
[
id
(
202
)]
HRESULT
Dispose
(
void
);
[
id
(
1001
)]
HRESULT
SetAdditionalParam
([
in
]
BSTR
ParamName
,
[
in
]
VARIANT
ParamValue
);
[
id
(
1002
)]
HRESULT
GetAdditionalParam
([
in
]
BSTR
ParamName
,
[
out
,
retval
]
VARIANT
*
ParamValue
);
};
...
...
@@ -131,7 +134,7 @@ public:
if
(
NULL
==
m_pBuilder
)
return
S_FALSE
;
bool
bRet
=
m_pBuilder
->
Run
(
commands
);
bool
bRet
=
m_pBuilder
->
Run
TextW
(
commands
);
*
result
=
bRet
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
S_OK
;
}
...
...
@@ -155,12 +158,12 @@ public:
return
S_OK
;
}
static
HRESULT
Initialize
()
STDMETHOD
(
Initialize
)
()
{
NSDoctRenderer
::
CDocBuilder
::
Initialize
();
return
S_OK
;
}
static
HRESULT
Dispose
()
STDMETHOD
(
Dispose
)
()
{
NSDoctRenderer
::
CDocBuilder
::
Dispose
();
return
S_OK
;
...
...
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/AssemblyInfo.cpp
deleted
100644 → 0
View file @
a5f8a0c3
#include "stdafx.h"
using
namespace
System
;
using
namespace
System
::
Reflection
;
using
namespace
System
::
Runtime
::
CompilerServices
;
using
namespace
System
::
Runtime
::
InteropServices
;
using
namespace
System
::
Security
::
Permissions
;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[
assembly
:
AssemblyTitleAttribute
(
L"doctrendererwrapper"
)];
[
assembly
:
AssemblyDescriptionAttribute
(
L""
)];
[
assembly
:
AssemblyConfigurationAttribute
(
L""
)];
[
assembly
:
AssemblyCompanyAttribute
(
L""
)];
[
assembly
:
AssemblyProductAttribute
(
L"doctrendererwrapper"
)];
[
assembly
:
AssemblyCopyrightAttribute
(
L"Copyright (c) 2016"
)];
[
assembly
:
AssemblyTrademarkAttribute
(
L""
)];
[
assembly
:
AssemblyCultureAttribute
(
L""
)];
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the value or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersionAttribute
(
"1.0.*"
)];
[
assembly
:
ComVisible
(
false
)];
[
assembly
:
CLSCompliantAttribute
(
true
)];
\ No newline at end of file
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/ReadMe.txt
deleted
100644 → 0
View file @
a5f8a0c3
========================================================================
DYNAMIC LINK LIBRARY : doctrendererwrapper Project Overview
========================================================================
AppWizard has created this doctrendererwrapper DLL for you.
This file contains a summary of what you will find in each of the files that
make up your doctrendererwrapper application.
doctrendererwrapper.vcxproj
This is the main project file for VC++ projects generated using an Application Wizard.
It contains information about the version of Visual C++ that generated the file, and
information about the platforms, configurations, and project features selected with the
Application Wizard.
doctrendererwrapper.vcxproj.filters
This is the filters file for VC++ projects generated using an Application Wizard.
It contains information about the association between the files in your project
and the filters. This association is used in the IDE to show grouping of files with
similar extensions under a specific node (for e.g. ".cpp" files are associated with the
"Source Files" filter).
doctrendererwrapper.cpp
This is the main DLL source file.
doctrendererwrapper.h
This file contains a class declaration.
AssemblyInfo.cpp
Contains custom attributes for modifying assembly metadata.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
/////////////////////////////////////////////////////////////////////////////
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/Stdafx.cpp
deleted
100644 → 0
View file @
a5f8a0c3
// stdafx.cpp : source file that includes just the standard includes
// doctrendererwrapper.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/Stdafx.h
deleted
100644 → 0
View file @
a5f8a0c3
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently
#pragma once
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/app.ico
deleted
100644 → 0
View file @
a5f8a0c3
10.7 KB
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/app.rc
deleted
100644 → 0
View file @
a5f8a0c3
Binary files a/DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/app.rc and /dev/null differ
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/doctrendererwrapper.cpp
deleted
100644 → 0
View file @
a5f8a0c3
// This is the main DLL file.
#include "stdafx.h"
#include "doctrendererwrapper.h"
#include "../../../docbuilder.h"
#ifdef _WIN64
#pragma comment(lib, "../../../../../build/lib/win_64/doctrenderer.lib")
#else
#pragma comment(lib, "../../../../../build/lib/win_32/doctrenderer.lib")
#endif
namespace
doctrendererwrapper
{
static
wchar_t
*
StringToStdString
(
String
^
param
)
{
return
(
wchar_t
*
)
System
::
Runtime
::
InteropServices
::
Marshal
::
StringToHGlobalUni
(
param
).
ToPointer
();
}
ref
class
CWrapper_Private
{
public:
NSDoctRenderer
::
CDocBuilder
*
m_pBuilder
;
CWrapper_Private
(
bool
bIsCheckSystemFonts
)
{
m_pBuilder
=
new
NSDoctRenderer
::
CDocBuilder
(
bIsCheckSystemFonts
);
}
~
CWrapper_Private
()
{
delete
m_pBuilder
;
}
};
CWrapper
::
CWrapper
(
bool
bIsCheckSystemFonts
)
{
m_pInternal
=
gcnew
CWrapper_Private
(
bIsCheckSystemFonts
);
}
CWrapper
::~
CWrapper
()
{
delete
m_pInternal
;
}
bool
CWrapper
::
OpenFile
(
String
^
path
,
String
^
params
)
{
return
m_pInternal
->
m_pBuilder
->
OpenFile
(
StringToStdString
(
path
),
StringToStdString
(
params
));
}
bool
CWrapper
::
CreateFile
(
int
type
)
{
return
m_pInternal
->
m_pBuilder
->
CreateFile
(
type
);
}
void
CWrapper
::
SetTmpFolder
(
String
^
folder
)
{
m_pInternal
->
m_pBuilder
->
SetTmpFolder
(
StringToStdString
(
folder
));
}
bool
CWrapper
::
SaveFile
(
int
type
,
String
^
path
)
{
return
m_pInternal
->
m_pBuilder
->
SaveFile
(
type
,
StringToStdString
(
path
));
}
void
CWrapper
::
CloseFile
()
{
m_pInternal
->
m_pBuilder
->
CloseFile
();
}
bool
CWrapper
::
ExecuteCommand
(
String
^
command
)
{
return
m_pInternal
->
m_pBuilder
->
ExecuteCommand
(
StringToStdString
(
command
));
}
bool
CWrapper
::
Run
(
String
^
path
)
{
return
m_pInternal
->
m_pBuilder
->
Run
(
StringToStdString
(
path
));
}
bool
CWrapper
::
RunText
(
String
^
text
)
{
return
m_pInternal
->
m_pBuilder
->
RunTextW
(
StringToStdString
(
text
));
}
void
CWrapper
::
Initialize
()
{
NSDoctRenderer
::
CDocBuilder
::
Initialize
();
}
void
CWrapper
::
Destroy
()
{
NSDoctRenderer
::
CDocBuilder
::
Dispose
();
}
}
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/doctrendererwrapper.h
deleted
100644 → 0
View file @
a5f8a0c3
// doctrendererwrapper.h
#pragma once
using
namespace
System
;
namespace
doctrendererwrapper
{
ref
class
CWrapper_Private
;
public
ref
class
CWrapper
{
public:
CWrapper
(
bool
bIsCheckSystemFonts
);
~
CWrapper
();
bool
OpenFile
(
String
^
path
,
String
^
params
);
bool
CreateFile
(
int
type
);
void
SetTmpFolder
(
String
^
folder
);
bool
SaveFile
(
int
type
,
String
^
path
);
void
CloseFile
();
bool
ExecuteCommand
(
String
^
command
);
bool
Run
(
String
^
path
);
bool
RunText
(
String
^
text_commands
);
static
void
Initialize
();
static
void
Destroy
();
private:
CWrapper_Private
^
m_pInternal
;
};
}
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/doctrendererwrapper.vcxproj
deleted
100644 → 0
View file @
a5f8a0c3
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"Build"
ToolsVersion=
"12.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ItemGroup
Label=
"ProjectConfigurations"
>
<ProjectConfiguration
Include=
"Debug|Win32"
>
<Configuration>
Debug
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Debug|x64"
>
<Configuration>
Debug
</Configuration>
<Platform>
x64
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|Win32"
>
<Configuration>
Release
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|x64"
>
<Configuration>
Release
</Configuration>
<Platform>
x64
</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup
Label=
"Globals"
>
<ProjectGuid>
{10124551-28B8-4CA0-8FBA-420CF9602CF3}
</ProjectGuid>
<TargetFrameworkVersion>
v4.5
</TargetFrameworkVersion>
<Keyword>
ManagedCProj
</Keyword>
<RootNamespace>
doctrendererwrapper
</RootNamespace>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.Default.props"
/>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<UseDebugLibraries>
true
</UseDebugLibraries>
<PlatformToolset>
v120
</PlatformToolset>
<CLRSupport>
true
</CLRSupport>
<CharacterSet>
Unicode
</CharacterSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
Label=
"Configuration"
>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<UseDebugLibraries>
true
</UseDebugLibraries>
<PlatformToolset>
v120
</PlatformToolset>
<CLRSupport>
true
</CLRSupport>
<CharacterSet>
Unicode
</CharacterSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
v120
</PlatformToolset>
<CLRSupport>
true
</CLRSupport>
<CharacterSet>
Unicode
</CharacterSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
Label=
"Configuration"
>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
v120
</PlatformToolset>
<CLRSupport>
true
</CLRSupport>
<CharacterSet>
Unicode
</CharacterSet>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.props"
/>
<ImportGroup
Label=
"ExtensionSettings"
>
</ImportGroup>
<ImportGroup
Label=
"PropertySheets"
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
</ImportGroup>
<ImportGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
Label=
"PropertySheets"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
</ImportGroup>
<ImportGroup
Label=
"PropertySheets"
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
</ImportGroup>
<ImportGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
Label=
"PropertySheets"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
</ImportGroup>
<PropertyGroup
Label=
"UserMacros"
/>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
<LinkIncremental>
true
</LinkIncremental>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
<LinkIncremental>
true
</LinkIncremental>
<OutDir>
$(SolutionDir)\test\bin
</OutDir>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
<LinkIncremental>
false
</LinkIncremental>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
>
<LinkIncremental>
false
</LinkIncremental>
<OutDir>
$(SolutionDir)\test\bin
</OutDir>
</PropertyGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
<ClCompile>
<WarningLevel>
Level3
</WarningLevel>
<Optimization>
Disabled
</Optimization>
<PreprocessorDefinitions>
WIN32;_DEBUG;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PrecompiledHeader>
Use
</PrecompiledHeader>
</ClCompile>
<Link>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<AdditionalDependencies
/>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
<ClCompile>
<WarningLevel>
Level3
</WarningLevel>
<Optimization>
Disabled
</Optimization>
<PreprocessorDefinitions>
WIN32;_DEBUG;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PrecompiledHeader>
Use
</PrecompiledHeader>
</ClCompile>
<Link>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<AdditionalDependencies>
</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
<ClCompile>
<WarningLevel>
Level3
</WarningLevel>
<PreprocessorDefinitions>
WIN32;NDEBUG;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PrecompiledHeader>
Use
</PrecompiledHeader>
</ClCompile>
<Link>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<AdditionalDependencies
/>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
>
<ClCompile>
<WarningLevel>
Level3
</WarningLevel>
<PreprocessorDefinitions>
WIN32;NDEBUG;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PrecompiledHeader>
Use
</PrecompiledHeader>
</ClCompile>
<Link>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<AdditionalDependencies>
</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Xml"
/>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"doctrendererwrapper.h"
/>
<ClInclude
Include=
"resource.h"
/>
<ClInclude
Include=
"Stdafx.h"
/>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"AssemblyInfo.cpp"
/>
<ClCompile
Include=
"doctrendererwrapper.cpp"
/>
<ClCompile
Include=
"Stdafx.cpp"
>
<PrecompiledHeader
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
Create
</PrecompiledHeader>
<PrecompiledHeader
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
Create
</PrecompiledHeader>
<PrecompiledHeader
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
Create
</PrecompiledHeader>
<PrecompiledHeader
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
>
Create
</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Text
Include=
"ReadMe.txt"
/>
</ItemGroup>
<ItemGroup>
<ResourceCompile
Include=
"app.rc"
/>
</ItemGroup>
<ItemGroup>
<Image
Include=
"app.ico"
/>
</ItemGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<ImportGroup
Label=
"ExtensionTargets"
>
</ImportGroup>
</Project>
\ No newline at end of file
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/doctrendererwrapper.vcxproj.filters
deleted
100644 → 0
View file @
a5f8a0c3
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"4.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ItemGroup>
<Filter
Include=
"Source Files"
>
<UniqueIdentifier>
{4FC737F1-C7A5-4376-A066-2A32D752A2FF}
</UniqueIdentifier>
<Extensions>
cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
</Extensions>
</Filter>
<Filter
Include=
"Header Files"
>
<UniqueIdentifier>
{93995380-89BD-4b04-88EB-625FBE52EBFB}
</UniqueIdentifier>
<Extensions>
h;hh;hpp;hxx;hm;inl;inc;xsd
</Extensions>
</Filter>
<Filter
Include=
"Resource Files"
>
<UniqueIdentifier>
{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
</UniqueIdentifier>
<Extensions>
rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"doctrendererwrapper.h"
>
<Filter>
Header Files
</Filter>
</ClInclude>
<ClInclude
Include=
"Stdafx.h"
>
<Filter>
Header Files
</Filter>
</ClInclude>
<ClInclude
Include=
"resource.h"
>
<Filter>
Header Files
</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"doctrendererwrapper.cpp"
>
<Filter>
Source Files
</Filter>
</ClCompile>
<ClCompile
Include=
"AssemblyInfo.cpp"
>
<Filter>
Source Files
</Filter>
</ClCompile>
<ClCompile
Include=
"Stdafx.cpp"
>
<Filter>
Source Files
</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Text
Include=
"ReadMe.txt"
/>
</ItemGroup>
<ItemGroup>
<ResourceCompile
Include=
"app.rc"
>
<Filter>
Resource Files
</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<Image
Include=
"app.ico"
>
<Filter>
Resource Files
</Filter>
</Image>
</ItemGroup>
</Project>
\ No newline at end of file
DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/resource.h
deleted
100644 → 0
View file @
a5f8a0c3
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by app.rc
DesktopEditor/doctrenderer/test_builder/docbuilder/test/test.csproj.user
deleted
100644 → 0
View file @
a5f8a0c3
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"12.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"
>
<EnableUnmanagedDebugging>
true
</EnableUnmanagedDebugging>
</PropertyGroup>
</Project>
\ No newline at end of file
DesktopEditor/doctrenderer/test_builder/
docbuilder/test
/App.config
→
DesktopEditor/doctrenderer/test_builder/
wrappers
/App.config
View file @
9e5379fe
DesktopEditor/doctrenderer/test_builder/
docbuilder/test
/MainForm.Designer.cs
→
DesktopEditor/doctrenderer/test_builder/
wrappers
/MainForm.Designer.cs
View file @
9e5379fe
DesktopEditor/doctrenderer/test_builder/
docbuilder/test
/MainForm.cs
→
DesktopEditor/doctrenderer/test_builder/
wrappers
/MainForm.cs
View file @
9e5379fe
using
System
;
//#define NET_DLL
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
...
...
@@ -27,7 +29,6 @@ namespace test
AddTab
(
"builder.SetTmpFolder(\"D:/BuilderTest\");\r\n"
+
"#builder.CreateFile(\"docx\");\r\n"
+
"builder.OpenFile(\"D:/TESTFILES/images.docx\", \"\");\r\n"
+
"Add_Text(\"Test\");\r\n"
+
"builder.SaveFile(\"pdf\", \"D:/TESTFILES/images.pdf\");\r\n"
+
"builder.CloseFile();"
);
...
...
@@ -53,21 +54,38 @@ namespace test
_buttonRun
.
ForeColor
=
Color
.
White
;
this
.
Controls
.
Add
(
_buttonRun
);
doctrendererwrapper
.
CWrapper
.
Initialize
();
#if (NET_DLL)
docbuilder_net
.
CDocBuilder
.
Initialize
();
#else
ascdocbuilder
.
IASCDocBuilder
oBuilder
=
new
ascdocbuilder
.
CASCDocBuilder
();
oBuilder
.
Initialize
();
#endif
this
.
Disposed
+=
MainForm_Disposed
;
}
void
MainForm_Disposed
(
object
sender
,
EventArgs
e
)
{
doctrendererwrapper
.
CWrapper
.
Destroy
();
#if (NET_DLL)
docbuilder_net
.
CDocBuilder
.
Destroy
();
#else
ascdocbuilder
.
IASCDocBuilder
oBuilder
=
new
ascdocbuilder
.
CASCDocBuilder
();
oBuilder
.
Dispose
();
#endif
}
void
_buttonRun_Click
(
object
sender
,
EventArgs
e
)
{
doctrendererwrapper
.
CWrapper
oBuilder
=
new
doctrendererwrapper
.
CWrapper
(
false
);
#if (NET_DLL)
docbuilder_net
.
CDocBuilder
oBuilder
=
new
docbuilder_net
.
CDocBuilder
(
true
);
oBuilder
.
RunText
(
this
.
m_oTabControl
.
SelectedTab
.
Controls
[
0
].
Text
);
oBuilder
.
Dispose
();
#else
ascdocbuilder
.
IASCDocBuilder
oBuilder
=
new
ascdocbuilder
.
CASCDocBuilder
();
oBuilder
.
CreateInstance
(
true
);
oBuilder
.
RunText
(
this
.
m_oTabControl
.
SelectedTab
.
Controls
[
0
].
Text
);
System
.
Runtime
.
InteropServices
.
Marshal
.
ReleaseComObject
(
oBuilder
);
#endif
}
void
_buttonNew_Click
(
object
sender
,
EventArgs
e
)
...
...
DesktopEditor/doctrenderer/test_builder/
docbuilder/test
/MainForm.resx
→
DesktopEditor/doctrenderer/test_builder/
wrappers
/MainForm.resx
View file @
9e5379fe
DesktopEditor/doctrenderer/test_builder/
docbuilder/test
/Program.cs
→
DesktopEditor/doctrenderer/test_builder/
wrappers
/Program.cs
View file @
9e5379fe
DesktopEditor/doctrenderer/test_builder/
docbuilder/test
/Properties/AssemblyInfo.cs
→
DesktopEditor/doctrenderer/test_builder/
wrappers
/Properties/AssemblyInfo.cs
View file @
9e5379fe
DesktopEditor/doctrenderer/test_builder/
docbuilder/test
/Properties/Resources.Designer.cs
→
DesktopEditor/doctrenderer/test_builder/
wrappers
/Properties/Resources.Designer.cs
View file @
9e5379fe
DesktopEditor/doctrenderer/test_builder/
docbuilder/test
/Properties/Resources.resx
→
DesktopEditor/doctrenderer/test_builder/
wrappers
/Properties/Resources.resx
View file @
9e5379fe
DesktopEditor/doctrenderer/test_builder/
docbuilder/test
/Properties/Settings.Designer.cs
→
DesktopEditor/doctrenderer/test_builder/
wrappers
/Properties/Settings.Designer.cs
View file @
9e5379fe
DesktopEditor/doctrenderer/test_builder/
docbuilder/test
/Properties/Settings.settings
→
DesktopEditor/doctrenderer/test_builder/
wrappers
/Properties/Settings.settings
View file @
9e5379fe
DesktopEditor/doctrenderer/test_builder/
docbuilder/test
/test.csproj
→
DesktopEditor/doctrenderer/test_builder/
wrappers
/test.csproj
View file @
9e5379fe
...
...
@@ -31,10 +31,30 @@
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|x64'"
>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\x64\Debug\
</OutputPath>
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<DebugType>
full
</DebugType>
<PlatformTarget>
x64
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<CodeAnalysisRuleSet>
MinimumRecommendedRules.ruleset
</CodeAnalysisRuleSet>
<Prefer32Bit>
true
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|x64'"
>
<OutputPath>
bin\x64\Release\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<Optimize>
true
</Optimize>
<DebugType>
pdbonly
</DebugType>
<PlatformTarget>
x64
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<CodeAnalysisRuleSet>
MinimumRecommendedRules.ruleset
</CodeAnalysisRuleSet>
<Prefer32Bit>
true
</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"doc
trendererwrapper, Version=1.0.5924.24907, Culture=neutral, processorArchitecture=AMD64"
>
<Reference
Include=
"doc
builder.net, Version=1.0.5996.29843, Culture=neutral, processorArchitecture=AMD64"
>
<SpecificVersion>
False
</SpecificVersion>
<HintPath>
bin\doctrendererwrapper.dll
</HintPath>
<HintPath>
..\..\docbuilder.net\bin\x64\Debug\docbuilder.net.dll
</HintPath>
</Reference>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Core"
/>
...
...
@@ -81,6 +101,17 @@
<ItemGroup>
<None
Include=
"App.config"
/>
</ItemGroup>
<ItemGroup>
<COMReference
Include=
"ascdocbuilder"
>
<Guid>
{B43F4AFD-2278-4175-992C-D7AE390507D8}
</Guid>
<VersionMajor>
1
</VersionMajor>
<VersionMinor>
0
</VersionMinor>
<Lcid>
0
</Lcid>
<WrapperTool>
tlbimp
</WrapperTool>
<Isolated>
False
</Isolated>
<EmbedInteropTypes>
True
</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
...
...
DesktopEditor/doctrenderer/test_builder/
docbuilder/docbuilder
.sln
→
DesktopEditor/doctrenderer/test_builder/
wrappers/test
.sln
View file @
9e5379fe
...
...
@@ -3,57 +3,24 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30723.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "doctrendererwrapper", "doctrendererwrapper\doctrendererwrapper.vcxproj", "{10124551-28B8-4CA0-8FBA-420CF9602CF3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "test\test.csproj", "{85EE7B43-D2BF-4E8B-A103-7D1845A21587}"
ProjectSection(ProjectDependencies) = postProject
{10124551-28B8-4CA0-8FBA-420CF9602CF3} = {10124551-28B8-4CA0-8FBA-420CF9602CF3}
EndProjectSection
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "test.csproj", "{85EE7B43-D2BF-4E8B-A103-7D1845A21587}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|Mixed Platforms = Release|Mixed Platforms
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|Any CPU.ActiveCfg = Debug|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|ARM.ActiveCfg = Debug|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|Mixed Platforms.Build.0 = Debug|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|Win32.ActiveCfg = Debug|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|Win32.Build.0 = Debug|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|x64.ActiveCfg = Debug|x64
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|x64.Build.0 = Debug|x64
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|Any CPU.ActiveCfg = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|ARM.ActiveCfg = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|Mixed Platforms.ActiveCfg = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|Mixed Platforms.Build.0 = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|Win32.ActiveCfg = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|Win32.Build.0 = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|x64.ActiveCfg = Release|Win32
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Any CPU.Build.0 = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|ARM.ActiveCfg = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Win32.ActiveCfg = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|x64.ActiveCfg = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|x64.Build.0 = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|x64.ActiveCfg = Debug|x64
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|x64.Build.0 = Debug|x64
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Any CPU.ActiveCfg = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Any CPU.Build.0 = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|ARM.ActiveCfg = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Win32.ActiveCfg = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|x64.ActiveCfg = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|x64.ActiveCfg = Release|x64
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment