From cd84c92e68a7a3131895c469294235159ffab4dd Mon Sep 17 00:00:00 2001 From: Michael Vrhel Date: Wed, 8 Jan 2014 22:42:10 -0800 Subject: 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. --- platform/winrt/mupdf_cpp/MainPage.xaml.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'platform/winrt/mupdf_cpp/MainPage.xaml.h') 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^ 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); -- cgit v1.2.3