forked from amazingfate/loongoffice
So the "sign existing pdf" code in sd can reuse that. Change-Id: If51fae203ed0c68ed8e5e63368e60ae1c705bade Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95841 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#include <SignatureLineDialogBase.hxx>
|
|
|
|
#include <utility>
|
|
|
|
#include <config_folders.h>
|
|
#include <vcl/weld.hxx>
|
|
#include <sal/log.hxx>
|
|
#include <rtl/bootstrap.hxx>
|
|
#include <tools/stream.hxx>
|
|
|
|
using namespace css;
|
|
using namespace css::uno;
|
|
using namespace css::frame;
|
|
|
|
SignatureLineDialogBase::SignatureLineDialogBase(weld::Widget* pParent, Reference<XModel> xModel,
|
|
const OUString& rUIFile, const OString& rDialogId)
|
|
: GenericDialogController(pParent, rUIFile, rDialogId)
|
|
, m_xModel(std::move(xModel))
|
|
{
|
|
}
|
|
|
|
short SignatureLineDialogBase::run()
|
|
{
|
|
short nRet = GenericDialogController::run();
|
|
if (nRet == RET_OK)
|
|
Apply();
|
|
return nRet;
|
|
}
|
|
|
|
OUString SignatureLineDialogBase::getCDataString(const OUString& rString)
|
|
{
|
|
return "<![CDATA[" + rString + "]]>";
|
|
}
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|