LibreOffice Module cui (master) 1
SignatureLineDialogBase.cxx
Go to the documentation of this file.
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.
4 *
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
11
12#include <utility>
13
14#include <vcl/weld.hxx>
15
16using namespace css;
17using namespace css::uno;
18using namespace css::frame;
19
21 const OUString& rUIFile, const OUString& rDialogId)
22 : GenericDialogController(pParent, rUIFile, rDialogId)
23 , m_xModel(std::move(xModel))
24{
25}
26
28{
29 short nRet = GenericDialogController::run();
30 if (nRet == RET_OK)
31 Apply();
32 return nRet;
33}
34
35OUString SignatureLineDialogBase::getCDataString(std::u16string_view rString)
36{
37 return OUString::Concat("<![CDATA[") + rString + "]]>";
38}
39
40/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
SignatureLineDialogBase(weld::Widget *pParent, css::uno::Reference< css::frame::XModel > xModel, const OUString &rUIFile, const OUString &rDialogId)
static OUString getCDataString(std::u16string_view rString)
virtual void Apply()=0
virtual short run() override
Reference< frame::XModel > m_xModel
Reference< XModel > xModel
RET_OK