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
3600991e
Commit
3600991e
authored
Apr 20, 2016
by
Oleg Korshul
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
сделал общий интерфейс для открытия PdfReader, Djvu, Xps
parent
1e35ce87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
DesktopEditor/common/officedrawingfile.h
DesktopEditor/common/officedrawingfile.h
+27
-0
No files found.
DesktopEditor/common/officedrawingfile.h
0 → 100644
View file @
3600991e
#ifndef _OFFICE_DRAWING_FILE_H
#define _OFFICE_DRAWING_FILE_H
#include <string>
class
IRenderer
;
class
CApplicationFonts
;
class
CFontManager
;
class
IOfficeDrawingFile
{
public:
virtual
~
IOfficeDrawingFile
()
{}
virtual
bool
LoadFromFile
(
const
std
::
wstring
&
file
,
const
std
::
wstring
&
options
=
L""
,
const
std
::
wstring
&
owner_password
=
L""
,
const
std
::
wstring
&
user_password
=
L""
)
=
0
;
virtual
void
Close
()
=
0
;
virtual
std
::
wstring
GetTempDirectory
()
=
0
;
virtual
void
SetTempDirectory
(
const
std
::
wstring
&
directory
)
=
0
;
virtual
int
GetPagesCount
()
=
0
;
virtual
void
GetPageInfo
(
int
nPageIndex
,
double
*
pdWidth
,
double
*
pdHeight
,
double
*
pdDpiX
,
double
*
pdDpiY
)
=
0
;
virtual
void
DrawPageOnRenderer
(
IRenderer
*
pRenderer
,
int
nPageIndex
,
bool
*
pBreak
)
=
0
;
virtual
void
ConvertToRaster
(
int
nPageIndex
,
const
std
::
wstring
&
path
,
int
nImageType
)
=
0
;
};
#endif // _OFFICE_DRAWING_FILE_H
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