xref: /AOO42X/main/sd/source/ui/inc/custsdlg.hxx (revision 9bce9b0d387299c68bd81d539e1478357a103de5) !
1*c45d927aSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*c45d927aSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*c45d927aSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*c45d927aSAndrew Rist  * distributed with this work for additional information
6*c45d927aSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*c45d927aSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*c45d927aSAndrew Rist  * "License"); you may not use this file except in compliance
9*c45d927aSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*c45d927aSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*c45d927aSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*c45d927aSAndrew Rist  * software distributed under the License is distributed on an
15*c45d927aSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*c45d927aSAndrew Rist  * KIND, either express or implied.  See the License for the
17*c45d927aSAndrew Rist  * specific language governing permissions and limitations
18*c45d927aSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*c45d927aSAndrew Rist  *************************************************************/
21*c45d927aSAndrew Rist 
22*c45d927aSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir 
25cdf0e10cSrcweir #ifndef _SD_CUSTSDLG_HXX
26cdf0e10cSrcweir #define _SD_CUSTSDLG_HXX
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen
29cdf0e10cSrcweir #include <vcl/button.hxx>
30cdf0e10cSrcweir #endif
31cdf0e10cSrcweir #include <vcl/lstbox.hxx>
32cdf0e10cSrcweir #include <vcl/fixed.hxx>
33cdf0e10cSrcweir #include <vcl/edit.hxx>
34cdf0e10cSrcweir #include <svtools/svtreebx.hxx>
35cdf0e10cSrcweir #include <vcl/dialog.hxx>
36cdf0e10cSrcweir 
37cdf0e10cSrcweir class SdDrawDocument;
38cdf0e10cSrcweir class SdCustomShow;
39cdf0e10cSrcweir 
40cdf0e10cSrcweir //------------------------------------------------------------------------
41cdf0e10cSrcweir 
42cdf0e10cSrcweir class SdCustomShowDlg : public ModalDialog
43cdf0e10cSrcweir {
44cdf0e10cSrcweir private:
45cdf0e10cSrcweir     ListBox         aLbCustomShows;
46cdf0e10cSrcweir     CheckBox        aCbxUseCustomShow;
47cdf0e10cSrcweir     PushButton      aBtnNew;
48cdf0e10cSrcweir     PushButton      aBtnEdit;
49cdf0e10cSrcweir     PushButton      aBtnRemove;
50cdf0e10cSrcweir     PushButton      aBtnCopy;
51cdf0e10cSrcweir     HelpButton      aBtnHelp;
52cdf0e10cSrcweir     PushButton      aBtnStartShow;
53cdf0e10cSrcweir     OKButton        aBtnOK;
54cdf0e10cSrcweir 
55cdf0e10cSrcweir     SdDrawDocument& rDoc;
56cdf0e10cSrcweir     List*           pCustomShowList;
57cdf0e10cSrcweir     SdCustomShow*   pCustomShow;
58cdf0e10cSrcweir     sal_Bool            bModified;
59cdf0e10cSrcweir 
60cdf0e10cSrcweir     void            CheckState();
61cdf0e10cSrcweir 
62cdf0e10cSrcweir     DECL_LINK( ClickButtonHdl, void * );
63cdf0e10cSrcweir     DECL_LINK( StartShowHdl, Button* );
64cdf0e10cSrcweir 
65cdf0e10cSrcweir public:
66cdf0e10cSrcweir                 SdCustomShowDlg( Window* pWindow, SdDrawDocument& rDrawDoc );
67cdf0e10cSrcweir                 ~SdCustomShowDlg();
68cdf0e10cSrcweir 
IsModified() const69cdf0e10cSrcweir     sal_Bool        IsModified() const { return( bModified ); }
70cdf0e10cSrcweir     sal_Bool        IsCustomShow() const;
71cdf0e10cSrcweir };
72cdf0e10cSrcweir 
73cdf0e10cSrcweir 
74cdf0e10cSrcweir //------------------------------------------------------------------------
75cdf0e10cSrcweir 
76cdf0e10cSrcweir class SdDefineCustomShowDlg : public ModalDialog
77cdf0e10cSrcweir {
78cdf0e10cSrcweir private:
79cdf0e10cSrcweir     FixedText       aFtName;
80cdf0e10cSrcweir     Edit            aEdtName;
81cdf0e10cSrcweir     FixedText       aFtPages;
82cdf0e10cSrcweir     MultiListBox    aLbPages;
83cdf0e10cSrcweir     PushButton      aBtnAdd;
84cdf0e10cSrcweir     PushButton      aBtnRemove;
85cdf0e10cSrcweir     FixedText       aFtCustomPages;
86cdf0e10cSrcweir     SvTreeListBox   aLbCustomPages;
87cdf0e10cSrcweir     OKButton        aBtnOK;
88cdf0e10cSrcweir     CancelButton    aBtnCancel;
89cdf0e10cSrcweir     HelpButton      aBtnHelp;
90cdf0e10cSrcweir 
91cdf0e10cSrcweir     SdDrawDocument& rDoc;
92cdf0e10cSrcweir     SdCustomShow*&  rpCustomShow;
93cdf0e10cSrcweir     sal_Bool            bModified;
94cdf0e10cSrcweir     String          aOldName;
95cdf0e10cSrcweir 
96cdf0e10cSrcweir     void            CheckState();
97cdf0e10cSrcweir     void            CheckCustomShow();
98cdf0e10cSrcweir 
99cdf0e10cSrcweir     DECL_LINK( ClickButtonHdl, void * );
100cdf0e10cSrcweir     DECL_LINK( OKHdl, Button* );
101cdf0e10cSrcweir 
102cdf0e10cSrcweir public:
103cdf0e10cSrcweir 
104cdf0e10cSrcweir                     SdDefineCustomShowDlg( Window* pWindow,
105cdf0e10cSrcweir                             SdDrawDocument& rDrawDoc, SdCustomShow*& rpCS );
106cdf0e10cSrcweir                     ~SdDefineCustomShowDlg();
107cdf0e10cSrcweir 
IsModified() const108cdf0e10cSrcweir     sal_Bool            IsModified() const { return( bModified ); }
109cdf0e10cSrcweir };
110cdf0e10cSrcweir 
111cdf0e10cSrcweir #endif // _SD_CUSTSDLG_HXX
112