|
@@ -8,8 +8,8 @@
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:pageeditdialogs="clr-namespace:PDF_Office.ViewModels.Dialog.PageEditDialogs"
|
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
|
- Width="529"
|
|
|
- Height="482"
|
|
|
+ Width="586"
|
|
|
+ Height="498"
|
|
|
d:DataContext="{d:DesignInstance Type=pageeditdialogs:ExtractDialogViewModel}"
|
|
|
d:DesignHeight="498"
|
|
|
d:DesignWidth="586"
|
|
@@ -27,37 +27,40 @@
|
|
|
<cus:PageTurningPreview x:Name="ConverterPreview" Loaded="ConverterPreview_Loaded" VerticalAlignment="Top"></cus:PageTurningPreview>
|
|
|
</Grid>
|
|
|
<Grid Grid.Column="1">
|
|
|
- <StackPanel Orientation="Vertical" Margin="18,16,0,0">
|
|
|
+ <StackPanel Orientation="Vertical" Margin="16,2,0,0">
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
- <TextBlock Text="Excel工作簿设置:" Height="20"/>
|
|
|
- <StackPanel Orientation="Vertical" Margin="0,7,0,0">
|
|
|
- <RadioButton Name="AnyContentRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=AnyContentRadioBtn,Path=Name}" IsChecked="True">
|
|
|
- <TextBlock Text="所有内容"/>
|
|
|
+ <TextBlock Text="ExcelExcel Workbook Settings" Height="20" Style="{StaticResource PropertyHeaderLv2}"/>
|
|
|
+ <StackPanel Orientation="Vertical" Margin="0,10,0,0">
|
|
|
+ <RadioButton Name="AnyContentRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=AnyContentRadioBtn,Path=Name}" IsChecked="True" Padding="9,0,0,0"
|
|
|
+ FontFamily="Segoe UI">
|
|
|
+ <TextBlock Text="All contents"/>
|
|
|
</RadioButton>
|
|
|
- <ComboBox Margin="0,8,0,0" Width="228" Height="28.55" IsEnabled="{Binding ElementName=AnyContentRadioBtn,Path=IsChecked}" SelectedIndex="{Binding AnyContentSelectIndex}">
|
|
|
+ <ComboBox Margin="0,8,0,0" Width="326" Height="32" HorizontalAlignment="Left" IsEnabled="{Binding ElementName=AnyContentRadioBtn,Path=IsChecked}" SelectedIndex="{Binding AnyContentSelectIndex}" >
|
|
|
<ComboBoxItem Content="为每个页面创建工作表 "/>
|
|
|
<ComboBoxItem Content="为文档创建单个工作表"/>
|
|
|
</ComboBox>
|
|
|
- <RadioButton Margin="0,10,0,0" Name="OnlyTableRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=OnlyTableRadioBtn,Path=Name}">
|
|
|
- <TextBlock Text="只提取表格"/>
|
|
|
+ <RadioButton Margin="0,8,0,0" Name="OnlyTableRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=OnlyTableRadioBtn,Path=Name}" Padding="9,0,0,0"
|
|
|
+ FontFamily="Segoe UI">
|
|
|
+ <TextBlock Text="Only Tables"/>
|
|
|
</RadioButton>
|
|
|
- <ComboBox Name="OnlyTableComboBox" Margin="0,8,0,0" Width="228" Height="28.55" IsEnabled="{Binding ElementName=OnlyTableRadioBtn,Path=IsChecked}" SelectedIndex="{Binding OnlyTableSelectIndex}">
|
|
|
+ <ComboBox Name="OnlyTableComboBox" Margin="0,8,0,0" Width="326" Height="32" HorizontalAlignment="Left" IsEnabled="{Binding ElementName=OnlyTableRadioBtn,Path=IsChecked}" SelectedIndex="{Binding OnlyTableSelectIndex}">
|
|
|
<ComboBoxItem Content="支持一个表格提取到单独的工作表"/>
|
|
|
<ComboBoxItem Content="支持按页面提取表格到单独的工作表"/>
|
|
|
<ComboBoxItem Content="支持将所有表格提取到一个工作表"/>
|
|
|
</ComboBox>
|
|
|
- <RadioButton Margin="0,10,0,0" Name="OnlyTextRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=OnlyTextRadioBtn,Path=Name}">
|
|
|
- <TextBlock Text="只提取文字"></TextBlock>
|
|
|
+ <RadioButton Margin="0,8,0,0" Name="OnlyTextRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=OnlyTextRadioBtn,Path=Name}" Padding="9,0,0,0"
|
|
|
+ FontFamily="Segoe UI">
|
|
|
+ <TextBlock Text="Only Text"></TextBlock>
|
|
|
</RadioButton>
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
- <StackPanel Orientation="Vertical" Margin="0,16,0,0">
|
|
|
+ <StackPanel Orientation="Vertical" Margin="0,18,0,0">
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
- <TextBlock Text="文本识别设置:" HorizontalAlignment="Left" Width="84" Height="20"/>
|
|
|
- <CheckBox Name="OCRCheckBox" Margin="0,5,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}">
|
|
|
- <TextBlock Text="在需要时识别文本"/>
|
|
|
+ <TextBlock Text="Text Recognition Settings:" HorizontalAlignment="Left" Height="20" Style="{StaticResource PropertyHeaderLv2}"/>
|
|
|
+ <CheckBox Name="OCRCheckBox" Margin="0,10,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}" Padding="9,0,0,0">
|
|
|
+ <TextBlock Text="Recognize text if needed"/>
|
|
|
</CheckBox>
|
|
|
- <ComboBox IsEnabled="{Binding ElementName=OCRCheckBox,Path=IsChecked}" Margin="0,6,0,0" Width="228" Height="28.55" HorizontalAlignment="Left" SelectedIndex="{Binding LanguageSelectedIndex}">
|
|
|
+ <ComboBox IsEnabled="{Binding ElementName=OCRCheckBox,Path=IsChecked}" Margin="0,8,0,0" Width="326" Height="32" HorizontalAlignment="Left" SelectedIndex="{Binding LanguageSelectedIndex}">
|
|
|
<ComboBoxItem Content="Chinese Simplified"/>
|
|
|
<ComboBoxItem Content="Chinese Traditional"/>
|
|
|
<ComboBoxItem Content="English"/>
|
|
@@ -65,9 +68,9 @@
|
|
|
<ComboBoxItem Content="Korean"/>
|
|
|
</ComboBox>
|
|
|
</StackPanel>
|
|
|
- <StackPanel Orientation="Vertical" Margin="0,14,0,0">
|
|
|
- <TextBlock Text="页面范围" Height="20" Width="48" HorizontalAlignment="Left"/>
|
|
|
- <cus:WritableComboBox x:Name="PageRangeComboBox" Margin="0,4,0,0" Width="228" Height="32" HorizontalAlignment="Left" IsCurrentPage="True" Text="{Binding PageRangeText, Mode=TwoWay}" SelectedIndex="{Binding PageRangeSelectIndex, Mode=TwoWay}" MaxPageRange="{Binding MaxPageRange}" Loaded="PageRangeComboBox_Loaded">
|
|
|
+ <StackPanel Orientation="Vertical" Margin="0,18,0,0">
|
|
|
+ <TextBlock Text="Page Range" Height="20" HorizontalAlignment="Left" Style="{StaticResource PropertyHeaderLv2}"/>
|
|
|
+ <cus:WritableComboBox x:Name="PageRangeComboBox" Margin="0,10,0,0" Width="326" Height="32" HorizontalAlignment="Left" IsCurrentPage="True" Text="{Binding PageRangeText, Mode=TwoWay}" SelectedIndex="{Binding PageRangeSelectIndex, Mode=TwoWay}" MaxPageRange="{Binding MaxPageRange}" Loaded="PageRangeComboBox_Loaded">
|
|
|
<i:Interaction.Triggers>
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
<i:InvokeCommandAction Command="{Binding CmbPageSelectionChanged}" CommandParameter="{Binding ElementName=ConverterPreview}" />
|
|
@@ -85,11 +88,11 @@
|
|
|
</cus:DialogContent.Content>
|
|
|
<cus:DialogContent.BottmBar>
|
|
|
<Grid>
|
|
|
- <Button Background="WhiteSmoke" Width="98" Height="32" Margin="0,0,400,0" Command="{Binding BatchConverterCommand}" Style="{StaticResource btn.sec}">
|
|
|
+ <!--<Button Background="WhiteSmoke" Width="98" Height="32" Margin="0,0,400,0" Command="{Binding BatchConverterCommand}" Style="{StaticResource btn.sec}">
|
|
|
<Border>
|
|
|
<TextBlock Text="批量处理" ></TextBlock>
|
|
|
</Border>
|
|
|
- </Button>
|
|
|
+ </Button>-->
|
|
|
<Button
|
|
|
Width="98"
|
|
|
Height="32"
|