From 4bbaecd77c87afee5453dc89a9e033d4048c909e Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Sun, 29 May 2022 13:08:42 -0300 Subject: tdf#107078 New way to load color palette As color, hatching and gradient palettes are now handled by extensions, this patch include: - Refactor of xhp tags - move palette_file from simpress/ to shared/ - adjust tree files - add entry to shared/guide tree Change-Id: Ied501dd86431d26d09ed91249c22f422620b16d6 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/135096 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- AllLangHelp_shared.mk | 1 + AllLangHelp_simpress.mk | 1 - source/auxiliary/sdraw.tree | 4 +- source/auxiliary/shared.tree | 1 + source/auxiliary/simpress.tree | 4 +- source/text/shared/guide/palette_files.xhp | 97 ++++++++++++++++++++++++ source/text/simpress/guide/line_arrow_styles.xhp | 12 +-- source/text/simpress/guide/main.xhp | 2 +- source/text/simpress/guide/palette_files.xhp | 96 ----------------------- 9 files changed, 110 insertions(+), 108 deletions(-) create mode 100644 source/text/shared/guide/palette_files.xhp delete mode 100644 source/text/simpress/guide/palette_files.xhp diff --git a/AllLangHelp_shared.mk b/AllLangHelp_shared.mk index 344f2bc4d3..ab4363430e 100644 --- a/AllLangHelp_shared.mk +++ b/AllLangHelp_shared.mk @@ -727,6 +727,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,shared,\ helpcontent2/source/text/shared/guide/numbering_stop \ helpcontent2/source/text/shared/guide/openpgp \ helpcontent2/source/text/shared/guide/pageformat_max \ + helpcontent2/source/text/shared/guide/palette_files \ helpcontent2/source/text/shared/guide/paintbrush \ helpcontent2/source/text/shared/guide/pasting \ helpcontent2/source/text/shared/guide/print_blackwhite \ diff --git a/AllLangHelp_simpress.mk b/AllLangHelp_simpress.mk index cdda7431f3..db4e7f6c9b 100644 --- a/AllLangHelp_simpress.mk +++ b/AllLangHelp_simpress.mk @@ -180,7 +180,6 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,simpress,\ helpcontent2/source/text/simpress/guide/move_object \ helpcontent2/source/text/simpress/guide/orgchart \ helpcontent2/source/text/simpress/guide/page_copy \ - helpcontent2/source/text/simpress/guide/palette_files \ helpcontent2/source/text/simpress/guide/photo_album \ helpcontent2/source/text/simpress/guide/presenter_console \ helpcontent2/source/text/simpress/guide/print_tofit \ diff --git a/source/auxiliary/sdraw.tree b/source/auxiliary/sdraw.tree index a1d7784b44..1e1831aa94 100644 --- a/source/auxiliary/sdraw.tree +++ b/source/auxiliary/sdraw.tree @@ -43,11 +43,11 @@ - Loading Color, Gradient, and Hatching Lists + Loading Color, Gradient, and Hatching Palettes Inserting Graphics - Loading Color, Gradient, and Hatching Lists + Loading Color, Gradient, and Hatching Palettes Loading Line and Arrow Styles Defining Custom Colors Creating Gradient Fills diff --git a/source/auxiliary/shared.tree b/source/auxiliary/shared.tree index 8fffb50fdb..4c4354788b 100644 --- a/source/auxiliary/shared.tree +++ b/source/auxiliary/shared.tree @@ -185,6 +185,7 @@ Changing the Title of a Document Creating Round Corners Defining Background Colors or Background Graphics + Loading Color, Gradient, and Hatching Palettes Defining Line Ends Defining Line Styles Editing Graphic Objects diff --git a/source/auxiliary/simpress.tree b/source/auxiliary/simpress.tree index 0712bd4c90..2621ed8eeb 100644 --- a/source/auxiliary/simpress.tree +++ b/source/auxiliary/simpress.tree @@ -62,7 +62,7 @@ Saving a Presentation in HTML Format Importing HTML Pages Into Presentations - Loading Color, Gradient, and Hatching Lists + Loading Color, Gradient, and Hatching Palettes Exporting Animations in GIF Format Including Spreadsheets in Slides Inserting Graphics @@ -71,7 +71,7 @@ Automatic Redaction - Loading Color, Gradient, and Hatching Lists + Loading Color, Gradient, and Hatching Palettes Loading Line and Arrow Styles Defining Custom Colors Creating Gradient Fills diff --git a/source/text/shared/guide/palette_files.xhp b/source/text/shared/guide/palette_files.xhp new file mode 100644 index 0000000000..4df9543049 --- /dev/null +++ b/source/text/shared/guide/palette_files.xhp @@ -0,0 +1,97 @@ + + + + + + Loading Color, Gradient, and Hatching Palettes + /text/shared/guide/palette_files.xhp + + + Sun Microsystems, Inc. + + + + +colors;loading lists +gradients;loading lists +hatching;loading lists +loading;colors/gradients/hatchings + +

Loading Color, Gradient, and Hatching Palettes

+ You can use %PRODUCTNAME extensions to add colors palettes, gradients lists, or hatching patterns lists. +

To load a color palette:

+
+

Directly from the Extension Manager

+ If you have a custom palette avaliable as an extension, use the Extension Manager to load the palette in %PRODUCTAME: + + + Open the Extension Manager. + + + Click Add + + + Select the extension file (usually a file with oxt file extension) + + + Click OK. You will be asked to restart %PRODUCTNAME. + + +
+ +

From the Area dialog box

+ Loading color palettes from the Area dialog box brings a dialog with all color palettes available in the %PRODUCTNAME Extension Website. + + + Choose Format - Area, and then click the Colors tab. + + + Click the Add color pallete via extensions button. A dialog with all available color palettes in the %PRODUCTNAME extension site will appear in a few seconds. + + + Locate the color list that you want to load, and then click Install. + + + Close the Extension dialog.You will be asked to restart %PRODUCTNAME. + + + + +colors; default colors +colors; %PRODUCTNAME colors +%PRODUCTNAME colors +colors; HLC colors +Material Design colors +colors; web +colors; freieFarbe + +

About the Default Color palettes:

+ The freieFarbe HLC color list is based on the CIELAB model and is optimized for professional CMYK printing. + The colors in the Compatibility and HTML palettes are optimized for displays using a resolution of 256 colors. + The palettes “LibreOffice” and “Material” contain the official %PRODUCTNAME and Material Design palettes respectively. + The "tonal" palette provides a set of colors organized by luminance contrast that work across different hardware. +

To load a gradient and hatching palette:

+ +
+ Extensions Website. + Format - Area + +
+ +
diff --git a/source/text/simpress/guide/line_arrow_styles.xhp b/source/text/simpress/guide/line_arrow_styles.xhp index 88f7a013bf..6d1ad74f71 100644 --- a/source/text/simpress/guide/line_arrow_styles.xhp +++ b/source/text/simpress/guide/line_arrow_styles.xhp @@ -33,10 +33,10 @@ styles;arrow and line styles loading;arrow and line styles mw changed "line ends;" to "lines;" -Loading Line and Arrow Styles - +

Loading Line and Arrow Styles +

You can use styles to organize similar line and arrow types. $[officename] provides a few standard style files that you can load and use in your document. If you want, you can add or delete elements from a style file, or even create a custom style file. - To load a line styles file: +

To load a line styles file:

Choose Format - Line, and then click the Line Styles tab. @@ -49,7 +49,7 @@ To save a line styles file, click the Save Line Styles button, enter a filename, and then click OK. - To load an arrow styles file: +

To load an arrow styles file:

Choose Format - Line, and then click the Arrow Styles tab. @@ -64,6 +64,6 @@ To save an arrow styles file, click the Save Arrow Styles button, enter a filename, and then click OK. Format - Line - + - \ No newline at end of file + diff --git a/source/text/simpress/guide/main.xhp b/source/text/simpress/guide/main.xhp index b5beafe749..95837fab35 100644 --- a/source/text/simpress/guide/main.xhp +++ b/source/text/simpress/guide/main.xhp @@ -51,7 +51,7 @@ Importing and Exporting - + diff --git a/source/text/simpress/guide/palette_files.xhp b/source/text/simpress/guide/palette_files.xhp deleted file mode 100644 index 72285a69e6..0000000000 --- a/source/text/simpress/guide/palette_files.xhp +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - -Loading Color, Gradient, and Hatching Lists -/text/simpress/guide/palette_files.xhp - - -Sun Microsystems, Inc. - - - -colors;loading lists -gradients;loading lists -hatching;loading lists -loading;colors/gradients/hatchings - -Loading Color, Gradient, and Hatching Lists - -You can use lists to organize colors, gradients, or hatching patterns. $[officename] provides several lists that you can load and use in your document. If you want, you can add or delete elements from a list, or even create custom lists. -To load a color list: - - -Choose Format - Area, and then click the Colors tab. - - -Click the Load Color List button. - - -Locate the color list that you want to load, and then click Open. A color list file has the format [filename].soc. - - -To save a color list, click the Save Color List button, enter a filename, and then click Save. - -colors; default colors -colors; LibreOffice colors -LibreOffice colors -colors; HLC colors -Material Design colors -colors; web -colors; freieFarbe - -The freieFarbe HLC color list is based on the CIELAB model and is optimized for professional CMYK printing. The colors in the Compatibility and HTML lists are optimized for displays using a resolution of 256 colors. The palettes “LibreOffice” and “Material” contain the official LibreOffice and Material Design palettes respectively. The tonal.soc palette provides a set of colors organized by luminance contrast that work across different hardware. -To load a gradient list: - - -Choose Format - Area, and then click the Gradients tab. - - -Click the Load Gradients List button. - - -Locate the gradient list that you want to load, and then click Open. A gradient list file has the format [filename].sog. - - -To save a gradients list, click the Save Gradients List button, enter a filename, and then click Save. -To load a hatching list: - - -Choose Format - Area, and then click the Hatching tab. - - -Click the Load Hatches List button. - - -Locate the hatches list that you want to load, and then click Open. A hatches list file has the format [filename].soh. - - -To save a hatches list, click the Save Hatches List button, enter a filename, and then click Save. - -Format - Area - - - -- cgit