1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef LAYOUT_AWT_VCLXBUTTON_HXX 29 #define LAYOUT_AWT_VCLXBUTTON_HXX 30 31 #include <toolkit/awt/vclxwindows.hxx> 32 33 /* Replacements for broken toolkit/ impls. of ok, cancel, help button, etc. */ 34 35 namespace layoutimpl 36 { 37 38 class VCLXIconButton : public VCLXButton 39 { 40 public: 41 VCLXIconButton( Window* p, rtl::OUString aDefaultLabel, const char *pGraphName ); 42 void Show (); 43 }; 44 45 class VCLXOKButton : public VCLXIconButton 46 { 47 public: 48 VCLXOKButton( Window *p ); 49 }; 50 51 class VCLXCancelButton : public VCLXIconButton 52 { 53 public: 54 VCLXCancelButton( Window *p ); 55 }; 56 57 class VCLXYesButton : public VCLXIconButton 58 { 59 public: 60 VCLXYesButton( Window *p ); 61 }; 62 63 class VCLXNoButton : public VCLXIconButton 64 { 65 public: 66 VCLXNoButton( Window *p ); 67 }; 68 69 class VCLXRetryButton : public VCLXIconButton 70 { 71 public: 72 VCLXRetryButton( Window *p ); 73 }; 74 75 class VCLXIgnoreButton : public VCLXIconButton 76 { 77 public: 78 VCLXIgnoreButton( Window *p ); 79 }; 80 81 class VCLXResetButton : public VCLXIconButton 82 { 83 public: 84 VCLXResetButton( Window *p ); 85 }; 86 87 class VCLXApplyButton : public VCLXIconButton 88 { 89 public: 90 VCLXApplyButton( Window *p ); 91 }; 92 93 class VCLXHelpButton : public VCLXIconButton 94 { 95 public: 96 VCLXHelpButton( Window *p ); 97 }; 98 99 // TODO. Reuse vcl/Morebutton, or make AdvancedButton reuse me? 100 class VCLXMoreButton : public VCLXIconButton 101 { 102 public: 103 VCLXMoreButton( Window *p ); 104 }; 105 106 class VCLXAdvancedButton : public VCLXIconButton 107 { 108 public: 109 VCLXAdvancedButton( Window *p ); 110 }; 111 112 } // namespace layoutimpl 113 114 #endif // LAYOUT_AWT_VCLXBUTTON_HXX 115