summaryrefslogtreecommitdiff
path: root/winrt/mupdfwinrt/mudocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'winrt/mupdfwinrt/mudocument.h')
-rw-r--r--winrt/mupdfwinrt/mudocument.h41
1 files changed, 22 insertions, 19 deletions
diff --git a/winrt/mupdfwinrt/mudocument.h b/winrt/mupdfwinrt/mudocument.h
index b315a18f..0bce8654 100644
--- a/winrt/mupdfwinrt/mudocument.h
+++ b/winrt/mupdfwinrt/mudocument.h
@@ -1,12 +1,13 @@
#pragma once
-/* This file contains the WinRT API interface between the muctx class which
+/* This file contains the interface between the muctx class, which
implements the mupdf calls and the WinRT objects enabling calling from
C#, C++, Visual Basic, JavaScript applications */
#include "muctx.h"
#include "Links.h"
#include "ppltasks.h"
+#include "ContentItem.h"
#include <winnt.h>
#include <collection.h>
@@ -19,22 +20,24 @@ namespace mupdfwinrt
{
public ref class mudocument sealed
{
-
- private:
- muctx mu_object;
- std::mutex mutex_lock;
- Platform::Collections::Vector<Links^>^ links;
- Platform::Collections::Vector<Links^>^ textsearch;
- public:
- mudocument();
- Windows::Foundation::IAsyncAction^ OpenFile(StorageFile^ file);
- int GetNumPages();
- Point GetPageSize(int page_num);
- Windows::Foundation::IAsyncOperation<InMemoryRandomAccessStream^>^
- RenderPage(int page_num, int width, int height);
- int ComputeLinks(int page_num);
- Links^ GetLink(int k);
- int ComputeTextSearch(String^ text, int page_num);
-
+ private:
+ muctx mu_object;
+ std::mutex mutex_lock;
+ Platform::Collections::Vector<Links^>^ links;
+ Platform::Collections::Vector<Links^>^ textsearch;
+ Platform::Collections::Vector<ContentItem^>^ contents;
+ public:
+ mudocument();
+ Windows::Foundation::IAsyncAction^ OpenFile(StorageFile^ file);
+ int GetNumPages(void);
+ Point GetPageSize(int page_num);
+ Windows::Foundation::IAsyncOperation<InMemoryRandomAccessStream^>^
+ RenderPage(int page_num, int width, int height);
+ int ComputeTextSearch(String^ text, int page_num);
+ Links^ GetTextSearch(int k);
+ int ComputeContents(void);
+ ContentItem^ GetContent(int k);
+ int ComputeLinks(int page_num);
+ Links^ GetLink(int k);
};
-} \ No newline at end of file
+}