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 <config_folders.h>
15 #include <vcl/weld.hxx>
16 #include <sal/log.hxx>
17 #include <rtl/bootstrap.hxx>
18 #include <tools/stream.hxx>
19 
20 using namespace css;
21 using namespace css::uno;
22 using namespace css::frame;
23 
25  const OUString& rUIFile, const OString& rDialogId)
26  : GenericDialogController(pParent, rUIFile, rDialogId)
27  , m_xModel(std::move(xModel))
28 {
29 }
30 
32 {
33  short nRet = GenericDialogController::run();
34  if (nRet == RET_OK)
35  Apply();
36  return nRet;
37 }
38 
39 OUString SignatureLineDialogBase::getCDataString(const OUString& rString)
40 {
41  return "<![CDATA[" + rString + "]]>";
42 }
43 
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
Reference< frame::XModel > m_xModel
virtual void Apply()=0
SignatureLineDialogBase(weld::Widget *pParent, css::uno::Reference< css::frame::XModel > xModel, const OUString &rUIFile, const OString &rDialogId)
static OUString getCDataString(const OUString &rString)
virtual short run() override
RET_OK