Bump version to 6.4.7.2.M8
[LibreOffice.git] / cui / source / inc / QrCodeGenDialog.hxx
blob741253f7687da8e25d7081699a43afff4467728b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
8 */
9 #ifndef INCLUDED_CUI_INC_QRCODEGENDIALOG_HXX
10 #define INCLUDED_CUI_INC_QRCODEGENDIALOG_HXX
12 #include <config_qrcodegen.h>
14 #include <vcl/weld.hxx>
16 #include <com/sun/star/frame/XModel.hpp>
17 #include <com/sun/star/uno/Reference.hxx>
19 #include <com/sun/star/beans/XPropertySet.hpp>
21 class QrCodeGenDialog : public weld::GenericDialogController
23 public:
24 QrCodeGenDialog(weld::Widget* pParent, css::uno::Reference<css::frame::XModel> xModel,
25 bool bEditExisting);
27 virtual short run() override;
29 protected:
30 css::uno::Reference<css::frame::XModel> m_xModel;
31 void Apply();
33 private:
34 std::unique_ptr<weld::Entry> m_xEdittext;
35 std::unique_ptr<weld::RadioButton> m_xECC[4];
36 std::unique_ptr<weld::SpinButton> m_xSpinBorder;
38 css::uno::Reference<css::beans::XPropertySet> m_xExistingShapeProperties;
40 void GetErrorCorrection(long);
41 //Function contains QR Code Generating Library Calls
42 static OUString GenerateQRCode(OUString aQrText, long aQrECC, int aQrBorder);
45 #endif
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */