xref: /aoo41x/main/toolkit/source/awt/vclxbutton.hxx (revision 50e6b072)
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 LAYOUT_AWT_VCLXBUTTON_HXX
25 #define LAYOUT_AWT_VCLXBUTTON_HXX
26 
27 #include <toolkit/awt/vclxwindows.hxx>
28 
29 /* Replacements for broken toolkit/ impls. of ok, cancel, help button, etc. */
30 
31 namespace layoutimpl
32 {
33 
34 class VCLXIconButton : public VCLXButton
35 {
36 public:
37     VCLXIconButton( Window* p, rtl::OUString aDefaultLabel, const char *pGraphName );
38     void Show ();
39 };
40 
41 class VCLXOKButton : public VCLXIconButton
42 {
43 public:
44     VCLXOKButton( Window *p );
45 };
46 
47 class VCLXCancelButton : public VCLXIconButton
48 {
49 public:
50     VCLXCancelButton( Window *p );
51 };
52 
53 class VCLXYesButton : public VCLXIconButton
54 {
55 public:
56     VCLXYesButton( Window *p );
57 };
58 
59 class VCLXNoButton : public VCLXIconButton
60 {
61 public:
62     VCLXNoButton( Window *p );
63 };
64 
65 class VCLXRetryButton : public VCLXIconButton
66 {
67 public:
68     VCLXRetryButton( Window *p );
69 };
70 
71 class VCLXIgnoreButton : public VCLXIconButton
72 {
73 public:
74     VCLXIgnoreButton( Window *p );
75 };
76 
77 class VCLXResetButton : public VCLXIconButton
78 {
79 public:
80     VCLXResetButton( Window *p );
81 };
82 
83 class VCLXApplyButton : public VCLXIconButton
84 {
85 public:
86     VCLXApplyButton( Window *p );
87 };
88 
89 class VCLXHelpButton : public VCLXIconButton
90 {
91 public:
92     VCLXHelpButton( Window *p );
93 };
94 
95 // TODO.  Reuse vcl/Morebutton, or make AdvancedButton reuse me?
96 class VCLXMoreButton : public VCLXIconButton
97 {
98 public:
99     VCLXMoreButton( Window *p );
100 };
101 
102 class VCLXAdvancedButton : public VCLXIconButton
103 {
104 public:
105     VCLXAdvancedButton( Window *p );
106 };
107 
108 } // namespace layoutimpl
109 
110 #endif // LAYOUT_AWT_VCLXBUTTON_HXX
111