summaryrefslogtreecommitdiff
path: root/platform/winrt
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2014-04-18 22:47:46 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2014-09-09 16:39:34 -0700
commit154922fa139a31768338eabcf87aa74871e85ece (patch)
tree4ccd0ac6fee4c495ff8461577d5062cb33492a66 /platform/winrt
parent75679d3ed3896ac44d6e804345404bc19a8b98c7 (diff)
downloadmupdf-154922fa139a31768338eabcf87aa74871e85ece.tar.xz
UI set up for additional features.
Diffstat (limited to 'platform/winrt')
-rw-r--r--platform/winrt/gsview/MainWindow.xaml6
-rw-r--r--platform/winrt/gsview/MainWindow.xaml.cs23
-rw-r--r--platform/winrt/libmupdf_winRT.vcxproj1
-rw-r--r--platform/winrt/libmupdf_winRT.vcxproj.filters5
4 files changed, 32 insertions, 3 deletions
diff --git a/platform/winrt/gsview/MainWindow.xaml b/platform/winrt/gsview/MainWindow.xaml
index 2ce168b2..cfd02b29 100644
--- a/platform/winrt/gsview/MainWindow.xaml
+++ b/platform/winrt/gsview/MainWindow.xaml
@@ -156,6 +156,7 @@
<MenuItem Header="PWG" Click="SavePWG"/>
<MenuItem Header="PNM" Click="SavePNM"/>
<MenuItem Header="TEXT" Click="SaveText"/>
+ <MenuItem Header="HTML" Click="SaveHTML"/>
</MenuItem>
<MenuItem Header="_Close" >
<MenuItem.Icon>
@@ -197,6 +198,7 @@
</MenuItem>
</MenuItem>
<MenuItem Header="_Edit" >
+ <MenuItem Header="Extract PDF Pages" Click="ExtractPages"/>
<MenuItem Header="Copy Page" Click="CopyPage">
<MenuItem.Icon>
<Image Source="Resources/copy.ico" />
@@ -230,8 +232,8 @@
<MenuItem Header="Zoom Control" IsCheckable="true" Checked="ShowFooter" Unchecked="HideFooter"/>
</MenuItem>
- <MenuItem Header="_Help" />
- <MenuItem Header="About"/>
+ <MenuItem Header="_Help" Click="OnHelpClick"/>
+ <MenuItem Header="About" Click="OnAboutClick"/>
</Menu>
<!-- List of icons for page navigation, print, etc -->
diff --git a/platform/winrt/gsview/MainWindow.xaml.cs b/platform/winrt/gsview/MainWindow.xaml.cs
index 8b953f9c..d8dee6ef 100644
--- a/platform/winrt/gsview/MainWindow.xaml.cs
+++ b/platform/winrt/gsview/MainWindow.xaml.cs
@@ -1706,10 +1706,17 @@ namespace gsview
{
SaveFile(Save_Type_t.TEXT);
}
+
+ private void SaveHTML(object sender, RoutedEventArgs e)
+ {
+
+ }
+
private void SavePDF13(object sender, RoutedEventArgs e)
{
SaveFile(Save_Type_t.PDF13);
}
+
private void SavePDFX3_Gray(object sender, RoutedEventArgs e)
{
if (m_outputintents.gray_icc == null)
@@ -1719,6 +1726,7 @@ namespace gsview
}
SaveFile(Save_Type_t.PDFX3_GRAY);
}
+
private void SavePDFX3_CMYK(object sender, RoutedEventArgs e)
{
if (m_outputintents.cmyk_icc == null)
@@ -1728,6 +1736,7 @@ namespace gsview
}
SaveFile(Save_Type_t.PDFX3_CMYK);
}
+
private void SavePDFA1_RGB(object sender, RoutedEventArgs e)
{
if (m_outputintents.rgb_icc == null)
@@ -3404,5 +3413,19 @@ namespace gsview
*/
#endregion TextSelection
+ private void OnAboutClick(object sender, RoutedEventArgs e)
+ {
+
+ }
+
+ private void OnHelpClick(object sender, RoutedEventArgs e)
+ {
+
+ }
+
+ private void ExtractPages(object sender, RoutedEventArgs e)
+ {
+
+ }
}
} \ No newline at end of file
diff --git a/platform/winrt/libmupdf_winRT.vcxproj b/platform/winrt/libmupdf_winRT.vcxproj
index d75558aa..c8adbcd5 100644
--- a/platform/winrt/libmupdf_winRT.vcxproj
+++ b/platform/winrt/libmupdf_winRT.vcxproj
@@ -158,6 +158,7 @@
<ClCompile Include="..\..\source\pdf\pdf-xref.c" />
<ClCompile Include="..\..\source\tiff\mutiff.c" />
<ClCompile Include="..\..\source\tools\pdfclean.c" />
+ <ClCompile Include="..\..\source\tools\pdfinfo.c" />
<ClCompile Include="..\..\source\xps\xps-common.c" />
<ClCompile Include="..\..\source\xps\xps-doc.c" />
<ClCompile Include="..\..\source\xps\xps-glyphs.c" />
diff --git a/platform/winrt/libmupdf_winRT.vcxproj.filters b/platform/winrt/libmupdf_winRT.vcxproj.filters
index 912f91ff..a5e907aa 100644
--- a/platform/winrt/libmupdf_winRT.vcxproj.filters
+++ b/platform/winrt/libmupdf_winRT.vcxproj.filters
@@ -424,7 +424,10 @@
<Filter>pdf</Filter>
</ClCompile>
<ClCompile Include="..\..\source\tools\pdfclean.c">
- <Filter>fitz</Filter>
+ <Filter>tools</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\source\tools\pdfinfo.c">
+ <Filter>tools</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>