bump product version to 6.3.0.0.beta1
[LibreOffice.git] / cui / source / inc / multipat.hxx
blob14dfd7331dbe229f407bddc474142f4bd7cae62c
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 INCLUDED_CUI_SOURCE_INC_MULTIPAT_HXX
20 #define INCLUDED_CUI_SOURCE_INC_MULTIPAT_HXX
22 #include <vcl/weld.hxx>
23 #include "radiobtnbox.hxx"
25 // define ----------------------------------------------------------------
27 // different delimiter for Unix (:) and Windows (;)
29 #ifdef UNX
30 #define CLASSPATH_DELIMITER ':'
31 #else
32 #define CLASSPATH_DELIMITER ';'
33 #endif
35 class SvxMultiPathDialog : public weld::GenericDialogController
37 private:
38 std::unique_ptr<weld::TreeView> m_xRadioLB;
39 std::unique_ptr<weld::Button> m_xAddBtn;
40 std::unique_ptr<weld::Button> m_xDelBtn;
42 void AppendEntry(const OUString& rText, const OUString& rId);
43 void HandleEntryChecked(int nRow);
45 DECL_LINK(AddHdl_Impl, weld::Button&, void);
46 DECL_LINK(DelHdl_Impl, weld::Button&, void);
47 DECL_LINK(SelectHdl_Impl, weld::TreeView&, void);
48 typedef std::pair<int, int> row_col;
49 DECL_LINK(CheckHdl_Impl, const row_col&, void);
51 public:
52 SvxMultiPathDialog(weld::Window* pParent);
53 virtual ~SvxMultiPathDialog() override;
55 OUString GetPath() const;
56 void SetPath(const OUString& rPath);
57 void SetTitle(const OUString& rTitle) { m_xDialog->set_title(rTitle); }
60 class SvxPathSelectDialog : public weld::GenericDialogController
62 private:
63 std::unique_ptr<weld::TreeView> m_xPathLB;
64 std::unique_ptr<weld::Button> m_xAddBtn;
65 std::unique_ptr<weld::Button> m_xDelBtn;
67 DECL_LINK(AddHdl_Impl, weld::Button&, void);
68 DECL_LINK(DelHdl_Impl, weld::Button&, void);
69 DECL_LINK(SelectHdl_Impl, weld::TreeView&, void);
71 public:
72 SvxPathSelectDialog(weld::Window* pParent);
74 OUString GetPath() const;
75 void SetPath( const OUString& rPath );
76 void SetTitle(const OUString& rTitle) { m_xDialog->set_title(rTitle); }
79 #endif // INCLUDED_CUI_SOURCE_INC_MULTIPAT_HXX
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */