-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.Fixed the issue where formatting HTML caused it to break. 2.Added ignoreCase support for tags, allowing usage of <c> or <C> interchangeably. 3.Application errors and UI have been translated into English. 4.The algorithm for creating justified tables has been rewritten. 5.Several minor changes were made.
- Loading branch information
Showing
6 changed files
with
237 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,51 @@ | ||
<Window x:Class="PrintHTML.MainWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
Title="Yazdırma Şablonu" Height="768" Width="1024" WindowStartupLocation="CenterScreen"> | ||
Title="Flexible Print Application" Height="600" Width="800" WindowStartupLocation="CenterScreen"> | ||
|
||
<Grid Margin="10"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="*"/> | ||
<RowDefinition Height="Auto"/> | ||
</Grid.RowDefinitions> | ||
|
||
<StackPanel Grid.Row="0" Margin="0,0,0,10"> | ||
<StackPanel Grid.Row="0"> | ||
<DockPanel Margin="0,0,0,5"> | ||
<Label Content="Printers:" Width="120"/> | ||
<ComboBox x:Name="ComboBoxPrinters" SelectionChanged="ComboBoxPrinters_SelectionChanged"/> | ||
</DockPanel> | ||
|
||
<DockPanel Margin="0,0,0,5"> | ||
<Label Content="Yazıcı Seçin:" Width="100"/> | ||
<ComboBox x:Name="cbPrinters" SelectionChanged="cbPrinters_SelectionChanged"/> | ||
<Label Content="Characters Per Line:" Width="120"/> | ||
<TextBox x:Name="TextBoxMaxWidth" Width="50" HorizontalAlignment="Left" TextChanged="TextBoxMaxWidth_TextChanged" PreviewTextInput="TextBoxMaxWidth_PreviewTextInput" Text="42"/> | ||
<Label Content="58MM = 32 char, 80MM = 42 char" Width="200" HorizontalAlignment="Left"/> | ||
</DockPanel> | ||
</StackPanel> | ||
|
||
<Grid Grid.Row="1"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*"/> | ||
<ColumnDefinition Width="373"/> | ||
<ColumnDefinition Width="331"/> | ||
</Grid.ColumnDefinitions> | ||
<TextBox Grid.Column="0" x:Name="txtHtmlContent" | ||
|
||
<TextBox Grid.Column="0" x:Name="TextBoxContent" | ||
AcceptsReturn="True" | ||
TextWrapping="Wrap" | ||
FontSize="12" | ||
VerticalScrollBarVisibility="Auto" | ||
HorizontalScrollBarVisibility="Auto" | ||
FontFamily="Consolas" | ||
Text="<div style="text-align: center; color: red;">YAZDIRMA ŞABLONU KULLANIM KILAVUZU</div>

<F>=
<T>Metin Hizalama Örnekleri:
<L>Bu metin sola hizalı
<C>Bu metin ortalı
<R>Bu metin sağa hizalı

<F>=

<T>Kalın Yazı Örnekleri:
<EB>
Bu metin kalın olacak
<DB>

<F>=

<T>Tablo Örneği:
<J>Ürün | Stok
<J>Laptop | 25
<J>Mouse | 100
<J>Klavye | 50

<F>=

<C>beratarpa.com"/> | ||
<FlowDocumentScrollViewer x:Name="flowDocumentScrollViewer" Grid.Column="1"/> | ||
Text="<div style="text-align: center; color: red;">PRINT TEMPLATE USER GUIDE</div>

<F>=
<T>Text Alignment Examples:
<L>This text is left-aligned
<C>This text is centered
<R>This text is right-aligned

<F>=

<T>Bold Text Examples:
<EB>
This text will be bold
<DB>

<F>=

<T>Table Example:
<J>Product | Stock
<J>Laptop | 25
<J>Mouse | 100
<J>Keyboard | 50

<F>=

<C>beratarpa.com"/> | ||
|
||
<GridSplitter Grid.Column="0" Width="5" HorizontalAlignment="Right" VerticalAlignment="Stretch" Background="Gray"/> | ||
|
||
<FlowDocumentScrollViewer x:Name="FlowDocumentScrollViewer" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"/> | ||
</Grid> | ||
|
||
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,0"> | ||
<Button x:Name="btnPreview" Content="Önizleme" Width="100" Margin="0,0,10,0" Click="btnPreview_Click"/> | ||
<Button x:Name="btnPrint" Content="Yazdır" Width="100" Click="btnPrint_Click"/> | ||
<Button x:Name="ButtonPreview" Content="Preview" Width="100" Margin="0,0,10,0" Click="ButtonPreview_Click"/> | ||
<Button x:Name="ButtonPrint" Content="Print" Width="100" Click="ButtonPrint_Click"/> | ||
</StackPanel> | ||
</Grid> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.