grfsh.cxx (721f296a) | grfsh.cxx (395b75f9) |
---|---|
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 --- 100 unchanged lines hidden (view full) --- 109 String sGrfNm, sFilterNm; 110 rSh.GetGrfNms( &sGrfNm, &sFilterNm ); 111 ExportGraphic( *pGraphic, sGrfNm ); 112 } 113 } 114 break; 115 case SID_INSERT_GRAPHIC: 116 case FN_FORMAT_GRAFIC_DLG: | 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 --- 100 unchanged lines hidden (view full) --- 109 String sGrfNm, sFilterNm; 110 rSh.GetGrfNms( &sGrfNm, &sFilterNm ); 111 ExportGraphic( *pGraphic, sGrfNm ); 112 } 113 } 114 break; 115 case SID_INSERT_GRAPHIC: 116 case FN_FORMAT_GRAFIC_DLG: |
117 case FN_PROPERTY_WRAP_DLG: | 117 case FN_DRAW_WRAP_DLG: |
118 { 119 SwFlyFrmAttrMgr aMgr( sal_False, &rSh, rSh.IsFrmSelected() ? 120 FRMMGR_TYPE_NONE : FRMMGR_TYPE_GRF); 121 const SwViewOption* pVOpt = rSh.GetViewOptions(); 122 SwViewOption aUsrPref( *pVOpt ); 123 124 SfxItemSet aSet(GetPool(), RES_FRMATR_BEGIN, RES_FRMATR_END-1, 125 RES_GRFATR_MIRRORGRF, RES_GRFATR_CROPGRF, --- 99 unchanged lines hidden (view full) --- 225 SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); 226 DBG_ASSERT(pFact, "Dialogdiet fail!"); 227 SfxAbstractTabDialog* pDlg = pFact->CreateFrmTabDialog( DLG_FRM_GRF, 228 GetView().GetViewFrame(), 229 GetView().GetWindow(), 230 aSet, sal_False, DLG_FRM_GRF); 231 DBG_ASSERT(pDlg, "Dialogdiet fail!"); 232 | 118 { 119 SwFlyFrmAttrMgr aMgr( sal_False, &rSh, rSh.IsFrmSelected() ? 120 FRMMGR_TYPE_NONE : FRMMGR_TYPE_GRF); 121 const SwViewOption* pVOpt = rSh.GetViewOptions(); 122 SwViewOption aUsrPref( *pVOpt ); 123 124 SfxItemSet aSet(GetPool(), RES_FRMATR_BEGIN, RES_FRMATR_END-1, 125 RES_GRFATR_MIRRORGRF, RES_GRFATR_CROPGRF, --- 99 unchanged lines hidden (view full) --- 225 SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); 226 DBG_ASSERT(pFact, "Dialogdiet fail!"); 227 SfxAbstractTabDialog* pDlg = pFact->CreateFrmTabDialog( DLG_FRM_GRF, 228 GetView().GetViewFrame(), 229 GetView().GetWindow(), 230 aSet, sal_False, DLG_FRM_GRF); 231 DBG_ASSERT(pDlg, "Dialogdiet fail!"); 232 |
233 if (nSlot == FN_PROPERTY_WRAP_DLG) | 233 if (nSlot == FN_DRAW_WRAP_DLG) |
234 pDlg->SetCurPageId(TP_FRM_WRAP); 235 236 if( pDlg->Execute() ) 237 { 238 rSh.StartAllAction(); 239 rSh.StartUndo(UNDO_START); 240 const SfxPoolItem* pItem; 241 SfxItemSet* pSet = (SfxItemSet*)pDlg->GetOutputItemSet(); --- 460 unchanged lines hidden --- | 234 pDlg->SetCurPageId(TP_FRM_WRAP); 235 236 if( pDlg->Execute() ) 237 { 238 rSh.StartAllAction(); 239 rSh.StartUndo(UNDO_START); 240 const SfxPoolItem* pItem; 241 SfxItemSet* pSet = (SfxItemSet*)pDlg->GetOutputItemSet(); --- 460 unchanged lines hidden --- |