Skip to content

Commit

Permalink
[1947] Replace deprecated scale preference by the new one
Browse files Browse the repository at this point in the history
Conflicts:
	doc/plugins/org.polarsys.capella.tipsandtricks.doc/html/Tips and tricks/13_Diagram Export and Printing/13_Diagram Export and Printing.html
	doc/plugins/org.polarsys.capella.tipsandtricks.doc/html/Tips and tricks/13_Diagram Export and Printing/13_Diagram Export and Printing.mediawiki

Change-Id: Ie5a176b126bcc08520a92ab4f9eb6b358f09916e
Signed-off-by: Philippe DUL <philippe.dul@thalesgroup.com>
  • Loading branch information
pdulth committed Feb 9, 2018
1 parent f4bc7da commit 6e2db68
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ public void start(BundleContext context) throws Exception {
SiriusEditPlugin.getPlugin().getPreferenceStore()
.setValue(SiriusPreferencesKeys.PREF_EMPTY_AIRD_FRAGMENT_ON_CONTROL.name(), true);

// Deactivate by default Sirius scale option (Use 0 to have similar
// behavior as before).
SiriusEditPlugin.getPlugin().getPreferenceStore().setDefault(SiriusUIPreferencesKeys.PREF_SCALE_LEVEL_DIAGRAMS_ON_EXPORT.name(), 0);
// Set the default Sirius scale option (20%).
SiriusEditPlugin.getPlugin().getPreferenceStore().setDefault(SiriusUIPreferencesKeys.PREF_SCALE_LEVEL_DIAGRAMS_ON_EXPORT.name(), 2);
}

/**
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>13_Diagram Export and Printing</title><link type="text/css" rel="stylesheet" href="PLUGINS_ROOT/org.polarsys.capella.doc/html/styles.css"/></head><body><h1 id="Diagram_Export_and_Printing">Diagram Export and Printing</h1><h2 id="Export_As_Image">Export As Image</h2><p>You can <b>export a diagram to an image file</b>. In order to do that right-click on the diagram and choose the menu <b><i>Export diagram as image</i></b> or on the icon present in the tab-bar.</p><p><img border="0" src="../../Images/Tips58.png"/></p><p><img border="0" src="../../Images/Tips59.png"/></p><p>You can:</p><ul><li>Select the export location</li><li>Choose the format among JPG, PNG, SVG, BMP, GIF</li><li>Choose the quality of the exported image (image size)</li><li>Export it to HTML Format</li></ul><h2 id="Batch_Image_Export">Batch Image Export</h2><p>It is possible <b>to export all diagrams of a representations file at once</b>. </p><p>In order to do that; right-click on your representations file (aird file) then choose the menu <b><i>Export representations as image</i></b>.</p><p><img border="0" src="../../Images/Tips61.png"/></p><p><img border="0" src="../../Images/Tips60.png"/></p><p>You can:</p><ul><li>Select the export location</li><li>Choose the format among JPG, PNG, SVG, BMP, GIF</li><li>Choose the quality of the exported image (image size)</li><li>Export it to HTML Format</li></ul><p><b>Note</b>: The export performance will decrease and will take more time the more you increase the image size.</p><h2 id="Set_Export_Image_Size_as_Preference">Set Export Image Size as Preference</h2><p>In the <b>Sirius &gt; Sirius Diagram</b> preference page, you can set the size of the exported images as a preference so that this size will be used for all your export.</p><p><img border="0" src="../../Images/export_image_pref.png"/></p><h2 id="Print_Area_Preview">Print Area Preview</h2><p>Before sending a diagram to a printer, it can be interesting to arrange the elements of the diagram to avoid them to be split by a page break, to help doing so use the command <b><i>Diagram &gt; View &gt; page Breaks</i></b> to display page breaks on the diagram background.</p><p><div class="thumb"><div class="thumbinner" style="width:602px;"><a href="../../Images/Tips69.png" class="image"><img class="thumbimage" width="600" border="0" src="../../Images/Tips69.png"/></a></div></div></p><p><b>Note</b>: Use the same command to hide the page breaks displayed on the diagram.</p></body></html>
<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>13_Diagram Export and Printing</title><link type="text/css" rel="stylesheet" href="PLUGINS_ROOT/org.polarsys.capella.doc/html/styles.css"/></head><body><h1 id="Diagram_Export_and_Printing">Diagram Export and Printing</h1><h2 id="Export_As_Image">Export As Image</h2><p>You can <b>export a diagram to an image file</b>. In order to do that right-click on the diagram and choose the menu <b><i>Export diagram as image</i></b> or on the icon present in the tab-bar.</p><p><img border="0" src="../../Images/Tips58.png"/></p><p><img border="0" src="../../Images/Tips59.png"/></p><p>You can:</p><ul><li>Select the export location</li><li>Choose the format among JPG, PNG, SVG, BMP, GIF</li><li>Choose the quality of the exported image (image size)</li><li>Choose the quality of the exported image (image size)</li><li>Export it to HTML Format</li></ul><h2 id="Batch_Image_Export">Batch Image Export</h2><p>It is possible <b>to export all diagrams of a representations file at once</b>. </p><p>In order to do that; right-click on your representations file (aird file) then choose the menu <b><i>Export representations as image</i></b>.</p><p><img border="0" src="../../Images/Tips61.png"/></p><p><img border="0" src="../../Images/Tips60.png"/></p><p>You can:</p><ul><li>Select the export location</li><li>Choose the format among JPG, PNG, SVG, BMP, GIF</li><li>Choose the quality of the exported image (image size)</li><li>Choose the quality of the exported image (image size)</li><li>Export it to HTML Format</li></ul><p><b>Note</b>: The export performance will decrease and will take more time the more you increase the image size.</p><h2 id="Set_Export_Image_Size_as_Preference">Set Export Image Size as Preference</h2><p>In the <b>Sirius &gt; Sirius Diagram</b> preference page, you can set the size of the exported images as a preference so that this size will be used for all your export.</p><p><img border="0" src="../../Images/export_image_pref.png"/></p><h2 id="Print_Area_Preview">Print Area Preview</h2><p>Before sending a diagram to a printer, it can be interesting to arrange the elements of the diagram to avoid them to be split by a page break, to help doing so use the command <b><i>Diagram &gt; View &gt; page Breaks</i></b> to display page breaks on the diagram background.</p><p><div class="thumb"><div class="thumbinner" style="width:602px;"><a href="../../Images/Tips69.png" class="image"><img class="thumbimage" width="600" border="0" src="../../Images/Tips69.png"/></a></div></div></p><p><b>Note</b>: Use the same command to hide the page breaks displayed on the diagram.</p></body></html>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ You can:
* Select the export location
* Choose the format among JPG, PNG, SVG, BMP, GIF
* Choose the quality of the exported image (image size)
* Choose the quality of the exported image (image size)
* Export it to HTML Format
==Batch Image Export==
Expand All @@ -29,6 +30,7 @@ You can:
* Select the export location
* Choose the format among JPG, PNG, SVG, BMP, GIF
* Choose the quality of the exported image (image size)
* Choose the quality of the exported image (image size)
* Export it to HTML Format
'''Note''': The export performance will decrease and will take more time the more you increase the image size.
Expand Down

0 comments on commit 6e2db68

Please sign in to comment.