diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2014-01-08 22:42:10 -0800 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2014-01-09 14:25:57 -0800 |
commit | cd84c92e68a7a3131895c469294235159ffab4dd (patch) | |
tree | c2f3b00708a583e8b6666f2131aab026b7f108e5 /platform/winrt/mupdf_cpp/MainPage.xaml.h | |
parent | 5249664dd8178e985b4ef47af6e1772b4c7665e7 (diff) | |
download | mupdf-cd84c92e68a7a3131895c469294235159ffab4dd.tar.xz |
Add tiling into the DirectX printing code.
The tiling in x and y is needed to ensure that we can print at high
resolutions with devices that have smaller bit map sizes (e.g. the surface).
Banding only in the y dimension like we often do is not sufficient.
Also fix an open with file association bug that must of occurred with the
transition to 8.1
And update WinRT solution for recent changes in mupdf code. This includes
the addition of a few new files and the document type registration.
Diffstat (limited to 'platform/winrt/mupdf_cpp/MainPage.xaml.h')
-rw-r--r-- | platform/winrt/mupdf_cpp/MainPage.xaml.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/winrt/mupdf_cpp/MainPage.xaml.h b/platform/winrt/mupdf_cpp/MainPage.xaml.h index c7b5e88b..1cf8dd97 100644 --- a/platform/winrt/mupdf_cpp/MainPage.xaml.h +++ b/platform/winrt/mupdf_cpp/MainPage.xaml.h @@ -152,6 +152,7 @@ namespace mupdf_cpp void set(Windows::ApplicationModel::Activation::FileActivatedEventArgs^ value) { _fileEventArgs = value; } } void NotifyUser(String^ strMessage, int type); + void FromFile(); /* For association cases when we are already running */ protected: virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override; @@ -264,7 +265,7 @@ namespace mupdf_cpp void UpdateAppBarButtonViewState(); void ExitInvokedHandler(Windows::UI::Popups::IUICommand^ command); void OKInvokedHandler(Windows::UI::Popups::IUICommand^ command); - int ComputePageSize(spatial_info_t spatial_info, int page_num, Point *Point); + int ComputePageSize(spatial_info_t spatial_info, int page_num, Point *ren_size, float *scale_factor); void ScrollChanged(Platform::Object^ sender, Windows::UI::Xaml::Controls::ScrollViewerViewChangedEventArgs^ e); void LinkTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::TappedRoutedEventArgs^ e); void SearchProgress(IAsyncOperationWithProgress<int, double>^ operation, double status); @@ -309,6 +310,7 @@ namespace mupdf_cpp int GetPrintPageCount(); void SetPrintTarget(void *print_struct); void PrintProgress(PrintTask^ sender, PrintTaskProgressingEventArgs^ args); + void PrintProgressTile(int total_tiles); void PrintCompleted(PrintTask^ sender, PrintTaskCompletedEventArgs^ args); private: void Testing(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationCompletedRoutedEventArgs^ e); |