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 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef SD_BREAK_DLG_HXX 25 #define SD_BREAK_DLG_HXX 26 27 #include <vcl/group.hxx> 28 #ifndef _SV_BUTTON_HXX //autogen 29 #include <vcl/button.hxx> 30 #endif 31 #include <svx/dlgctrl.hxx> 32 #include <vcl/field.hxx> 33 #include <vcl/fixed.hxx> 34 #include <svtools/prgsbar.hxx> 35 #include <vcl/edit.hxx> 36 #include <svtools/stdctrl.hxx> 37 #include <sfx2/basedlgs.hxx> 38 39 class SvdProgressInfo; 40 class SfxProgress; 41 42 namespace sd { 43 44 class DrawDocShell; 45 class DrawView; 46 47 /************************************************************************* 48 |* 49 |* Dialog zum aufbrechen von Metafiles 50 |* 51 \************************************************************************/ 52 class BreakDlg 53 : public SfxModalDialog 54 { 55 public: 56 BreakDlg ( 57 ::Window* pWindow, 58 DrawView* pDrView, 59 DrawDocShell* pShell, 60 sal_uLong nSumActionCount, 61 sal_uLong nObjCount); 62 virtual ~BreakDlg(); 63 64 short Execute(); 65 66 private: 67 FixedText aFtObjInfo; 68 FixedText aFtActInfo; 69 FixedText aFtInsInfo; 70 71 FixedInfo aFiObjInfo; 72 FixedInfo aFiActInfo; 73 FixedInfo aFiInsInfo; 74 75 CancelButton aBtnCancel; 76 DrawView* pDrView; 77 78 sal_Bool bCancel; 79 80 Timer aTimer; 81 SvdProgressInfo *pProgrInfo; 82 Link aLink; 83 SfxProgress *mpProgress; 84 85 DECL_LINK( CancelButtonHdl, void* ); 86 DECL_LINK( UpDate, void* ); 87 DECL_LINK( InitialUpdate, Timer* ); 88 }; 89 90 } // end of namespace sd 91 92 #endif 93