summaryrefslogtreecommitdiff
path: root/winrt/mupdf_cpp/MainPage.xaml.h
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2013-06-18 12:59:52 -0700
committerRobin Watts <robin.watts@artifex.com>2013-06-19 15:41:00 +0100
commit86a56e1c36ce3936b9f6065b7f055cdc986e7f55 (patch)
tree2d4521519bf07dfeb6b9149f33c4cb462af1531e /winrt/mupdf_cpp/MainPage.xaml.h
parent8a22a7a76be8d9b439ee73383edbdf9d554bf3eb (diff)
downloadmupdf-86a56e1c36ce3936b9f6065b7f055cdc986e7f55.tar.xz
Addition of code to allow files to be opened from skydrive and for app to be file activated.
Also fixed a few issues for when we open a new file and close the current contents. There was an issue with the displaylist cache clean up.
Diffstat (limited to 'winrt/mupdf_cpp/MainPage.xaml.h')
-rw-r--r--winrt/mupdf_cpp/MainPage.xaml.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/winrt/mupdf_cpp/MainPage.xaml.h b/winrt/mupdf_cpp/MainPage.xaml.h
index 5769389d..203ad64e 100644
--- a/winrt/mupdf_cpp/MainPage.xaml.h
+++ b/winrt/mupdf_cpp/MainPage.xaml.h
@@ -61,11 +61,24 @@ namespace mupdf_cpp
public:
MainPage();
+ property Windows::ApplicationModel::Activation::ProtocolActivatedEventArgs^ ProtocolEvent
+ {
+ Windows::ApplicationModel::Activation::ProtocolActivatedEventArgs^ get() { return _protocolEventArgs; }
+ void set(Windows::ApplicationModel::Activation::ProtocolActivatedEventArgs^ value) { _protocolEventArgs = value; }
+ }
+
+ property Windows::ApplicationModel::Activation::FileActivatedEventArgs^ FileEvent
+ {
+ Windows::ApplicationModel::Activation::FileActivatedEventArgs^ get() { return _fileEventArgs; }
+ void set(Windows::ApplicationModel::Activation::FileActivatedEventArgs^ value) { _fileEventArgs = value; }
+ }
+
protected:
virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override;
virtual void OnKeyDown(Windows::UI::Xaml::Input::KeyRoutedEventArgs^ e) override;
private:
+ Windows::Foundation::EventRegistrationToken _pageLoadedHandlerToken;
Vector<DocumentPage^>^ m_docPages;
Vector<DocumentPage^>^ m_thumbnails;
Vector<IVector<RectList^>^>^ m_page_link_list;
@@ -157,5 +170,8 @@ namespace mupdf_cpp
void NonTouchZoom(int zoom);
void ShowSearchBox();
bool IsNotStandardView();
+ void Page_Loaded(Object^ sender, RoutedEventArgs^ e);
+ Windows::ApplicationModel::Activation::ProtocolActivatedEventArgs^ _protocolEventArgs;
+ Windows::ApplicationModel::Activation::FileActivatedEventArgs^ _fileEventArgs;
};
}