summaryrefslogtreecommitdiff
path: root/helpcontent2/source/text/shared/optionen/01010400.xhp
blob: e7070bb50d084506d53be87ab04488bcef691825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
	
<!--
***********************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * 
 * Copyright 2008 by Sun Microsystems, Inc.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * $RCSfile: 01010400.xhp,v $
 * $Revision: 1.17.4.2 $
 *
 * This file is part of OpenOffice.org.
 *
 * OpenOffice.org is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * OpenOffice.org is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License version 3 for more details
 * (a copy is included in the LICENSE file that accompanied this code).
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with OpenOffice.org.  If not, see
 * <http://www.openoffice.org/license.html>
 * for a copy of the LGPLv3 License.
 *
 ************************************************************************
 -->
 
	
<meta>
<topic id="textsharedoptionen01010400xml" indexer="include">
<title id="tit" xml-lang="en-US">Writing Aids</title>
<filename>/text/shared/optionen/01010400.xhp</filename>
</topic>
</meta>
<body>
<section id="linguistik">
<bookmark xml-lang="en-US" branch="index" id="bm_id7986388"><bookmark_value>writing aids options</bookmark_value>
<bookmark_value>custom dictionaries; editing</bookmark_value>
<bookmark_value>user-defined dictionaries; editing</bookmark_value>
<bookmark_value>dictionaries; editing user-defined</bookmark_value>
<bookmark_value>exceptions; user-defined dictionaries</bookmark_value>
<bookmark_value>user-defined dictionaries; dictionary of exceptions</bookmark_value>
<bookmark_value>spellcheck; dictionary of exceptions</bookmark_value>
<bookmark_value>ignore list for spellcheck</bookmark_value>
<bookmark_value>spellcheck; ignore list</bookmark_value>
<bookmark_value>hyphenation; minimal number of characters</bookmark_value>
</bookmark>
<bookmark xml-lang="en-US" branch="hid/HID_OPTIONS_LINGU" id="bm_id3147291" localize="false"/><comment>removed "german" references, i78879</comment>
<paragraph role="heading" id="hd_id3145136" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/shared/optionen/01010400.xhp" name="Writing Aids">Writing Aids</link></paragraph>
<paragraph role="paragraph" id="par_id3153527" xml-lang="en-US" l10n="U" oldref="2"><ahelp hid="HID_OPTIONS_LINGU">Specifies the properties of the spellcheck, thesaurus and hyphenation.</ahelp></paragraph>
</section>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#writingaids"/>
</section>
<bookmark xml-lang="en-US" branch="hid/HID_CLB_LINGU_MODULES" id="bm_id3147653" localize="false"/>
<paragraph role="heading" id="hd_id3149096" xml-lang="en-US" level="2" l10n="U" oldref="33">Available Language Modules</paragraph>
<paragraph role="paragraph" id="par_id3154749" xml-lang="en-US" l10n="U" oldref="34"><ahelp hid="HID_CLB_LINGU_MODULES">Contains the installed language modules.</ahelp></paragraph>
<paragraph role="paragraph" id="par_id3153663" xml-lang="en-US" l10n="U" oldref="35">A language module can contain one, two or three submodules: Spellcheck, hyphenation and thesaurus. Each sub-module can be available in one or more languages. If you click in front of the name of the module, you activate all the available sub-modules simultaneously. If you remove a set mark, you deactivate all the available sub-modules simultaneously. If you wish to activate or deactivate individual sub-modules, click the<emph> Edit button </emph>to open the <link href="text/shared/optionen/01010401.xhp" name="Edit Modules"><emph>Edit Modules</emph></link> dialog.</paragraph>
<paragraph role="note" id="par_id3294778" xml-lang="en-US" l10n="NEW">The configuration allows for two different directories: one folder where the user has write permissions, and one without write permissions. The user can only edit and delete the user dictionaries that are located in the writable path. Other dictionaries can be read only.</paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX_PUSHBUTTON_RID_SFXPAGE_LINGU_PB_LINGU_MODULES_EDIT" id="bm_id3154898" localize="false"/>
<paragraph role="heading" id="hd_id3154307" xml-lang="en-US" level="3" l10n="U" oldref="36">Edit</paragraph>
<paragraph role="paragraph" id="par_id3145673" xml-lang="en-US" l10n="U" oldref="37"><ahelp hid="SVX_PUSHBUTTON_RID_SFXPAGE_LINGU_PB_LINGU_MODULES_EDIT">To edit a language module, select it and click <emph>Edit</emph>.</ahelp> The <link href="text/shared/optionen/01010401.xhp" name="Edit Modules"><emph>Edit </emph>
<emph>Modules</emph></link> dialog appears.</paragraph>
<section id="benutzerwb">
<bookmark xml-lang="en-US" branch="hid/HID_CLB_EDIT_MODULES_DICS" id="bm_id3150503" localize="false"/>
<paragraph role="heading" id="hd_id3153348" xml-lang="en-US" level="2" l10n="U" oldref="60">User-defined dictionaries</paragraph>
<paragraph role="paragraph" id="par_id3155419" xml-lang="en-US" l10n="U" oldref="62"><ahelp hid="HID_CLB_EDIT_MODULES_DICS">Lists the available user dictionaries.</ahelp> Mark the user dictionaries that you want to use for spellcheck and hyphenation.</paragraph>
<bookmark xml-lang="en-US" branch="hid/HID_OPTIONS_DICT_NEW" id="bm_id3149670" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/SVX_PUSHBUTTON_RID_SFXPAGE_LINGU_PB_LINGU_DICS_NEW_DIC" id="bm_id3154923" localize="false"/>
<paragraph role="heading" id="hd_id3144511" xml-lang="en-US" level="3" l10n="U" oldref="63">New</paragraph>
<paragraph role="paragraph" id="par_id3146794" xml-lang="en-US" l10n="U" oldref="64"><ahelp hid="SVX_PUSHBUTTON_RID_SFXPAGE_LINGU_PB_LINGU_DICS_NEW_DIC">Opens the <emph>New Dictionary</emph> dialog, in which you can name a new user-defined dictionary or dictionary of exceptions and specify the language.</ahelp></paragraph>
<paragraph role="heading" id="hd_id3151054" xml-lang="en-US" level="3" l10n="U" oldref="65">New Dictionary</paragraph>
<paragraph role="paragraph" id="par_id3153360" xml-lang="en-US" l10n="U" oldref="66">In the <emph>Dictionary</emph> section you can name a new user-defined dictionary or dictionary of exceptions and specify the language.</paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX:EDIT:RID_SFXDLG_NEWDICT:ED_DICTNAME" id="bm_id3151210" localize="false"/>
<paragraph role="heading" id="hd_id3150398" xml-lang="en-US" level="3" l10n="U" oldref="67">Name</paragraph>
<paragraph role="paragraph" id="par_id3153192" xml-lang="en-US" l10n="U" oldref="68"><ahelp hid="SVX:EDIT:RID_SFXDLG_NEWDICT:ED_DICTNAME">Specifies the name of the new custom dictionary.</ahelp> The file extension "*.DIC" is automatically appended.</paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX:LISTBOX:RID_SFXDLG_NEWDICT:LB_DICTLANG" id="bm_id3148451" localize="false"/>
<paragraph role="heading" id="hd_id3150767" xml-lang="en-US" level="3" l10n="U" oldref="69">Language</paragraph>
<paragraph role="paragraph" id="par_id3148920" xml-lang="en-US" l10n="U" oldref="70"><ahelp hid="SVX:LISTBOX:RID_SFXDLG_NEWDICT:LB_DICTLANG">By selecting a certain language you can limit the use of the custom dictionary.</ahelp> By selecting <emph>All</emph> the custom dictionary is used independently of the current language.</paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX:CHECKBOX:RID_SFXDLG_NEWDICT:BTN_EXCEPT" id="bm_id3145606" localize="false"/>
<paragraph role="heading" id="hd_id3153106" xml-lang="en-US" level="3" l10n="U" oldref="71">Exceptions (-)</paragraph>
<paragraph role="paragraph" id="par_id3149561" xml-lang="en-US" l10n="CHG" oldref="72"><ahelp hid="SVX:CHECKBOX:RID_SFXDLG_NEWDICT:BTN_EXCEPT">Specifies whether you wish to avoid certain words in your documents.</ahelp> In this way, you can create a custom dictionary of all the words to be avoided. If this exception dictionary is activated, during spellchecking you receive a corresponding note about any words which should be avoided.</paragraph>
<bookmark xml-lang="en-US" branch="hid/HID_OPTIONS_DICT_EDIT" id="bm_id3147213" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/SVX_PUSHBUTTON_RID_SFXPAGE_LINGU_PB_LINGU_DICS_EDIT_DIC" id="bm_id3155411" localize="false"/>
<paragraph role="heading" id="hd_id3145785" xml-lang="en-US" level="3" l10n="U" oldref="73">Edit</paragraph>
<paragraph role="paragraph" id="par_id3152576" xml-lang="en-US" l10n="U" oldref="74"><ahelp hid="SVX_PUSHBUTTON_RID_SFXPAGE_LINGU_PB_LINGU_DICS_EDIT_DIC">Opens the <emph>Edit custom dictionary</emph> dialog, in which you can add to your custom dictionary or edit existing entries.</ahelp></paragraph>
<paragraph role="paragraph" id="par_id3147436" xml-lang="en-US" l10n="U" oldref="75">In the <emph>Edit custom dictionary </emph>dialog you have the option to enter new terms or edit existing entries. If you edit an exception dictionary, the dialog has the added facility of defining an exception for a word. During the spellcheck this exception is then listed as a suggestion.</paragraph>
<paragraph role="paragraph" id="par_id3145750" xml-lang="en-US" l10n="U" oldref="76">When a dictionary is edited, a check is made on the status of the file. If the file is write-protected, it cannot be changed. The buttons <emph>New</emph> and <emph>Delete</emph> are then deactivated. </paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX:LISTBOX:RID_SFXDLG_EDITDICT:LB_ALLDICTS" id="bm_id3155415" localize="false"/>
<paragraph role="heading" id="hd_id3150116" xml-lang="en-US" level="3" l10n="U" oldref="77">Book</paragraph>
<paragraph role="paragraph" id="par_id3147394" xml-lang="en-US" l10n="U" oldref="78"><ahelp hid="SVX:LISTBOX:RID_SFXDLG_EDITDICT:LB_ALLDICTS">Specifies the book to be edited.</ahelp></paragraph>
<paragraph role="paragraph" id="par_id3154730" xml-lang="en-US" l10n="CHG" oldref="79"><variable id="ignore">The <emph>IgnoreAllList (All) </emph>includes all words that have been marked with <emph>Ignore</emph> during spellcheck. This list is valid only for the current spellcheck. 
</variable></paragraph>
<paragraph role="note" id="par_id3154757" xml-lang="en-US" l10n="U" oldref="80">The <emph>IgnoreAllList</emph> entry cannot be selected and cannot be deleted. Only the words included as content can be deleted. This happens automatically each time that $[officename] is closed.</paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX:LISTBOX:RID_SFXDLG_EDITDICT:LB_DICTLANG" id="bm_id3156385" localize="false"/>
<paragraph role="heading" id="hd_id3149018" xml-lang="en-US" level="3" l10n="U" oldref="81">Language</paragraph>
<paragraph role="paragraph" id="par_id3154255" xml-lang="en-US" l10n="U" oldref="82"><ahelp hid="SVX:LISTBOX:RID_SFXDLG_EDITDICT:LB_DICTLANG">Assigns a new language to the current custom dictionary.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX:EDIT:RID_SFXDLG_EDITDICT:ED_WORD" id="bm_id3155334" localize="false"/>
<paragraph role="heading" id="hd_id3151189" xml-lang="en-US" level="3" l10n="U" oldref="83">Word</paragraph>
<paragraph role="paragraph" id="par_id3151252" xml-lang="en-US" l10n="CHG" oldref="84"><ahelp hid="SVX:EDIT:RID_SFXDLG_EDITDICT:ED_WORD">You can type a new word for inclusion in the dictionary. In the list below you will see the contents of the current custom dictionary.</ahelp> If you select a word from this list it is displayed in the text field. If you type a word with a trailing = character, such as "AutoComplete=", the word is never automatically hyphenated and no hyphenation is suggested. Typing "Auto=Complete" results in the word being hyphenated, or a hyphenation suggested, where you insert the = sign.</paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX:EDIT:RID_SFXDLG_EDITDICT:ED_REPLACE" id="bm_id3147346" localize="false"/>
<paragraph role="heading" id="hd_id3155175" xml-lang="en-US" level="3" l10n="U" oldref="85">Suggestion</paragraph>
<paragraph role="paragraph" id="par_id3147323" xml-lang="en-US" l10n="CHG" oldref="86"><ahelp hid="SVX:EDIT:RID_SFXDLG_EDITDICT:ED_REPLACE">This input field is only available if you are editing an exception dictionary. The field shows the alternative suggestion for the current word in the "Word" text box.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX:PUSHBUTTON:RID_SFXDLG_EDITDICT:PB_NEW_REPLACE" id="bm_id3149566" localize="false"/>
<paragraph role="heading" id="hd_id3147361" xml-lang="en-US" level="3" l10n="U" oldref="88">New</paragraph>
<paragraph role="paragraph" id="par_id3163808" xml-lang="en-US" l10n="U" oldref="89"><ahelp hid="SVX:PUSHBUTTON:RID_SFXDLG_EDITDICT:PB_NEW_REPLACE">Adds the word in the <emph>Word </emph>text field to your current custom dictionary. The word in the <emph>Suggestion </emph>field is also added when working with exception dictionaries.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX:PUSHBUTTON:RID_SFXDLG_EDITDICT:PB_DELETE_REPLACE" id="bm_id3153790" localize="false"/>
<paragraph role="paragraph" id="par_id3145790" xml-lang="en-US" l10n="U" oldref="91"><ahelp hid="." visibility="hidden">Removes the marked word from the current custom dictionary.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX_PUSHBUTTON_RID_SFXPAGE_LINGU_PB_LINGU_DICS_DEL_DIC" id="bm_id3150787" localize="false"/>
<paragraph role="paragraph" id="par_id3151277" xml-lang="en-US" l10n="U" oldref="93"><ahelp hid="." visibility="hidden">Deletes the selected dictionary after a confirmation, provided it is not write-protected.</ahelp></paragraph>
</section>
<section id="optionen">
<bookmark xml-lang="en-US" branch="hid/HID_CLB_LINGU_OPTIONS" id="bm_id3153703" localize="false"/>
<paragraph role="heading" id="hd_id3149032" xml-lang="en-US" level="2" l10n="U" oldref="39">Options</paragraph>
<paragraph role="paragraph" id="par_id3145259" xml-lang="en-US" l10n="U" oldref="40"><ahelp hid="HID_CLB_LINGU_OPTIONS">Defines the options for the spellcheck and hyphenation.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/SVX_PUSHBUTTON_RID_SFXPAGE_LINGU_PB_LINGU_OPTIONS_EDIT" id="bm_id3147131" localize="false"/>
<paragraph role="heading" id="hd_id3149965" xml-lang="en-US" level="3" l10n="U" oldref="41">Edit</paragraph>
<paragraph role="paragraph" id="par_id3153231" xml-lang="en-US" l10n="U" oldref="42"><ahelp hid="SVX_PUSHBUTTON_RID_SFXPAGE_LINGU_PB_LINGU_OPTIONS_EDIT">If you want to change a value, select the entry and then click <emph>Edit</emph>.</ahelp> You will see a dialog for entering a new value.</paragraph>
<paragraph role="heading" id="hd_id3150983" xml-lang="en-US" level="3" l10n="U" oldref="43">Check uppercase words</paragraph>
<paragraph role="paragraph" id="par_id3152582" xml-lang="en-US" l10n="CHG" oldref="44">Specifies that capitalization is checked during spellcheck.</paragraph>
<paragraph role="heading" id="hd_id3150826" xml-lang="en-US" level="3" l10n="U" oldref="45">Check words with numbers.</paragraph>
<paragraph role="paragraph" id="par_id3150208" xml-lang="en-US" l10n="CHG" oldref="46">Specifies that words that contain numbers as well as letters are to be checked.</paragraph>
<paragraph role="heading" id="hd_id3147509" xml-lang="en-US" level="3" l10n="U" oldref="47">Check capitalization</paragraph>
<paragraph role="paragraph" id="par_id3154200" xml-lang="en-US" l10n="CHG" oldref="48">Checks for the correct use of capitals at the start of words during spellcheck.</paragraph>
<paragraph role="heading" id="hd_id3166424" xml-lang="en-US" level="3" l10n="U" oldref="49">Check special regions</paragraph>
<paragraph role="paragraph" id="par_id3150345" xml-lang="en-US" l10n="CHG" oldref="50">Specifies that special regions, such as drawing text, are checked during spellcheck.<comment>UFI: doesn't work in versions up to OOo 2.4</comment></paragraph>
<bookmark xml-lang="en-US" branch="hid/SID_AUTOSPELL_CHECK" id="bm_id5188694" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/.uno:SpellOnline" id="bm_id3166435" localize="false"/>
<paragraph role="heading" id="hd_id3166429" xml-lang="en-US" level="3" l10n="U" oldref="21">Check spelling as you type</paragraph>
<paragraph role="paragraph" id="par_id3155531" xml-lang="en-US" l10n="U" oldref="6"><variable id="automatisch"><ahelp hid=".uno:SpellOnline">Automatically checks spelling as you type, and underlines errors.</ahelp>
</variable></paragraph>
<section id="automatischweiter">
<paragraph role="paragraph" id="par_id3156291" xml-lang="en-US" l10n="CHG" oldref="32">Typing errors are highlighted in the document with a red underline. If you place the cursor over a word marked in this way, you can open the context menu to obtain a list of corrections. Select a correction to replace the word. If you make the same mistake again while editing the document, it will be marked as an error again.</paragraph><comment>UFI: changed para, removed note, see i60431</comment>
<paragraph role="paragraph" id="par_id3153815" xml-lang="en-US" l10n="U" oldref="23">To place the word pair in the <link href="text/shared/01/06040200.xhp" name="AutoCorrect replacement table">AutoCorrect replacement table</link>, open the <link href="text/shared/01/06040500.xhp" name="AutoCorrect context menu">AutoCorrect context menu</link> and choose <emph>AutoCorrect</emph>. Make your selection from the submenu. The word is replaced and at the same time the word pair is placed in the replacement table.</paragraph>
</section>
<bookmark xml-lang="en-US" branch="hid/SVX_NUMERICFIELD_RID_SVXDLG_LNG_ED_NUM_PREBREAK_ED_PREBREAK" id="bm_id3148607" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/HID_LNGDLG_NUM_PREBREAK" id="bm_id3159095" localize="false"/>
<paragraph role="heading" id="hd_id3150111" xml-lang="en-US" level="3" l10n="U" oldref="53">Minimal number of characters for hyphenation </paragraph>
<paragraph role="paragraph" id="par_id3150316" xml-lang="en-US" l10n="U" oldref="54">Specifies the minimum number of characters required for automatic hyphenation to be applied. <ahelp hid="HID_LNGDLG_NUM_PREBREAK" visibility="hidden"> Type the minimum number of characters that must come before or after the hyphen.</ahelp></paragraph>
<paragraph role="heading" id="hd_id3148823" xml-lang="en-US" level="3" l10n="U" oldref="11">Characters before line break</paragraph>
<paragraph role="paragraph" id="par_id3156029" xml-lang="en-US" l10n="CHG" oldref="12">Sets the minimum number of characters of the word to be hyphenated that must remain at the end of the line.</paragraph>
<paragraph role="heading" id="hd_id3154956" xml-lang="en-US" level="3" l10n="U" oldref="13">Characters after line break</paragraph>
<paragraph role="paragraph" id="par_id3149439" xml-lang="en-US" l10n="CHG" oldref="14">Specifies the minimum number of characters of a hyphenated word required at the next line.</paragraph>
<paragraph role="heading" id="hd_id3156337" xml-lang="en-US" level="3" l10n="U" oldref="15">Hyphenate without inquiry</paragraph>
<paragraph role="paragraph" id="par_id3151130" xml-lang="en-US" l10n="CHG" oldref="16">Specifies that you will never be asked for a manual hyphenation. If the field is not marked, when a word is not recognized you will be presented with a dialog for entering hyphens.</paragraph>
<paragraph role="heading" id="hd_id3155900" xml-lang="en-US" level="3" l10n="U" oldref="17">Hyphenate special regions</paragraph>
<paragraph role="paragraph" id="par_id3155098" xml-lang="en-US" l10n="CHG" oldref="18">Specifies that hyphenation will also be carried out in footnotes, headers and footers.</paragraph>
</section>
<section id="relatedtopics">
<paragraph role="paragraph" id="par_id6434522" xml-lang="en-US" l10n="CHG" localize="false"><link href="http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Adding_More_Languages">Wiki page: Adding more languages</link></paragraph>
<paragraph role="paragraph" id="par_id3552964" xml-lang="en-US" l10n="CHG" localize="false"><link href="http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Spellchecking_in_More_Languages">Wiki page: Multiple language spellchecking</link></paragraph>
</section>
</body>
</helpdocument>
> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sal/qa/osl/file/osl_old_test_file.cxx
'>
AgeCommit message (Expand)Author
2018-10-24remove more rtl::OUString and OString prefixesNoel Grandin
2018-01-02Remove broken testStephan Bergmann
2017-12-22unotools: don't go belly-up if temp dir is wrong or emptyJuergen Funk
2017-05-16Try to fix loplugin:comparisonwithconstant's rewrite-with-macros issueStephan Bergmann
2016-12-23tdf#97283: Merge sal osl tests to one makefileMatúš Kukan
2016-06-09CppunitTest_sal_osl_old_test_file: fix loplugin:cppunitassertequals warningsMiklos Vajna
2016-04-18clean-up: unused using declarations and includesJochen Nitschke
2016-03-04-Werror,-Wunused-macrosStephan Bergmann
2016-02-16use consistent #define checks for the Windows platformNoel Grandin
2015-11-13-Werror,-Wunused-const-variableStephan Bergmann
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2014-04-03Kill superfluous vertical whitespaceTor Lillqvist
2014-02-23Remove unneccessary commentsAlexander Wilms
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
This is a first step to allow buffering of system dependent data, especially (but not only) for the system-dependent implementations of graphic output. For example, for B2DPolygon and Win output, it allows buffering the Gdiplus::GraphicsPath instead of re- creating it all the time. To support that, the change includes forwarding the current transformation to the renderers in SalGraphics. The current state in VCL is to transform all and everything to device coordinates at every single paint. I have currently started to do this for ::drawPolyLine implementations. The fallbacks for all systems will at the start of that method just transform the data to device coordinates, so all works as before. This may also be done for FilledPolygon paint in a later step, but most urgent is FatLine painting. An arrangement of shared_ptr/weak_ptr is used so that either the instance buffering (in the example B2DPolygon) or the instance managing it can delete it. The instance managing it currently uses a 1s Timer and a cycle-lifetime management, but that can be extended in the future to e.g. include size hints, too. The mechanism it designed to support multiple Data per buffering element, e.g. for B2DPolygon at the same time system-dependent instances of Gdiplus and Cairo can be buffered, but also PDF-data. This is achieved semi-automatic by using typeid(class).hash_code() as key for organization. The mechanism will be used for now at B2DPolygon, but is not limited to. There is already a similar but less general buffer (see GdiPlusBuffer) that can and will be converted to use this new mechanism. Added vcl/headless Cairo renderer to support given ObjectToDevice transformation (not to transform given B2DPolygon) Added support for CairoPath buffered at B2DPolygon, seems to work well. Need to do more tests Moved usage to templates suggested by Noel Grandin (Noel Grandin <noelgrandin@gmail.com>), thanks for these suggestions. Adapted Win usage to that, too. Converted Win-specific GdiPlus BitmapBuffer to new mechanism, works well. Checked, the manager holds now a mix of bitmap and path data under Win Added a cleanup mechanism to flush all buffered data at DeInitVCL() using flushAll() at SystemDependentDataBuffer Adapted Linux-versions of ::drawPolyLine to support PixelSnapHairline, for now in a simplified version that still allows buffering. This will also be used (and use buffering) for the Cairo-fallback in X11SalGraphics Change-Id: I88d7e438a20b96ddab7707050893bdd590c098c7 Reviewed-on: https://gerrit.libreoffice.org/59555 Tested-by: Armin Le Grand <Armin.Le.Grand@cib.de> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2018-08-04Use more basegfx deg<->rad functions, instead of direct formulasMike Kaganski
Also make the functions constexpr. Due to slight changes in floating-point arithmetics (90.0 instead of 180.0, M_PI2 instead of M_PI resp.), results might differ in last digits (usually 17th decimal digit). This has lead to need to tweak char2dump's PieChartTest unit test. Change-Id: I20323dd7dab27e4deb408ea4181e390cc05e7cd3 Reviewed-on: https://gerrit.libreoffice.org/58583 Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>