1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 INCLUDED_CUI_SOURCE_INC_MULTIPAT_HXX
20 #define INCLUDED_CUI_SOURCE_INC_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 (;)
34 #define CLASSPATH_DELIMITER ':'
36 #define CLASSPATH_DELIMITER ';'
39 class SvxMultiPathDialog
: public ModalDialog
42 VclPtr
<svx::SvxRadioButtonListBox
> m_pRadioLB
;
43 VclPtr
<PushButton
> m_pAddBtn
;
44 VclPtr
<PushButton
> m_pDelBtn
;
46 DECL_LINK(AddHdl_Impl
, void *);
47 DECL_LINK(DelHdl_Impl
, void *);
48 DECL_LINK(SelectHdl_Impl
, void *);
49 DECL_LINK(CheckHdl_Impl
, svx::SvxRadioButtonListBox
*);
52 SvxMultiPathDialog(vcl::Window
* pParent
);
53 virtual ~SvxMultiPathDialog();
54 virtual void dispose() SAL_OVERRIDE
;
56 OUString
GetPath() const;
57 void SetPath( const OUString
& rPath
);
60 class SvxPathSelectDialog
: public ModalDialog
63 VclPtr
<ListBox
> m_pPathLB
;
64 VclPtr
<PushButton
> m_pAddBtn
;
65 VclPtr
<PushButton
> m_pDelBtn
;
67 DECL_LINK(AddHdl_Impl
, void *);
68 DECL_LINK(DelHdl_Impl
, void *);
69 DECL_LINK(SelectHdl_Impl
, void *);
72 SvxPathSelectDialog(vcl::Window
* pParent
);
73 virtual ~SvxPathSelectDialog();
74 virtual void dispose() SAL_OVERRIDE
;
76 OUString
GetPath() const;
77 void SetPath( const OUString
& rPath
);
80 #endif // INCLUDED_CUI_SOURCE_INC_MULTIPAT_HXX
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */