Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 :
21 : #include <vcl/wrkwin.hxx>
22 : #include <vcl/dialog.hxx>
23 : #include <vcl/msgbox.hxx>
24 : #include <vcl/svapp.hxx>
25 :
26 : #include <svl/grabbagitem.hxx>
27 : #include <editeng/svxfont.hxx>
28 : #include <editeng/flditem.hxx>
29 : #include <editeng/fontitem.hxx>
30 : #include <editeng/postitem.hxx>
31 : #include <editeng/wghtitem.hxx>
32 : #include <editeng/udlnitem.hxx>
33 : #include <editeng/contouritem.hxx>
34 : #include <editeng/shdditem.hxx>
35 : #include <editeng/escapementitem.hxx>
36 : #include <editeng/colritem.hxx>
37 : #include <editeng/wrlmitem.hxx>
38 : #include <editeng/fhgtitem.hxx>
39 : #include <editeng/crossedoutitem.hxx>
40 : #include <editeng/charsetcoloritem.hxx>
41 : #include <editeng/kernitem.hxx>
42 : #include <editeng/autokernitem.hxx>
43 : #include <editeng/langitem.hxx>
44 : #include <editeng/emphasismarkitem.hxx>
45 : #include <editeng/charscaleitem.hxx>
46 : #include <editeng/charreliefitem.hxx>
47 : #include <editeng/cmapitem.hxx>
48 :
49 : #include "editattr.hxx"
50 :
51 :
52 :
53 : // class EditCharAttrib
54 :
55 449287 : EditCharAttrib::EditCharAttrib( const SfxPoolItem& rAttr, sal_uInt16 nS, sal_uInt16 nE ) :
56 449287 : nStart(nS), nEnd(nE), bFeature(false), bEdge(false)
57 : {
58 449287 : pItem = &rAttr;
59 :
60 : DBG_ASSERT( ( rAttr.Which() >= EE_ITEMS_START ) && ( rAttr.Which() <= EE_ITEMS_END ), "EditCharAttrib CTOR: Invalid id!" );
61 : DBG_ASSERT( ( rAttr.Which() < EE_FEATURE_START ) || ( rAttr.Which() > EE_FEATURE_END ) || ( nE == (nS+1) ), "EditCharAttrib CTOR: Invalid feature!" );
62 449287 : }
63 :
64 437488 : EditCharAttrib::~EditCharAttrib()
65 : {
66 437488 : }
67 :
68 23066 : void EditCharAttrib::SetFont( SvxFont&, OutputDevice* )
69 : {
70 23066 : }
71 :
72 :
73 :
74 : // class EditCharAttribFont
75 :
76 63691 : EditCharAttribFont::EditCharAttribFont( const SvxFontItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
77 63691 : : EditCharAttrib( rAttr, _nStart, _nEnd )
78 : {
79 : DBG_ASSERT( rAttr.Which() == EE_CHAR_FONTINFO || rAttr.Which() == EE_CHAR_FONTINFO_CJK || rAttr.Which() == EE_CHAR_FONTINFO_CTL, "Not a Font attribute!" );
80 63691 : }
81 :
82 43793 : void EditCharAttribFont::SetFont( SvxFont& rFont, OutputDevice* )
83 : {
84 43793 : const SvxFontItem& rAttr = static_cast<const SvxFontItem&>(*GetItem());
85 :
86 43793 : rFont.SetName( rAttr.GetFamilyName() );
87 43793 : rFont.SetFamily( rAttr.GetFamily() );
88 43793 : rFont.SetPitch( rAttr.GetPitch() );
89 43793 : rFont.SetCharSet( rAttr.GetCharSet() );
90 43793 : }
91 :
92 :
93 : // class EditCharAttribItalic
94 :
95 30458 : EditCharAttribItalic::EditCharAttribItalic( const SvxPostureItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
96 30458 : : EditCharAttrib( rAttr, _nStart, _nEnd )
97 : {
98 : DBG_ASSERT( rAttr.Which() == EE_CHAR_ITALIC || rAttr.Which() == EE_CHAR_ITALIC_CJK || rAttr.Which() == EE_CHAR_ITALIC_CTL, "Not a Italic attribute!" );
99 30458 : }
100 :
101 29443 : void EditCharAttribItalic::SetFont( SvxFont& rFont, OutputDevice* )
102 : {
103 29443 : rFont.SetItalic( static_cast<const SvxPostureItem*>(GetItem())->GetPosture() );
104 29443 : }
105 :
106 :
107 : // class EditCharAttribWeight
108 :
109 57232 : EditCharAttribWeight::EditCharAttribWeight( const SvxWeightItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
110 57232 : : EditCharAttrib( rAttr, _nStart, _nEnd )
111 : {
112 : DBG_ASSERT( rAttr.Which() == EE_CHAR_WEIGHT || rAttr.Which() == EE_CHAR_WEIGHT_CJK || rAttr.Which() == EE_CHAR_WEIGHT_CTL, "Not a Weight attribute!" );
113 57232 : }
114 :
115 36337 : void EditCharAttribWeight::SetFont( SvxFont& rFont, OutputDevice* )
116 : {
117 36337 : rFont.SetWeight( (FontWeight)static_cast<const SvxWeightItem*>(GetItem())->GetValue() );
118 36337 : }
119 :
120 :
121 : // class EditCharAttribUnderline
122 :
123 12715 : EditCharAttribUnderline::EditCharAttribUnderline( const SvxUnderlineItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
124 12715 : : EditCharAttrib( rAttr, _nStart, _nEnd )
125 : {
126 : DBG_ASSERT( rAttr.Which() == EE_CHAR_UNDERLINE, "Not a Underline attribute!" );
127 12715 : }
128 :
129 33192 : void EditCharAttribUnderline::SetFont( SvxFont& rFont, OutputDevice* pOutDev )
130 : {
131 33192 : rFont.SetUnderline( (FontUnderline)static_cast<const SvxUnderlineItem*>(GetItem())->GetValue() );
132 :
133 33192 : if ( pOutDev )
134 3718 : pOutDev->SetTextLineColor( static_cast<const SvxUnderlineItem*>(GetItem())->GetColor() );
135 :
136 33192 : }
137 :
138 :
139 : // class EditCharAttribOverline
140 :
141 2362 : EditCharAttribOverline::EditCharAttribOverline( const SvxOverlineItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
142 2362 : : EditCharAttrib( rAttr, _nStart, _nEnd )
143 : {
144 : DBG_ASSERT( rAttr.Which() == EE_CHAR_OVERLINE, "Not a overline attribute!" );
145 2362 : }
146 :
147 10812 : void EditCharAttribOverline::SetFont( SvxFont& rFont, OutputDevice* pOutDev )
148 : {
149 10812 : rFont.SetOverline( (FontUnderline)static_cast<const SvxOverlineItem*>(GetItem())->GetValue() );
150 10812 : if ( pOutDev )
151 1071 : pOutDev->SetOverlineColor( static_cast<const SvxOverlineItem*>(GetItem())->GetColor() );
152 10812 : }
153 :
154 :
155 : // class EditCharAttribFontHeight
156 :
157 87799 : EditCharAttribFontHeight::EditCharAttribFontHeight( const SvxFontHeightItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
158 87799 : : EditCharAttrib( rAttr, _nStart, _nEnd )
159 : {
160 : DBG_ASSERT( rAttr.Which() == EE_CHAR_FONTHEIGHT || rAttr.Which() == EE_CHAR_FONTHEIGHT_CJK || rAttr.Which() == EE_CHAR_FONTHEIGHT_CTL, "Not a Height attribute!" );
161 87799 : }
162 :
163 63965 : void EditCharAttribFontHeight::SetFont( SvxFont& rFont, OutputDevice* )
164 : {
165 : // Property is ignored
166 63965 : rFont.SetSize( Size( rFont.GetSize().Width(), static_cast<const SvxFontHeightItem*>(GetItem())->GetHeight() ) );
167 63965 : }
168 :
169 :
170 : // class EditCharAttribFontWidth
171 :
172 2852 : EditCharAttribFontWidth::EditCharAttribFontWidth( const SvxCharScaleWidthItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
173 2852 : : EditCharAttrib( rAttr, _nStart, _nEnd )
174 : {
175 : DBG_ASSERT( rAttr.Which() == EE_CHAR_FONTWIDTH, "Not a Width attribute!" );
176 2852 : }
177 :
178 14039 : void EditCharAttribFontWidth::SetFont( SvxFont& /*rFont*/, OutputDevice* )
179 : {
180 : // must be calculated outside, because f(device)...
181 14039 : }
182 :
183 :
184 : // class EditCharAttribStrikeout
185 :
186 10598 : EditCharAttribStrikeout::EditCharAttribStrikeout( const SvxCrossedOutItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
187 10598 : : EditCharAttrib( rAttr, _nStart, _nEnd )
188 : {
189 : DBG_ASSERT( rAttr.Which() == EE_CHAR_STRIKEOUT, "Not a Strikeout attribute!" );
190 10598 : }
191 :
192 28951 : void EditCharAttribStrikeout::SetFont( SvxFont& rFont, OutputDevice* )
193 : {
194 28951 : rFont.SetStrikeout( (FontStrikeout)static_cast<const SvxCrossedOutItem*>(GetItem())->GetValue() );
195 28951 : }
196 :
197 :
198 : // class EditCharAttribCaseMap
199 :
200 9293 : EditCharAttribCaseMap::EditCharAttribCaseMap( const SvxCaseMapItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
201 9293 : : EditCharAttrib( rAttr, _nStart, _nEnd )
202 : {
203 : DBG_ASSERT( rAttr.Which() == EE_CHAR_CASEMAP, "Not a CaseMap Item!" );
204 9293 : }
205 :
206 27225 : void EditCharAttribCaseMap::SetFont( SvxFont& rFont, OutputDevice* )
207 : {
208 27225 : rFont.SetCaseMap( static_cast<const SvxCaseMapItem*>(GetItem())->GetCaseMap() );
209 27225 : }
210 :
211 :
212 : // class EditCharAttribColor
213 :
214 35561 : EditCharAttribColor::EditCharAttribColor( const SvxColorItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
215 35561 : : EditCharAttrib( rAttr, _nStart, _nEnd )
216 : {
217 : DBG_ASSERT( rAttr.Which() == EE_CHAR_COLOR, "Not a Color attribute!" );
218 35561 : }
219 :
220 56463 : void EditCharAttribColor::SetFont( SvxFont& rFont, OutputDevice* )
221 : {
222 56463 : Color aColor = static_cast<const SvxColorItem*>(GetItem())->GetValue();
223 56463 : rFont.SetColor( aColor);
224 : //fprintf(stderr, "Called SetFont with Color %d\n", aColor.GetColor());
225 56463 : }
226 :
227 : // class EditCharAttribBackgroundColor
228 :
229 3103 : EditCharAttribBackgroundColor::EditCharAttribBackgroundColor(
230 : const SvxBackgroundColorItem& rAttr,
231 : sal_uInt16 _nStart,
232 : sal_uInt16 _nEnd )
233 3103 : : EditCharAttrib( rAttr, _nStart, _nEnd )
234 : {
235 : DBG_ASSERT( rAttr.Which() == EE_CHAR_BKGCOLOR, "Not a BackColor attribute!" );
236 3103 : }
237 :
238 15165 : void EditCharAttribBackgroundColor::SetFont( SvxFont& rFont, OutputDevice* )
239 : {
240 15165 : Color aColor = static_cast<const SvxBackgroundColorItem*>(GetItem())->GetValue();
241 15165 : rFont.SetFillColor( aColor);
242 15165 : rFont.SetTransparent(false);
243 :
244 15165 : }
245 :
246 :
247 : // class EditCharAttribLanguage
248 :
249 44651 : EditCharAttribLanguage::EditCharAttribLanguage( const SvxLanguageItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
250 44651 : : EditCharAttrib( rAttr, _nStart, _nEnd )
251 : {
252 : DBG_ASSERT( ( rAttr.Which() == EE_CHAR_LANGUAGE ) || ( rAttr.Which() == EE_CHAR_LANGUAGE_CJK ) || ( rAttr.Which() == EE_CHAR_LANGUAGE_CTL ), "Not a Language attribute!" );
253 44651 : }
254 :
255 21254 : void EditCharAttribLanguage::SetFont( SvxFont& rFont, OutputDevice* )
256 : {
257 21254 : rFont.SetLanguage( static_cast<const SvxLanguageItem*>(GetItem())->GetLanguage() );
258 21254 : }
259 :
260 :
261 : // class EditCharAttribShadow
262 :
263 4180 : EditCharAttribShadow::EditCharAttribShadow( const SvxShadowedItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
264 4180 : : EditCharAttrib( rAttr, _nStart, _nEnd )
265 : {
266 : DBG_ASSERT( rAttr.Which() == EE_CHAR_SHADOW, "Not a Shadow attribute!" );
267 4180 : }
268 :
269 16206 : void EditCharAttribShadow::SetFont( SvxFont& rFont, OutputDevice* )
270 : {
271 16206 : rFont.SetShadow( static_cast<const SvxShadowedItem*>(GetItem())->GetValue() );
272 16206 : }
273 :
274 :
275 : // class EditCharAttribEscapement
276 :
277 10931 : EditCharAttribEscapement::EditCharAttribEscapement( const SvxEscapementItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
278 10931 : : EditCharAttrib( rAttr, _nStart, _nEnd )
279 : {
280 : DBG_ASSERT( rAttr.Which() == EE_CHAR_ESCAPEMENT, "Not a escapement attribute!" );
281 10931 : }
282 :
283 28613 : void EditCharAttribEscapement::SetFont( SvxFont& rFont, OutputDevice* )
284 : {
285 28613 : sal_uInt16 nProp = static_cast<const SvxEscapementItem*>(GetItem())->GetProp();
286 28613 : rFont.SetPropr( (sal_uInt8)nProp );
287 :
288 28613 : short nEsc = static_cast<const SvxEscapementItem*>(GetItem())->GetEsc();
289 28613 : if ( nEsc == DFLT_ESC_AUTO_SUPER )
290 0 : nEsc = 100 - nProp;
291 28613 : else if ( nEsc == DFLT_ESC_AUTO_SUB )
292 0 : nEsc = sal::static_int_cast< short >( -( 100 - nProp ) );
293 28613 : rFont.SetEscapement( nEsc );
294 28613 : }
295 :
296 :
297 : // class EditCharAttribOutline
298 :
299 4095 : EditCharAttribOutline::EditCharAttribOutline( const SvxContourItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
300 4095 : : EditCharAttrib( rAttr, _nStart, _nEnd )
301 : {
302 : DBG_ASSERT( rAttr.Which() == EE_CHAR_OUTLINE, "Not a Outline attribute!" );
303 4095 : }
304 :
305 16019 : void EditCharAttribOutline::SetFont( SvxFont& rFont, OutputDevice* )
306 : {
307 16019 : rFont.SetOutline( static_cast<const SvxContourItem*>(GetItem())->GetValue() );
308 16019 : }
309 :
310 :
311 : // class EditCharAttribTab
312 :
313 206 : EditCharAttribTab::EditCharAttribTab( const SfxVoidItem& rAttr, sal_uInt16 nPos )
314 206 : : EditCharAttrib( rAttr, nPos, nPos+1 )
315 : {
316 206 : SetFeature( true );
317 206 : }
318 :
319 46 : void EditCharAttribTab::SetFont( SvxFont&, OutputDevice* )
320 : {
321 46 : }
322 :
323 :
324 : // class EditCharAttribLineBreak
325 :
326 186 : EditCharAttribLineBreak::EditCharAttribLineBreak( const SfxVoidItem& rAttr, sal_uInt16 nPos )
327 186 : : EditCharAttrib( rAttr, nPos, nPos+1 )
328 : {
329 186 : SetFeature( true );
330 186 : }
331 :
332 91 : void EditCharAttribLineBreak::SetFont( SvxFont&, OutputDevice* )
333 : {
334 91 : }
335 :
336 :
337 : // class EditCharAttribField
338 :
339 27879 : EditCharAttribField::EditCharAttribField( const SvxFieldItem& rAttr, sal_uInt16 nPos )
340 27879 : : EditCharAttrib( rAttr, nPos, nPos+1 )
341 : {
342 27879 : SetFeature( true ); // !!!
343 27879 : pTxtColor = 0;
344 27879 : pFldColor = 0;
345 27879 : }
346 :
347 22490 : void EditCharAttribField::SetFont( SvxFont& rFont, OutputDevice* )
348 : {
349 22490 : if ( pFldColor )
350 : {
351 58 : rFont.SetFillColor( *pFldColor );
352 58 : rFont.SetTransparent( false );
353 : }
354 22490 : if ( pTxtColor )
355 56 : rFont.SetColor( *pTxtColor );
356 22490 : }
357 :
358 :
359 14245 : void EditCharAttribField::SetFieldValue(const OUString& rVal)
360 : {
361 14245 : aFieldValue = rVal;
362 14245 : }
363 :
364 56367 : void EditCharAttribField::Reset()
365 : {
366 56367 : aFieldValue = OUString();
367 56367 : delete pTxtColor; pTxtColor = NULL;
368 56367 : delete pFldColor; pFldColor = NULL;
369 56367 : }
370 :
371 14245 : EditCharAttribField::EditCharAttribField( const EditCharAttribField& rAttr )
372 42735 : : EditCharAttrib( *rAttr.GetItem(), rAttr.GetStart(), rAttr.GetEnd() ),
373 42735 : aFieldValue( rAttr.aFieldValue )
374 : {
375 : // Use this constructor only for temporary Objects, Item is not pooled.
376 14245 : pTxtColor = rAttr.pTxtColor ? new Color( *rAttr.pTxtColor ) : 0;
377 14245 : pFldColor = rAttr.pFldColor ? new Color( *rAttr.pFldColor ) : 0;
378 14245 : }
379 :
380 126366 : EditCharAttribField::~EditCharAttribField()
381 : {
382 42122 : Reset();
383 84244 : }
384 :
385 14245 : bool EditCharAttribField::operator == ( const EditCharAttribField& rAttr ) const
386 : {
387 14245 : if ( aFieldValue != rAttr.aFieldValue )
388 13249 : return false;
389 :
390 996 : if ( ( pTxtColor && !rAttr.pTxtColor ) || ( !pTxtColor && rAttr.pTxtColor ) )
391 0 : return false;
392 996 : if ( ( pTxtColor && rAttr.pTxtColor ) && ( *pTxtColor != *rAttr.pTxtColor ) )
393 0 : return false;
394 :
395 996 : if ( ( pFldColor && !rAttr.pFldColor ) || ( !pFldColor && rAttr.pFldColor ) )
396 0 : return false;
397 996 : if ( ( pFldColor && rAttr.pFldColor ) && ( *pFldColor != *rAttr.pFldColor ) )
398 0 : return false;
399 :
400 996 : return true;
401 : }
402 :
403 :
404 : // class EditCharAttribPairKerning
405 :
406 3248 : EditCharAttribPairKerning::EditCharAttribPairKerning( const SvxAutoKernItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
407 3248 : : EditCharAttrib( rAttr, _nStart, _nEnd )
408 : {
409 : DBG_ASSERT( rAttr.Which() == EE_CHAR_PAIRKERNING, "Not a Pair Kerning!" );
410 3248 : }
411 :
412 15674 : void EditCharAttribPairKerning::SetFont( SvxFont& rFont, OutputDevice* )
413 : {
414 15674 : rFont.SetKerning( static_cast<const SvxAutoKernItem*>(GetItem())->GetValue() );
415 15674 : }
416 :
417 :
418 : // class EditCharAttribKerning
419 :
420 9407 : EditCharAttribKerning::EditCharAttribKerning( const SvxKerningItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
421 9407 : : EditCharAttrib( rAttr, _nStart, _nEnd )
422 : {
423 : DBG_ASSERT( rAttr.Which() == EE_CHAR_KERNING, "Not a Kerning!" );
424 9407 : }
425 :
426 27123 : void EditCharAttribKerning::SetFont( SvxFont& rFont, OutputDevice* )
427 : {
428 27123 : rFont.SetFixKerning( static_cast<const SvxKerningItem*>(GetItem())->GetValue() );
429 27123 : }
430 :
431 :
432 : // class EditCharAttribWordLineMode
433 :
434 3273 : EditCharAttribWordLineMode::EditCharAttribWordLineMode( const SvxWordLineModeItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
435 3273 : : EditCharAttrib( rAttr, _nStart, _nEnd )
436 : {
437 : DBG_ASSERT( rAttr.Which() == EE_CHAR_WLM, "Not a Kerning!" );
438 3273 : }
439 :
440 15275 : void EditCharAttribWordLineMode::SetFont( SvxFont& rFont, OutputDevice* )
441 : {
442 15275 : rFont.SetWordLineMode( static_cast<const SvxWordLineModeItem*>(GetItem())->GetValue() );
443 15275 : }
444 :
445 :
446 : // class EditCharAttribEmphasisMark
447 :
448 3408 : EditCharAttribEmphasisMark::EditCharAttribEmphasisMark( const SvxEmphasisMarkItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
449 3408 : : EditCharAttrib( rAttr, _nStart, _nEnd )
450 : {
451 : DBG_ASSERT( rAttr.Which() == EE_CHAR_EMPHASISMARK, "Not a Emphasis attribute!" );
452 3408 : }
453 :
454 15653 : void EditCharAttribEmphasisMark::SetFont( SvxFont& rFont, OutputDevice* )
455 : {
456 15653 : rFont.SetEmphasisMark( static_cast<const SvxEmphasisMarkItem*>(GetItem())->GetEmphasisMark() );
457 15653 : }
458 :
459 :
460 : // class EditCharAttribRelief
461 :
462 3368 : EditCharAttribRelief::EditCharAttribRelief( const SvxCharReliefItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
463 3368 : : EditCharAttrib( rAttr, _nStart, _nEnd )
464 : {
465 : DBG_ASSERT( rAttr.Which() == EE_CHAR_RELIEF, "Not a relief attribute!" );
466 3368 : }
467 :
468 15459 : void EditCharAttribRelief::SetFont( SvxFont& rFont, OutputDevice* )
469 : {
470 15459 : rFont.SetRelief( (FontRelief)static_cast<const SvxCharReliefItem*>(GetItem())->GetValue() );
471 15459 : }
472 :
473 : // class EditCharAttribGrabBag
474 :
475 1954 : EditCharAttribGrabBag::EditCharAttribGrabBag( const SfxGrabBagItem& rAttr, sal_uInt16 _nStart, sal_uInt16 _nEnd )
476 1954 : : EditCharAttrib( rAttr, _nStart, _nEnd )
477 : {
478 : DBG_ASSERT( rAttr.Which() == EE_CHAR_GRABBAG, "Not a grab bage attribute!" );
479 2623 : }
480 :
481 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|