DrawViewWrapper.cxx (4772d9af) | DrawViewWrapper.cxx (d5370dc8) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 166 unchanged lines hidden (view full) --- 175 pOutlinerPool->SetPoolDefaultItem( SvxLanguageItem( aLinguOptions.nDefaultLanguage_CJK, EE_CHAR_LANGUAGE_CJK ) ); 176 pOutlinerPool->SetPoolDefaultItem( SvxLanguageItem( aLinguOptions.nDefaultLanguage_CTL, EE_CHAR_LANGUAGE_CTL ) ); 177 } 178 179 // set font height without changing SdrEngineDefaults 180 pOutlinerPool->SetPoolDefaultItem( SvxFontHeightItem( 423, 100, EE_CHAR_FONTHEIGHT ) ); // 12pt 181 } 182 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 166 unchanged lines hidden (view full) --- 175 pOutlinerPool->SetPoolDefaultItem( SvxLanguageItem( aLinguOptions.nDefaultLanguage_CJK, EE_CHAR_LANGUAGE_CJK ) ); 176 pOutlinerPool->SetPoolDefaultItem( SvxLanguageItem( aLinguOptions.nDefaultLanguage_CTL, EE_CHAR_LANGUAGE_CTL ) ); 177 } 178 179 // set font height without changing SdrEngineDefaults 180 pOutlinerPool->SetPoolDefaultItem( SvxFontHeightItem( 423, 100, EE_CHAR_FONTHEIGHT ) ); // 12pt 181 } 182 |
183 // #121463# Use big handles by default 184 SetMarkHdlSizePixel(9); 185 | |
186 ReInit(); 187} 188 189void DrawViewWrapper::ReInit() 190{ 191 OutputDevice* pOutDev = this->GetFirstOutputDevice(); 192 Size aOutputSize(100,100); 193 if(pOutDev) --- 141 unchanged lines hidden (view full) --- 335{ 336// lcl_initOutliner( m_apOutliner.get(), &GetModel()->GetDrawOutliner() ); 337 return m_apOutliner.get(); 338} 339 340SfxItemSet DrawViewWrapper::getPositionAndSizeItemSetFromMarkedObject() const 341{ 342 SfxItemSet aFullSet( GetModel()->GetItemPool(), | 183 ReInit(); 184} 185 186void DrawViewWrapper::ReInit() 187{ 188 OutputDevice* pOutDev = this->GetFirstOutputDevice(); 189 Size aOutputSize(100,100); 190 if(pOutDev) --- 141 unchanged lines hidden (view full) --- 332{ 333// lcl_initOutliner( m_apOutliner.get(), &GetModel()->GetDrawOutliner() ); 334 return m_apOutliner.get(); 335} 336 337SfxItemSet DrawViewWrapper::getPositionAndSizeItemSetFromMarkedObject() const 338{ 339 SfxItemSet aFullSet( GetModel()->GetItemPool(), |
343 SID_ATTR_TRANSFORM_POS_X,SID_ATTR_TRANSFORM_ANGLE, 344 SID_ATTR_TRANSFORM_PROTECT_POS,SID_ATTR_TRANSFORM_AUTOHEIGHT, 345 SDRATTR_ECKENRADIUS,SDRATTR_ECKENRADIUS, 346 SID_ATTR_METRIC,SID_ATTR_METRIC, | 340 SID_ATTR_TRANSFORM_POS_X, SID_ATTR_TRANSFORM_ANGLE, 341 SID_ATTR_TRANSFORM_MIRROR_HORIZONTAL, SID_ATTR_TRANSFORM_MIRROR_VERTICAL, 342 SID_ATTR_TRANSFORM_PROTECT_POS, SID_ATTR_TRANSFORM_AUTOHEIGHT, 343 SDRATTR_ECKENRADIUS, SDRATTR_ECKENRADIUS, 344 SID_ATTR_METRIC, SID_ATTR_METRIC, |
347 0); 348 SfxItemSet aGeoSet( E3dView::GetGeoAttrFromMarked() ); 349 aFullSet.Put( aGeoSet ); 350 aFullSet.Put( SfxUInt16Item(SID_ATTR_METRIC,static_cast< sal_uInt16 >( ConfigurationAccess::getFieldUnit()))); 351 return aFullSet; 352} 353 354SdrObject* DrawViewWrapper::getNamedSdrObject( const rtl::OUString& rName ) const --- 89 unchanged lines hidden --- | 345 0); 346 SfxItemSet aGeoSet( E3dView::GetGeoAttrFromMarked() ); 347 aFullSet.Put( aGeoSet ); 348 aFullSet.Put( SfxUInt16Item(SID_ATTR_METRIC,static_cast< sal_uInt16 >( ConfigurationAccess::getFieldUnit()))); 349 return aFullSet; 350} 351 352SdrObject* DrawViewWrapper::getNamedSdrObject( const rtl::OUString& rName ) const --- 89 unchanged lines hidden --- |