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
03d9a0f9
Commit
03d9a0f9
authored
Jun 01, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
переименовал класс
parent
4fdb174c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
DesktopEditor/doctrenderer/docbuilder.net/docbuilder.net.cpp
DesktopEditor/doctrenderer/docbuilder.net/docbuilder.net.cpp
+16
-16
DesktopEditor/doctrenderer/docbuilder.net/docbuilder.net.h
DesktopEditor/doctrenderer/docbuilder.net/docbuilder.net.h
+5
-5
No files found.
DesktopEditor/doctrenderer/docbuilder.net/docbuilder.net.cpp
View file @
03d9a0f9
...
...
@@ -18,71 +18,71 @@ namespace docbuilder_net
return
(
wchar_t
*
)
System
::
Runtime
::
InteropServices
::
Marshal
::
StringToHGlobalUni
(
param
).
ToPointer
();
}
ref
class
C
Wrapp
er_Private
ref
class
C
DocBuild
er_Private
{
public:
NSDoctRenderer
::
CDocBuilder
*
m_pBuilder
;
C
Wrapp
er_Private
(
bool
bIsCheckSystemFonts
)
C
DocBuild
er_Private
(
bool
bIsCheckSystemFonts
)
{
m_pBuilder
=
new
NSDoctRenderer
::
CDocBuilder
(
bIsCheckSystemFonts
);
}
~
C
Wrapp
er_Private
()
~
C
DocBuild
er_Private
()
{
delete
m_pBuilder
;
}
};
C
Wrapper
::
CWrapp
er
(
bool
bIsCheckSystemFonts
)
C
DocBuilder
::
CDocBuild
er
(
bool
bIsCheckSystemFonts
)
{
m_pInternal
=
gcnew
C
Wrapp
er_Private
(
bIsCheckSystemFonts
);
m_pInternal
=
gcnew
C
DocBuild
er_Private
(
bIsCheckSystemFonts
);
}
C
Wrapper
::~
CWrapp
er
()
C
DocBuilder
::~
CDocBuild
er
()
{
delete
m_pInternal
;
}
bool
C
Wrapp
er
::
OpenFile
(
String
^
path
,
String
^
params
)
bool
C
DocBuild
er
::
OpenFile
(
String
^
path
,
String
^
params
)
{
return
m_pInternal
->
m_pBuilder
->
OpenFile
(
StringToStdString
(
path
),
StringToStdString
(
params
));
}
bool
C
Wrapp
er
::
CreateFile
(
int
type
)
bool
C
DocBuild
er
::
CreateFile
(
int
type
)
{
return
m_pInternal
->
m_pBuilder
->
CreateFile
(
type
);
}
void
C
Wrapp
er
::
SetTmpFolder
(
String
^
folder
)
void
C
DocBuild
er
::
SetTmpFolder
(
String
^
folder
)
{
m_pInternal
->
m_pBuilder
->
SetTmpFolder
(
StringToStdString
(
folder
));
}
bool
C
Wrapp
er
::
SaveFile
(
int
type
,
String
^
path
)
bool
C
DocBuild
er
::
SaveFile
(
int
type
,
String
^
path
)
{
return
m_pInternal
->
m_pBuilder
->
SaveFile
(
type
,
StringToStdString
(
path
));
}
void
C
Wrapp
er
::
CloseFile
()
void
C
DocBuild
er
::
CloseFile
()
{
m_pInternal
->
m_pBuilder
->
CloseFile
();
}
bool
C
Wrapp
er
::
ExecuteCommand
(
String
^
command
)
bool
C
DocBuild
er
::
ExecuteCommand
(
String
^
command
)
{
return
m_pInternal
->
m_pBuilder
->
ExecuteCommand
(
StringToStdString
(
command
));
}
bool
C
Wrapp
er
::
Run
(
String
^
path
)
bool
C
DocBuild
er
::
Run
(
String
^
path
)
{
return
m_pInternal
->
m_pBuilder
->
Run
(
StringToStdString
(
path
));
}
bool
C
Wrapp
er
::
RunText
(
String
^
text
)
bool
C
DocBuild
er
::
RunText
(
String
^
text
)
{
return
m_pInternal
->
m_pBuilder
->
RunTextW
(
StringToStdString
(
text
));
}
void
C
Wrapp
er
::
Initialize
()
void
C
DocBuild
er
::
Initialize
()
{
NSDoctRenderer
::
CDocBuilder
::
Initialize
();
}
void
C
Wrapp
er
::
Destroy
()
void
C
DocBuild
er
::
Destroy
()
{
NSDoctRenderer
::
CDocBuilder
::
Dispose
();
}
...
...
DesktopEditor/doctrenderer/docbuilder.net/docbuilder.net.h
View file @
03d9a0f9
...
...
@@ -6,12 +6,12 @@ using namespace System;
namespace
docbuilder_net
{
ref
class
C
Wrapp
er_Private
;
public
ref
class
C
Wrapp
er
ref
class
C
DocBuild
er_Private
;
public
ref
class
C
DocBuild
er
{
public:
C
Wrapp
er
(
bool
bIsCheckSystemFonts
);
~
C
Wrapp
er
();
C
DocBuild
er
(
bool
bIsCheckSystemFonts
);
~
C
DocBuild
er
();
bool
OpenFile
(
String
^
path
,
String
^
params
);
bool
CreateFile
(
int
type
);
...
...
@@ -27,6 +27,6 @@ namespace docbuilder_net
static
void
Destroy
();
private:
C
Wrapp
er_Private
^
m_pInternal
;
C
DocBuild
er_Private
^
m_pInternal
;
};
}
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