drtxtob2.cxx (ef076a15) | drtxtob2.cxx (1e9c32af) |
---|---|
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 --- 191 unchanged lines hidden (view full) --- 200 if ( rMarkList.GetMarkCount() == 1 && rReq.GetArgs() ) 201 { 202 const SfxItemSet& rSet = *rReq.GetArgs(); 203 const SfxPoolItem* pItem; 204 205 if ( pDrView->IsTextEdit() ) 206 pDrView->ScEndTextEdit(); 207 | 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 --- 191 unchanged lines hidden (view full) --- 200 if ( rMarkList.GetMarkCount() == 1 && rReq.GetArgs() ) 201 { 202 const SfxItemSet& rSet = *rReq.GetArgs(); 203 const SfxPoolItem* pItem; 204 205 if ( pDrView->IsTextEdit() ) 206 pDrView->ScEndTextEdit(); 207 |
208 if ( SFX_ITEM_SET == 209 rSet.GetItemState(XATTR_FORMTXTSTDFORM, sal_True, &pItem) 210 && XFTFORM_NONE != 211 ((const XFormTextStdFormItem*) pItem)->GetValue() ) 212 { 213 214 sal_uInt16 nId = SvxFontWorkChildWindow::GetChildWindowId(); 215 SfxViewFrame* pViewFrm = pViewData->GetViewShell()->GetViewFrame(); 216 SvxFontWorkDialog* pDlg = (SvxFontWorkDialog*) 217 (pViewFrm-> 218 GetChildWindow(nId)->GetWindow()); 219 220 pDlg->CreateStdFormObj(*pDrView, *pDrView->GetSdrPageView(), 221 rSet, *rMarkList.GetMark(0)->GetMarkedSdrObj(), 222 ((const XFormTextStdFormItem*) pItem)-> 223 GetValue()); 224 } 225 else 226 pDrView->SetAttributes(rSet); | 208 pDrView->SetAttributes(rSet); |
227 } 228} 229 230void ScDrawTextObjectBar::GetFormTextState(SfxItemSet& rSet) 231{ 232 const SdrObject* pObj = NULL; 233 SvxFontWorkDialog* pDlg = NULL; 234 ScDrawView* pDrView = pViewData->GetView()->GetScDrawView(); --- 19 unchanged lines hidden (view full) --- 254 if ( pDlg ) 255 pDlg->SetActive(sal_False); 256 257 rSet.DisableItem(XATTR_FORMTXTSTYLE); 258 rSet.DisableItem(XATTR_FORMTXTADJUST); 259 rSet.DisableItem(XATTR_FORMTXTDISTANCE); 260 rSet.DisableItem(XATTR_FORMTXTSTART); 261 rSet.DisableItem(XATTR_FORMTXTMIRROR); | 209 } 210} 211 212void ScDrawTextObjectBar::GetFormTextState(SfxItemSet& rSet) 213{ 214 const SdrObject* pObj = NULL; 215 SvxFontWorkDialog* pDlg = NULL; 216 ScDrawView* pDrView = pViewData->GetView()->GetScDrawView(); --- 19 unchanged lines hidden (view full) --- 236 if ( pDlg ) 237 pDlg->SetActive(sal_False); 238 239 rSet.DisableItem(XATTR_FORMTXTSTYLE); 240 rSet.DisableItem(XATTR_FORMTXTADJUST); 241 rSet.DisableItem(XATTR_FORMTXTDISTANCE); 242 rSet.DisableItem(XATTR_FORMTXTSTART); 243 rSet.DisableItem(XATTR_FORMTXTMIRROR); |
262 rSet.DisableItem(XATTR_FORMTXTSTDFORM); | |
263 rSet.DisableItem(XATTR_FORMTXTHIDEFORM); 264 rSet.DisableItem(XATTR_FORMTXTOUTLINE); 265 rSet.DisableItem(XATTR_FORMTXTSHADOW); 266 rSet.DisableItem(XATTR_FORMTXTSHDWCOLOR); 267 rSet.DisableItem(XATTR_FORMTXTSHDWXVAL); 268 rSet.DisableItem(XATTR_FORMTXTSHDWYVAL); 269 } 270 else --- 30 unchanged lines hidden --- | 244 rSet.DisableItem(XATTR_FORMTXTHIDEFORM); 245 rSet.DisableItem(XATTR_FORMTXTOUTLINE); 246 rSet.DisableItem(XATTR_FORMTXTSHADOW); 247 rSet.DisableItem(XATTR_FORMTXTSHDWCOLOR); 248 rSet.DisableItem(XATTR_FORMTXTSHDWXVAL); 249 rSet.DisableItem(XATTR_FORMTXTSHDWYVAL); 250 } 251 else --- 30 unchanged lines hidden --- |