update credits
[LibreOffice.git] / cui / source / inc / multipat.hxx
blobc36aa584a52dd24a15712b213f301d68399a9b6d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _SVX_MULTIPAT_HXX
20 #define _SVX_MULTIPAT_HXX
22 #include <vcl/dialog.hxx>
23 #include <vcl/lstbox.hxx>
24 #include <vcl/button.hxx>
25 #include <vcl/fixed.hxx>
27 #include "radiobtnbox.hxx"
29 // define ----------------------------------------------------------------
31 // different delimiter for Unix (:) and Windows (;)
33 #ifdef UNX
34 #define CLASSPATH_DELIMITER ':'
35 #else
36 #define CLASSPATH_DELIMITER ';'
37 #endif
39 // forward ---------------------------------------------------------------
41 struct MultiPath_Impl;
43 // class SvxMultiPathDialog ----------------------------------------------
45 class SvxMultiPathDialog : public ModalDialog
47 protected:
48 FixedLine aPathFL;
49 ListBox aPathLB;
50 SvxSimpleTableContainer m_aRadioLBContainer;
51 svx::SvxRadioButtonListBox aRadioLB;
52 FixedText aRadioFT;
53 PushButton aAddBtn;
54 PushButton aDelBtn;
55 OKButton aOKBtn;
56 CancelButton aCancelBtn;
57 HelpButton aHelpButton;
59 MultiPath_Impl* pImpl;
61 DECL_LINK(AddHdl_Impl, void *);
62 DECL_LINK(DelHdl_Impl, void *);
63 DECL_LINK( SelectHdl_Impl, void * );
64 DECL_LINK( CheckHdl_Impl, svx::SvxRadioButtonListBox * );
66 public:
67 SvxMultiPathDialog( Window* pParent, sal_Bool bEmptyAllowed = sal_False );
68 ~SvxMultiPathDialog();
70 String GetPath() const;
71 void SetPath( const String& rPath );
72 void SetClassPathMode();
73 sal_Bool IsClassPathMode() const;
74 void EnableRadioButtonMode();
77 #endif // #ifndef _SVX_MULTIPAT_HXX
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */