TemplateDesigner: Redesign des TemplateSkripts
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<Border Grid.Row="1" Padding="18,12" Background="#172554">
|
||||
<Grid ColumnDefinitions="*,Auto">
|
||||
<StackPanel><TextBlock Text="Vorlagen-Designer" Foreground="White" FontWeight="Bold" FontSize="20"/>
|
||||
<TextBlock Text="Portable PDF-Briefpakete · Schema 1" Foreground="#BFDBFE" FontSize="12"/></StackPanel>
|
||||
<TextBlock Text="Portable PDF-Briefpakete · Layoutformat 3" Foreground="#BFDBFE" FontSize="12"/></StackPanel>
|
||||
<StackPanel Grid.Column="1" HorizontalAlignment="Right">
|
||||
<TextBlock x:Name="DocumentNameText" Foreground="White" FontWeight="SemiBold" HorizontalAlignment="Right"/>
|
||||
<TextBlock x:Name="DocumentPathText" Foreground="#BFDBFE" FontSize="11" HorizontalAlignment="Right"/>
|
||||
@@ -171,10 +171,53 @@
|
||||
</Grid>
|
||||
</TabItem>
|
||||
|
||||
<TabItem Header="Seiten & Flows">
|
||||
<ScrollViewer Padding="8">
|
||||
<StackPanel Spacing="14">
|
||||
<TextBlock Text="Seitentypen" Classes="section"/>
|
||||
<TextBlock Text="Jeder Seitentyp beschreibt nur seine eigenen festen Elemente und Flow-Slots."
|
||||
TextWrapping="Wrap" Opacity="0.7" FontSize="12"/>
|
||||
<ComboBox ItemsSource="{Binding PageTemplateNames}" SelectedItem="{Binding SelectedPageTemplate, Mode=TwoWay}"/>
|
||||
<Grid ColumnDefinitions="*,8,Auto">
|
||||
<TextBox Text="{Binding NewPageTemplateName}" PlaceholderText="z. B. continuation"/>
|
||||
<Button Grid.Column="2" Content="Seitentyp anlegen" Click="OnAddPageTemplate"/>
|
||||
</Grid>
|
||||
<Separator/>
|
||||
<TextBlock Text="Content-Flows" Classes="section"/>
|
||||
<TextBlock Text="Ein Flow läuft automatisch in den gleichnamigen Slot der ersten und anschließend der Folgeseiten."
|
||||
TextWrapping="Wrap" Opacity="0.7" FontSize="12"/>
|
||||
<ComboBox ItemsSource="{Binding ContentFlowNames}" SelectedItem="{Binding SelectedContentFlow, Mode=TwoWay}"/>
|
||||
<Grid ColumnDefinitions="*,8,Auto">
|
||||
<TextBox Text="{Binding NewFlowName}" PlaceholderText="z. B. body"/>
|
||||
<Button Grid.Column="2" Content="Flow anlegen" Click="OnAddContentFlow"/>
|
||||
</Grid>
|
||||
<Separator/>
|
||||
<TextBlock Text="Flow-Slot auf ausgewählter Seite" Classes="section"/>
|
||||
<TextBlock Text="Die Bounding Box wird rechts violett gestrichelt dargestellt und kann dort verschoben und skaliert werden."
|
||||
TextWrapping="Wrap" Opacity="0.7" FontSize="12"/>
|
||||
<Grid ColumnDefinitions="*,6,*,6,*,6,*">
|
||||
<StackPanel><TextBlock Text="X" Classes="label"/><TextBox Text="{Binding NewX}"/></StackPanel>
|
||||
<StackPanel Grid.Column="2"><TextBlock Text="Y" Classes="label"/><TextBox Text="{Binding NewY}"/></StackPanel>
|
||||
<StackPanel Grid.Column="4"><TextBlock Text="Breite" Classes="label"/><TextBox Text="{Binding NewWidth}"/></StackPanel>
|
||||
<StackPanel Grid.Column="6"><TextBlock Text="Höhe" Classes="label"/><TextBox Text="{Binding NewHeight}"/></StackPanel>
|
||||
</Grid>
|
||||
<Button Content="Flow-Slot anlegen" HorizontalAlignment="Left" Click="OnAddFlowSlot"/>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</TabItem>
|
||||
|
||||
<TabItem Header="Elemente">
|
||||
<ScrollViewer Padding="8">
|
||||
<StackPanel Spacing="12">
|
||||
<TextBlock Text="Element hinzufügen" Classes="section"/>
|
||||
<StackPanel><TextBlock Text="Einfügen in" Classes="label"/>
|
||||
<ComboBox ItemsSource="{Binding ElementScopes}" SelectedItem="{Binding NewElementScope}"/></StackPanel>
|
||||
<Grid ColumnDefinitions="*,8,*">
|
||||
<StackPanel><TextBlock Text="Seitentyp für feste Elemente" Classes="label"/>
|
||||
<ComboBox ItemsSource="{Binding PageTemplateNames}" SelectedItem="{Binding SelectedPageTemplate}"/></StackPanel>
|
||||
<StackPanel Grid.Column="2"><TextBlock Text="Content-Flow für fließende Elemente" Classes="label"/>
|
||||
<ComboBox ItemsSource="{Binding ContentFlowNames}" SelectedItem="{Binding SelectedContentFlow}"/></StackPanel>
|
||||
</Grid>
|
||||
<StackPanel><TextBlock Text="Elementtyp" Classes="label"/>
|
||||
<ComboBox ItemsSource="{Binding ElementTypes}" SelectedItem="{Binding NewElementType}"/></StackPanel>
|
||||
<Grid ColumnDefinitions="*,6,*,6,*,6,*">
|
||||
@@ -192,8 +235,8 @@
|
||||
<Button Content="Element ins Layout übernehmen" Click="OnAddElement"/>
|
||||
<TextBlock Text="Tipp: Koordinaten können rechts im Messmodus direkt aus der Vorschau übernommen werden."
|
||||
TextWrapping="Wrap" Opacity="0.65" FontSize="11"/>
|
||||
<TextBlock Text="Bekannte Einschränkung: TEXTBOX-Überlauf wird in v1 nicht automatisch auf Folgeseiten verteilt."
|
||||
TextWrapping="Wrap" Foreground="#B45309" FontSize="12"/>
|
||||
<TextBlock Text="Elemente im Content-Flow verwenden Reihenfolge, gap und keep-with-next; ihre X/Y-Koordinaten werden nicht benötigt."
|
||||
TextWrapping="Wrap" Foreground="#166534" FontSize="12"/>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</TabItem>
|
||||
@@ -210,11 +253,19 @@
|
||||
<Border Grid.Column="2" Background="#E2E8F0" Padding="18">
|
||||
<Grid RowDefinitions="Auto,Auto,*,Auto">
|
||||
<Grid ColumnDefinitions="*,Auto">
|
||||
<TextBlock Text="Visueller Layout-Editor" Classes="section"/>
|
||||
<StackPanel><TextBlock Text="Visueller Layout-Editor" Classes="section"/>
|
||||
<ComboBox ItemsSource="{Binding PageTemplateNames}" SelectedItem="{Binding SelectedPageTemplate, Mode=TwoWay}"
|
||||
MinWidth="150" Margin="0,5,0,0"/>
|
||||
<Button Content="Seitentyp anzeigen" Margin="0,5,0,0" Click="OnPageTemplateSelectionChanged"/></StackPanel>
|
||||
<TextBlock Grid.Column="1" Text="{Binding OverlayCoordinates}" FontFamily="Monospace"
|
||||
FontSize="11" VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
<StackPanel Grid.Row="1" Spacing="7" Margin="0,10,0,0">
|
||||
<Grid ColumnDefinitions="Auto,8,*">
|
||||
<TextBlock Text="Vorschau" VerticalAlignment="Center" Classes="label"/>
|
||||
<ComboBox Grid.Column="2" ItemsSource="{Binding PreviewPages}" SelectedItem="{Binding SelectedPreviewPage}"
|
||||
DisplayMemberBinding="{Binding Display}" PlaceholderText="Noch nicht gerendert"/>
|
||||
</Grid>
|
||||
<Grid ColumnDefinitions="*,8,*">
|
||||
<Button Grid.Column="0" Content="Koordinaten messen" Click="OnMeasureOverlayMode"/>
|
||||
<Button Grid.Column="2" Content="Elemente verschieben" Click="OnEditOverlayMode"/>
|
||||
@@ -232,6 +283,7 @@
|
||||
LayoutSource="{Binding LayoutSource, Mode=TwoWay}"
|
||||
PageWidth="{Binding OverlayPageWidth}" PageHeight="{Binding OverlayPageHeight}"
|
||||
PageUnit="{Binding OverlayPageUnit}" Mode="{Binding OverlayMode}"
|
||||
PageTemplateName="{Binding SelectedPageTemplate}"
|
||||
SnapToGrid="{Binding SnapOverlayToGrid}" GridSize="{Binding OverlayGridSize}"
|
||||
MeasurementCompleted="OnOverlayMeasurementCompleted"
|
||||
ElementGeometryChanged="OnOverlayElementGeometryChanged"
|
||||
|
||||
Reference in New Issue
Block a user