From bd608dea4271ae256bad7dacee6acc605c2d6580 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 16 May 2013 20:42:13 +0200 Subject: winrt: Strip trailing whitespace. --- winrt/mupdf_cpp/App.xaml | 2 +- winrt/mupdf_cpp/Common/StandardStyles.xaml | 16 +-- winrt/mupdf_cpp/DocumentPage.cpp | 2 - winrt/mupdf_cpp/DocumentPage.h | 27 +++-- winrt/mupdf_cpp/MainPage.xaml | 31 +++--- winrt/mupdf_cpp/MainPage.xaml.cpp | 158 ++++++++++++++--------------- winrt/mupdf_cpp/MainPage.xaml.h | 16 +-- winrt/mupdf_cpp/Package.appxmanifest | 2 +- winrt/mupdf_cpp/RectList.h | 16 +-- winrt/mupdfwinrt/ContentItem.h | 2 +- winrt/mupdfwinrt/Links.h | 4 +- winrt/mupdfwinrt/muctx.cpp | 26 ++--- winrt/mupdfwinrt/muctx.h | 14 +-- winrt/mupdfwinrt/mudocument.cpp | 26 ++--- winrt/mupdfwinrt/mudocument.h | 12 +-- 15 files changed, 174 insertions(+), 180 deletions(-) (limited to 'winrt') diff --git a/winrt/mupdf_cpp/App.xaml b/winrt/mupdf_cpp/App.xaml index 4dabc5cc..dfb5d11c 100644 --- a/winrt/mupdf_cpp/App.xaml +++ b/winrt/mupdf_cpp/App.xaml @@ -8,7 +8,7 @@ - diff --git a/winrt/mupdf_cpp/Common/StandardStyles.xaml b/winrt/mupdf_cpp/Common/StandardStyles.xaml index 414be872..716cf8e2 100644 --- a/winrt/mupdf_cpp/Common/StandardStyles.xaml +++ b/winrt/mupdf_cpp/Common/StandardStyles.xaml @@ -142,7 +142,7 @@ - + - diff --git a/winrt/mupdf_cpp/DocumentPage.cpp b/winrt/mupdf_cpp/DocumentPage.cpp index ace6138f..3ee99dcd 100644 --- a/winrt/mupdf_cpp/DocumentPage.cpp +++ b/winrt/mupdf_cpp/DocumentPage.cpp @@ -13,5 +13,3 @@ namespace mupdf_cpp _isPropertyChangedObserved = false; } } - - diff --git a/winrt/mupdf_cpp/DocumentPage.h b/winrt/mupdf_cpp/DocumentPage.h index 3307ec3a..1ea1f669 100644 --- a/winrt/mupdf_cpp/DocumentPage.h +++ b/winrt/mupdf_cpp/DocumentPage.h @@ -3,7 +3,6 @@ #include "RectList.h" #include - /* Used for binding to the xaml in the scroll view. */ using namespace Windows::UI::Xaml::Media::Imaging; using namespace Windows::UI::Xaml::Controls; @@ -17,11 +16,10 @@ typedef enum { NOTSET } Page_Content_t; - namespace mupdf_cpp { // enables data binding with this class - [Windows::UI::Xaml::Data::Bindable] + [Windows::UI::Xaml::Data::Bindable] public ref class DocumentPage sealed : Windows::UI::Xaml::Data::INotifyPropertyChanged { private: @@ -74,8 +72,8 @@ namespace mupdf_cpp void set(int value) { if (value > NOTSET) - { - throw ref new Platform::InvalidArgumentException(); + { + throw ref new Platform::InvalidArgumentException(); } content = (Page_Content_t) value; } @@ -90,9 +88,9 @@ namespace mupdf_cpp void set(int value) { - if (value < 0) - { - throw ref new Platform::InvalidArgumentException(); + if (value < 0) + { + throw ref new Platform::InvalidArgumentException(); } height = value; } @@ -107,9 +105,9 @@ namespace mupdf_cpp void set(int value) { - if (value < 0) - { - throw ref new Platform::InvalidArgumentException(); + if (value < 0) + { + throw ref new Platform::InvalidArgumentException(); } width = value; } @@ -124,9 +122,9 @@ namespace mupdf_cpp void set(double value) { - if (value < 0) - { - throw ref new Platform::InvalidArgumentException(); + if (value < 0) + { + throw ref new Platform::InvalidArgumentException(); } zoom = value; } @@ -150,7 +148,6 @@ namespace mupdf_cpp bool _isPropertyChangedObserved; event Windows::UI::Xaml::Data::PropertyChangedEventHandler^ _privatePropertyChanged; - protected: /// /// Notifies listeners that a property value has changed. diff --git a/winrt/mupdf_cpp/MainPage.xaml b/winrt/mupdf_cpp/MainPage.xaml index 184b3668..9ddd2873 100644 --- a/winrt/mupdf_cpp/MainPage.xaml +++ b/winrt/mupdf_cpp/MainPage.xaml @@ -72,7 +72,7 @@ -