LibreOffice Module forms (master) 1
rtattributehandler.cxx
Go to the documentation of this file.
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
21
22#include <osl/diagnose.h>
23#include <svx/svxids.hrc>
24#include <editeng/eeitem.hxx>
25#include <svl/itemset.hxx>
26#include <svl/itempool.hxx>
27#include <tools/mapunit.hxx>
28#include <vcl/mapmod.hxx>
29#include <vcl/outdev.hxx>
30
33#include <editeng/lspcitem.hxx>
34#include <editeng/fhgtitem.hxx>
37
38
39namespace frm
40{
41
42
44 :m_nAttribute( _nAttributeId )
45 ,m_nWhich ( _nWhichId )
46 {
47 }
48
49
51 {
52 }
53
54
56 {
57 return getAttribute();
58 }
59
60
62 {
63 OSL_FAIL( "AttributeHandler::implGetCheckState: not to be called!" );
64 return eIndetermined;
65 }
66
67
68 void AttributeHandler::putItemForScript( SfxItemSet& _rAttribs, const SfxPoolItem& _rItem, SvtScriptType _nForScriptType ) const
69 {
70 SvxScriptSetItem aSetItem( static_cast<WhichId>(getAttributeId()), *_rAttribs.GetPool() );
71 aSetItem.PutItemForScriptType( _nForScriptType, _rItem );
72 _rAttribs.Put( aSetItem.GetItemSet(), false );
73 }
74
75
77 {
78 AttributeCheckState eSimpleState( eIndetermined );
79 const SfxPoolItem* pItem = _rAttribs.GetItem( getWhich() );
80 if ( pItem )
81 eSimpleState = implGetCheckState( *pItem );
82 return eSimpleState;
83 }
84
85
87 {
89 aState.eSimpleState = getCheckState( _rAttribs );
90 return aState;
91 }
92
93
94 //= AttributeHandlerFactory
95
96
97 namespace
98 {
99 WhichId lcl_implGetWhich( const SfxItemPool& _rPool, AttributeId _nAttributeId )
100 {
101 WhichId nWhich = 0;
102 switch ( _nAttributeId )
103 {
104 case SID_ATTR_CHAR_LATIN_FONTHEIGHT:nWhich = EE_CHAR_FONTHEIGHT;break;
105 case SID_ATTR_CHAR_LATIN_FONT: nWhich = EE_CHAR_FONTINFO; break;
106 case SID_ATTR_CHAR_LATIN_LANGUAGE: nWhich = EE_CHAR_LANGUAGE; break;
107 case SID_ATTR_CHAR_LATIN_POSTURE: nWhich = EE_CHAR_ITALIC; break;
108 case SID_ATTR_CHAR_LATIN_WEIGHT: nWhich = EE_CHAR_WEIGHT; break;
109
110 default:
111 nWhich = _rPool.GetWhich( static_cast<SfxSlotId>(_nAttributeId) );
112 }
113 return nWhich;
114 }
115 }
116
118 {
120 switch ( _nAttributeId )
121 {
122 case SID_ATTR_PARA_ADJUST_LEFT :
123 case SID_ATTR_PARA_ADJUST_CENTER:
124 case SID_ATTR_PARA_ADJUST_RIGHT :
125 case SID_ATTR_PARA_ADJUST_BLOCK :
126 pReturn = new ParaAlignmentHandler( _nAttributeId );
127 break;
128
129 case SID_ATTR_PARA_LINESPACE_10:
130 case SID_ATTR_PARA_LINESPACE_15:
131 case SID_ATTR_PARA_LINESPACE_20:
132 pReturn = new LineSpacingHandler( _nAttributeId );
133 break;
134
135 case SID_SET_SUPER_SCRIPT:
136 case SID_SET_SUB_SCRIPT:
137 pReturn = new EscapementHandler( _nAttributeId );
138 break;
139
140 case SID_ATTR_CHAR_FONTHEIGHT:
141 case SID_ATTR_CHAR_CTL_FONTHEIGHT:
142 case SID_ATTR_CHAR_CJK_FONTHEIGHT:
143 case SID_ATTR_CHAR_LATIN_FONTHEIGHT:
144 pReturn = new FontSizeHandler( _nAttributeId, lcl_implGetWhich( _rEditEnginePool, _nAttributeId ) );
145 break;
146
147 case SID_ATTR_PARA_LEFT_TO_RIGHT:
148 case SID_ATTR_PARA_RIGHT_TO_LEFT:
149 pReturn = new ParagraphDirectionHandler( _nAttributeId );
150 break;
151
152 case SID_ATTR_PARA_HANGPUNCTUATION:
153 case SID_ATTR_PARA_FORBIDDEN_RULES:
154 case SID_ATTR_PARA_SCRIPTSPACE:
155 pReturn = new BooleanHandler( _nAttributeId, lcl_implGetWhich( _rEditEnginePool, _nAttributeId ) );
156 break;
157
158 default:
159 pReturn = new SlotHandler( static_cast<SfxSlotId>(_nAttributeId), lcl_implGetWhich( _rEditEnginePool, _nAttributeId ) );
160 break;
161
162 }
163
164 return pReturn;
165 }
166
168 :AttributeHandler( _nAttributeId, EE_PARA_JUST )
169 ,m_eAdjust( SvxAdjust::Center )
170 {
171 switch ( getAttribute() )
172 {
173 case SID_ATTR_PARA_ADJUST_LEFT : m_eAdjust = SvxAdjust::Left; break;
174 case SID_ATTR_PARA_ADJUST_CENTER: m_eAdjust = SvxAdjust::Center; break;
175 case SID_ATTR_PARA_ADJUST_RIGHT : m_eAdjust = SvxAdjust::Right; break;
176 case SID_ATTR_PARA_ADJUST_BLOCK : m_eAdjust = SvxAdjust::Block; break;
177 default:
178 OSL_FAIL( "ParaAlignmentHandler::ParaAlignmentHandler: invalid slot!" );
179 break;
180 }
181 }
182
183
185 {
186 assert( dynamic_cast<const SvxAdjustItem*>( &_rItem) && "ParaAlignmentHandler::implGetCheckState: invalid pool item!" );
187 SvxAdjust eAdjust = static_cast< const SvxAdjustItem& >( _rItem ).GetAdjust();
188 return ( eAdjust == m_eAdjust ) ? eChecked : eUnchecked;
189 }
190
191
192 void ParaAlignmentHandler::executeAttribute( const SfxItemSet& /*_rCurrentAttribs*/, SfxItemSet& _rNewAttribs, const SfxPoolItem* _pAdditionalArg, SvtScriptType /*_nForScriptType*/ ) const
193 {
194 OSL_ENSURE( !_pAdditionalArg, "ParaAlignmentHandler::executeAttribute: this is a simple toggle attribute - no args possible!" );
195 _rNewAttribs.Put( SvxAdjustItem( m_eAdjust, getWhich() ) );
196 }
197
199 :AttributeHandler( _nAttributeId, EE_PARA_SBL )
200 ,m_nLineSpace( 100 )
201 {
202 switch ( getAttribute() )
203 {
204 case SID_ATTR_PARA_LINESPACE_10: m_nLineSpace = 100; break;
205 case SID_ATTR_PARA_LINESPACE_15: m_nLineSpace = 150; break;
206 case SID_ATTR_PARA_LINESPACE_20: m_nLineSpace = 200; break;
207 default:
208 OSL_FAIL( "LineSpacingHandler::LineSpacingHandler: invalid slot!" );
209 break;
210 }
211 }
212
213
215 {
216 assert( dynamic_cast<const SvxLineSpacingItem*>( &_rItem) && "LineSpacingHandler::implGetCheckState: invalid pool item!" );
217 sal_uInt16 nLineSpace = static_cast< const SvxLineSpacingItem& >( _rItem ).GetPropLineSpace();
218 return ( nLineSpace == m_nLineSpace ) ? eChecked : eUnchecked;
219 }
220
221
222 void LineSpacingHandler::executeAttribute( const SfxItemSet& /*_rCurrentAttribs*/, SfxItemSet& _rNewAttribs, const SfxPoolItem* _pAdditionalArg, SvtScriptType /*_nForScriptType*/ ) const
223 {
224 OSL_ENSURE( !_pAdditionalArg, "LineSpacingHandler::executeAttribute: this is a simple toggle attribute - no args possible!" );
225
226 SvxLineSpacingItem aLineSpacing( m_nLineSpace, getWhich() );
227 aLineSpacing.SetLineSpaceRule( SvxLineSpaceRule::Auto );
228 if ( 100 == m_nLineSpace )
229 aLineSpacing.SetInterLineSpaceRule( SvxInterLineSpaceRule::Off );
230 else
231 aLineSpacing.SetPropLineSpace( m_nLineSpace );
232
233 _rNewAttribs.Put( aLineSpacing );
234 }
235
237 :AttributeHandler( _nAttributeId, EE_CHAR_ESCAPEMENT )
238 ,m_eEscapement( SvxEscapement::Off )
239 {
240 switch ( getAttribute() )
241 {
242 case SID_SET_SUPER_SCRIPT : m_eEscapement = SvxEscapement::Superscript; break;
243 case SID_SET_SUB_SCRIPT : m_eEscapement = SvxEscapement::Subscript; break;
244 default:
245 OSL_FAIL( "EscapementHandler::EscapementHandler: invalid slot!" );
246 break;
247 }
248 }
249
250
252 {
253 assert( dynamic_cast<const SvxEscapementItem*>( &_rItem) && "EscapementHandler::getState: invalid pool item!" );
254 SvxEscapement eEscapement = static_cast< const SvxEscapementItem& >( _rItem ).GetEscapement();
255 return ( eEscapement == m_eEscapement ) ? eChecked : eUnchecked;
256 }
257
258
259 void EscapementHandler::executeAttribute( const SfxItemSet& _rCurrentAttribs, SfxItemSet& _rNewAttribs, const SfxPoolItem* _pAdditionalArg, SvtScriptType /*_nForScriptType*/ ) const {
260 OSL_ENSURE( !_pAdditionalArg, "EscapementHandler::executeAttribute: this is a simple toggle attribute - no args possible!" );
261 // well, in theory we could allow an SvxEscapementItem here, but this is not needed
262
263 bool bIsChecked = getCheckState( _rCurrentAttribs ) == eChecked;
264 _rNewAttribs.Put( SvxEscapementItem( bIsChecked ? SvxEscapement::Off : m_eEscapement, getWhich() ) );
265 }
266
267 SlotHandler::SlotHandler( AttributeId _nAttributeId, WhichId _nWhichId )
268 :AttributeHandler( _nAttributeId, _nWhichId )
269 ,m_bScriptDependent( false )
270 {
271 m_bScriptDependent = ( sal_uInt16(SID_ATTR_CHAR_WEIGHT) == _nAttributeId )
272 || ( sal_uInt16(SID_ATTR_CHAR_POSTURE) == _nAttributeId )
273 || ( sal_uInt16(SID_ATTR_CHAR_FONT) == _nAttributeId );
274 }
275
276
278 {
280
281 const SfxPoolItem* pItem = _rAttribs.GetItem( getWhich() );
282 if ( pItem )
283 aState.setItem( pItem );
284
285 return aState;
286 }
287
288
289 void SlotHandler::executeAttribute( const SfxItemSet& /*_rCurrentAttribs*/, SfxItemSet& _rNewAttribs, const SfxPoolItem* _pAdditionalArg, SvtScriptType _nForScriptType ) const
290 {
291 if ( _pAdditionalArg )
292 {
293 std::unique_ptr<SfxPoolItem> pCorrectWich(_pAdditionalArg->CloneSetWhich(getWhich()));
294
295 if ( m_bScriptDependent )
296 putItemForScript( _rNewAttribs, *pCorrectWich, _nForScriptType );
297 else
298 _rNewAttribs.Put( std::move(pCorrectWich) );
299 }
300 else
301 OSL_FAIL( "SlotHandler::executeAttribute: need attributes to do something!" );
302 }
303
305 :AttributeHandler( _nAttributeId, _nWhichId )
306 {
307 OSL_ENSURE( ( _nAttributeId == sal_uInt16(SID_ATTR_CHAR_FONTHEIGHT) ) || ( _nAttributeId == sal_uInt16(SID_ATTR_CHAR_CTL_FONTHEIGHT) )
308 || ( _nAttributeId == sal_uInt16(SID_ATTR_CHAR_CJK_FONTHEIGHT) ) || ( _nAttributeId == sal_uInt16(SID_ATTR_CHAR_LATIN_FONTHEIGHT) ),
309 "FontSizeHandler::FontSizeHandler: invalid attribute id!" );
310 }
311
312
314 {
316
317 const SfxPoolItem* pItem = _rAttribs.GetItem( getWhich() );
318 const SvxFontHeightItem* pFontHeightItem = dynamic_cast<const SvxFontHeightItem*>( pItem );
319 OSL_ENSURE( pFontHeightItem || !pItem, "FontSizeHandler::getState: invalid item!" );
320 if ( pFontHeightItem )
321 {
322 // by definition, the item should have the unit twip
323 sal_uInt32 nHeight = pFontHeightItem->GetHeight();
324 if ( _rAttribs.GetPool()->GetMetric( getWhich() ) != MapUnit::MapTwip )
325 {
327 Size( 0, nHeight ),
328 MapMode( _rAttribs.GetPool()->GetMetric( getWhich() ) ),
329 MapMode( MapUnit::MapTwip )
330 ).Height();
331 }
332
333 SvxFontHeightItem* pNewItem = new SvxFontHeightItem( nHeight, 100, getWhich() );
334 pNewItem->SetProp( pFontHeightItem->GetProp(), pFontHeightItem->GetPropUnit() );
335 aState.setItem( pNewItem );
336 }
337
338 return aState;
339 }
340
341
342 void FontSizeHandler::executeAttribute( const SfxItemSet& /*_rCurrentAttribs*/, SfxItemSet& _rNewAttribs, const SfxPoolItem* _pAdditionalArg, SvtScriptType _nForScriptType ) const
343 {
344 const SvxFontHeightItem* pFontHeightItem = dynamic_cast<const SvxFontHeightItem*>( _pAdditionalArg );
345 OSL_ENSURE( pFontHeightItem, "FontSizeHandler::executeAttribute: need a FontHeightItem!" );
346
347 if ( !pFontHeightItem )
348 return;
349
350 sal_uInt32 nHeight = pFontHeightItem->GetHeight();
351 if ( _rNewAttribs.GetPool()->GetMetric( getWhich() ) != MapUnit::MapTwip )
352 {
354 Size( 0, nHeight ),
355 MapMode( MapUnit::MapTwip ),
356 MapMode( _rNewAttribs.GetPool()->GetMetric( getWhich() ) )
357 ).Height();
358 }
359
360 SvxFontHeightItem aNewItem( nHeight, 100, getWhich() );
361 aNewItem.SetProp( pFontHeightItem->GetProp(), pFontHeightItem->GetPropUnit() );
362
363 if ( ( getAttributeId() == sal_uInt16(SID_ATTR_CHAR_FONTHEIGHT) ) && _nForScriptType != SvtScriptType::NONE)
364 putItemForScript( _rNewAttribs, aNewItem, _nForScriptType );
365 else
366 _rNewAttribs.Put( aNewItem );
367 }
368
370 :AttributeHandler( _nAttributeId, EE_PARA_WRITINGDIR )
371 ,m_eParagraphDirection( SvxFrameDirection::Horizontal_LR_TB )
372 ,m_eDefaultAdjustment( SvxAdjust::Right )
373 ,m_eOppositeDefaultAdjustment( SvxAdjust::Left )
374 {
375 switch ( getAttributeId() )
376 {
377 case SID_ATTR_PARA_LEFT_TO_RIGHT: m_eParagraphDirection = SvxFrameDirection::Horizontal_LR_TB; m_eDefaultAdjustment = SvxAdjust::Left; break;
378 case SID_ATTR_PARA_RIGHT_TO_LEFT: m_eParagraphDirection = SvxFrameDirection::Horizontal_RL_TB; m_eDefaultAdjustment = SvxAdjust::Right; break;
379 default:
380 OSL_FAIL( "ParagraphDirectionHandler::ParagraphDirectionHandler: invalid attribute id!" );
381 }
382
383 if ( SvxAdjust::Right == m_eDefaultAdjustment )
384 m_eOppositeDefaultAdjustment = SvxAdjust::Left;
385 else
386 m_eOppositeDefaultAdjustment = SvxAdjust::Right;
387 }
388
389
391 {
392 assert( dynamic_cast<const SvxFrameDirectionItem*>( &_rItem) && "ParagraphDirectionHandler::implGetCheckState: invalid pool item!" );
393 SvxFrameDirection eDirection = static_cast< const SvxFrameDirectionItem& >( _rItem ).GetValue();
394 return ( eDirection == m_eParagraphDirection ) ? eChecked : eUnchecked;
395 }
396
397
398 void ParagraphDirectionHandler::executeAttribute( const SfxItemSet& _rCurrentAttribs, SfxItemSet& _rNewAttribs, const SfxPoolItem* /*_pAdditionalArg*/, SvtScriptType /*_nForScriptType*/ ) const
399 {
401
402 // if the current adjustment of the was the default adjustment for the *previous* text direction,
403 // then we toggle the adjustment, too
404 SvxAdjust eCurrentAdjustment = SvxAdjust::Left;
405 if ( const SvxAdjustItem* pCurrentAdjustment = _rCurrentAttribs.GetItemIfSet( EE_PARA_JUST ) )
406 eCurrentAdjustment = pCurrentAdjustment->GetAdjust();
407
408 if ( eCurrentAdjustment == m_eOppositeDefaultAdjustment )
410 }
411
413 :AttributeHandler( _nAttributeId, _nWhichId )
414 {
415 }
416
417
419 {
420 OSL_ENSURE( dynamic_cast<const SfxBoolItem*>( &_rItem) != nullptr, "BooleanHandler::implGetCheckState: invalid item!" );
421 if ( auto pBoolItem = dynamic_cast<const SfxBoolItem*>( &_rItem) )
422 return pBoolItem->GetValue() ? eChecked : eUnchecked;
423
424 return eIndetermined;
425 }
426
427
428 void BooleanHandler::executeAttribute( const SfxItemSet& /*_rCurrentAttribs*/, SfxItemSet& _rNewAttribs, const SfxPoolItem* _pAdditionalArg, SvtScriptType /*_nForScriptType*/ ) const
429 {
430 OSL_ENSURE( dynamic_cast<const SfxBoolItem*>( _pAdditionalArg) != nullptr, "BooleanHandler::executeAttribute: invalid argument!" );
431 if ( _pAdditionalArg )
432 {
433 _rNewAttribs.Put( _pAdditionalArg->CloneSetWhich(getWhich()) );
434 }
435 }
436
437
438} // namespace frm
439
440
441/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
virtual MapUnit GetMetric(sal_uInt16 nWhich) const
SfxItemPool * GetPool() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
std::unique_ptr< SfxPoolItem > CloneSetWhich(sal_uInt16 nNewWhich) const
sal_uInt32 GetHeight() const
MapUnit GetPropUnit() const
sal_uInt16 GetProp() const
void SetProp(sal_uInt16 nNewProp, MapUnit eUnit)
void SetPropLineSpace(const sal_uInt16 nProp)
void SetInterLineSpaceRule(SvxInterLineSpaceRule e)
void SetLineSpaceRule(SvxLineSpaceRule e)
void PutItemForScriptType(SvtScriptType nScriptType, const SfxPoolItem &rItem)
virtual AttributeState getState(const SfxItemSet &_rAttribs) const
AttributeId getAttribute() const
virtual ~AttributeHandler() override
AttributeCheckState getCheckState(const SfxItemSet &_rAttribs) const
helper method calling implGetCheckState
void putItemForScript(SfxItemSet &_rAttribs, const SfxPoolItem &_rItem, SvtScriptType _nForScriptType) const
helper method putting an item into a set, respecting a script type
virtual AttributeCheckState implGetCheckState(const SfxPoolItem &_rItem) const
AttributeId getAttributeId() const
AttributeHandler(AttributeId _nAttributeId, WhichId _nWhichId)
virtual AttributeCheckState implGetCheckState(const SfxPoolItem &_rItem) const override
BooleanHandler(AttributeId _nAttributeId, WhichId _nWhichId)
virtual void executeAttribute(const SfxItemSet &_rCurrentAttribs, SfxItemSet &_rNewAttribs, const SfxPoolItem *_pAdditionalArg, SvtScriptType _nForScriptType) const override
virtual AttributeCheckState implGetCheckState(const SfxPoolItem &_rItem) const override
virtual void executeAttribute(const SfxItemSet &_rCurrentAttribs, SfxItemSet &_rNewAttribs, const SfxPoolItem *_pAdditionalArg, SvtScriptType _nForScriptType) const override
EscapementHandler(AttributeId _nAttributeId)
FontSizeHandler(AttributeId _nAttributeId, WhichId _nWhichId)
virtual AttributeState getState(const SfxItemSet &_rAttribs) const override
virtual void executeAttribute(const SfxItemSet &_rCurrentAttribs, SfxItemSet &_rNewAttribs, const SfxPoolItem *_pAdditionalArg, SvtScriptType _nForScriptType) const override
virtual AttributeCheckState implGetCheckState(const SfxPoolItem &_rItem) const override
virtual void executeAttribute(const SfxItemSet &_rCurrentAttribs, SfxItemSet &_rNewAttribs, const SfxPoolItem *_pAdditionalArg, SvtScriptType _nForScriptType) const override
LineSpacingHandler(AttributeId _nAttributeId)
virtual AttributeCheckState implGetCheckState(const SfxPoolItem &_rItem) const override
ParaAlignmentHandler(AttributeId _nAttributeId)
virtual void executeAttribute(const SfxItemSet &_rCurrentAttribs, SfxItemSet &_rNewAttribs, const SfxPoolItem *_pAdditionalArg, SvtScriptType _nForScriptType) const override
ParagraphDirectionHandler(AttributeId _nAttributeId)
virtual void executeAttribute(const SfxItemSet &_rCurrentAttribs, SfxItemSet &_rNewAttribs, const SfxPoolItem *_pAdditionalArg, SvtScriptType _nForScriptType) const override
virtual AttributeCheckState implGetCheckState(const SfxPoolItem &_rItem) const override
SlotHandler(AttributeId _nAttributeId, WhichId _nWhichId)
virtual void executeAttribute(const SfxItemSet &_rCurrentAttribs, SfxItemSet &_rNewAttribs, const SfxPoolItem *_pAdditionalArg, SvtScriptType _nForScriptType) const override
virtual AttributeState getState(const SfxItemSet &_rAttribs) const override
constexpr TypedWhichId< SvxAdjustItem > EE_PARA_JUST(EE_PARA_START+16)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT(EE_CHAR_START+4)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC(EE_CHAR_START+7)
constexpr TypedWhichId< SvxLineSpacingItem > EE_PARA_SBL(EE_PARA_START+15)
constexpr TypedWhichId< SvxEscapementItem > EE_CHAR_ESCAPEMENT(EE_CHAR_START+10)
constexpr TypedWhichId< SvxFrameDirectionItem > EE_PARA_WRITINGDIR(EE_PARA_START+0)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
SvxFrameDirection
SvtScriptType
::rtl::Reference< AttributeHandler > getHandlerFor(AttributeId _nAttributeId, const SfxItemPool &_rEditEnginePool)
ListBox is a bit confusing / different from other form components, so here are a few notes:
Definition: BaseListBox.hxx:25
sal_uInt16 WhichId
the "which id" of an item in an SfxItemSet
AttributeCheckState
@ eUnchecked
@ eIndetermined
@ eChecked
sal_uInt16 SfxSlotId
a SFX slot id
sal_Int32 AttributeId
the id of an attribute
const char GetValue[]
void setItem(const SfxPoolItem *_pItem)
AttributeCheckState eSimpleState
SvxEscapement
SvxAdjust
Left
Center
Right