From 7ea99e3a8951e265d1437a77dcfee069de0edf76 Mon Sep 17 00:00:00 2001 From: Michael Vrhel Date: Tue, 9 Sep 2014 16:31:31 -0700 Subject: Rename of winrt to windows due to presence on gsview in this folder. The contents of this folder will contain both winrt and gsview projects which are shared in a common visual studio 2013 solution. --- platform/winrt/mupdf_cpp/PrintPage.h | 57 ------------------------------------ 1 file changed, 57 deletions(-) delete mode 100644 platform/winrt/mupdf_cpp/PrintPage.h (limited to 'platform/winrt/mupdf_cpp/PrintPage.h') diff --git a/platform/winrt/mupdf_cpp/PrintPage.h b/platform/winrt/mupdf_cpp/PrintPage.h deleted file mode 100644 index 725a5a43..00000000 --- a/platform/winrt/mupdf_cpp/PrintPage.h +++ /dev/null @@ -1,57 +0,0 @@ -#pragma once -#include -#include -#include -#include "MainPage.xaml.h" - -using namespace Microsoft::WRL; -using namespace mupdf_cpp; - -/* This is the interface to the print thread calls */ -class PrintPages : public Microsoft::WRL::RuntimeClass, - ABI::Windows::Graphics::Printing::IPrintDocumentSource, - IPrintDocumentPageSource, - IPrintPreviewPageCollection> -{ -private: - InspectableClass(L"Windows.Graphics.Printing.IPrintDocumentSource", BaseTrust); - -public: - HRESULT RuntimeClassInitialize(IUnknown* pageRenderer) - { - HRESULT hr = (pageRenderer != nullptr) ? S_OK : E_INVALIDARG; - - if (SUCCEEDED(hr)) - { - m_paginate_called = false; - m_totalpages = 1; - m_height = 0.f; - m_width = 0.f; - m_renderer = reinterpret_cast(pageRenderer); - } - return hr; - } - IFACEMETHODIMP GetPreviewPageCollection(IPrintDocumentPackageTarget* doc_target, - IPrintPreviewPageCollection** doc_collection); - IFACEMETHODIMP MakeDocument(IInspectable* doc_options, - IPrintDocumentPackageTarget* doc_target); - IFACEMETHODIMP Paginate(uint32 current_jobpage, IInspectable* doc_options); - IFACEMETHODIMP MakePage(uint32 desired_jobpage, float width, float height); - void ResetPreview(); - -private: - float TransformedPageSize(float desired_width, float desired_height, - Windows::Foundation::Size* preview_size); - uint32 m_totalpages; - bool m_paginate_called; - float m_height; - float m_width; - D2D1_RECT_F m_imageable_rect; - MainPage^ m_renderer; - - Microsoft::WRL::ComPtr m_dxgi_previewtarget; - - void DrawPreviewSurface(float width, float height, float scale_in, - D2D1_RECT_F contentBox, uint32 page_num, - IPrintPreviewDxgiPackageTarget* previewTarget); -}; -- cgit v1.2.3