diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-17 17:28:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-08-18 12:18:34 +0200 |
commit | be3b1a8393ca3e77f31bea5d9caa7271fd53e9e4 (patch) | |
tree | ee82b947c5b3ba648a664dbc5b4be662ce84906c /include | |
parent | f1a458a508cd300117338f9005bff82a923c4a60 (diff) |
weld OAppDetailPageHelper
Change-Id: I0fa9f21c30bba8f781178b0811f3f7d755af1bb3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100627
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/DocumentInfoPreview.hxx | 67 | ||||
-rw-r--r-- | include/svx/dbaobjectex.hxx | 20 |
2 files changed, 10 insertions, 77 deletions
diff --git a/include/svtools/DocumentInfoPreview.hxx b/include/svtools/DocumentInfoPreview.hxx deleted file mode 100644 index fda16e3ff780..000000000000 --- a/include/svtools/DocumentInfoPreview.hxx +++ /dev/null @@ -1,67 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * 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/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_SVTOOLS_DOCUMENTINFOPREVIEW_HXX -#define INCLUDED_SVTOOLS_DOCUMENTINFOPREVIEW_HXX - -#include <sal/config.h> - -#include <svtools/svtdllapi.h> -#include <tools/wintypes.hxx> -#include <vcl/window.hxx> - -namespace com :: sun :: star :: uno { template <typename > class Reference; } - -class ExtMultiLineEdit; - -namespace com::sun::star { - namespace document { class XDocumentProperties; } - namespace util { struct DateTime; } -} - -namespace svtools { - -class SVT_DLLPUBLIC ODocumentInfoPreview final : public vcl::Window { -public: - ODocumentInfoPreview(vcl::Window * pParent, WinBits nBits); - - virtual ~ODocumentInfoPreview() override; - virtual void dispose() override; - - virtual void Resize() override; - - void clear(); - - void fill(css::uno::Reference< css::document::XDocumentProperties > const & xDocProps); - -private: - VclPtr<ExtMultiLineEdit> m_pEditWin; - - void insertEntry(OUString const & title, OUString const & value); - - void insertNonempty(long id, OUString const & value); - - void insertDateTime(long id, css::util::DateTime const & value); -}; - -} - -#endif // INCLUDED_SVTOOLS_DOCUMENTINFOPREVIEW_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/dbaobjectex.hxx b/include/svx/dbaobjectex.hxx index 4fe92b407d3a..d570fac7f5b3 100644 --- a/include/svx/dbaobjectex.hxx +++ b/include/svx/dbaobjectex.hxx @@ -26,21 +26,24 @@ namespace com::sun::star::ucb { class XContent; } - namespace svx { - - //= OComponentTransferable - - class SAL_WARN_UNUSED SVX_DLLPUBLIC OComponentTransferable final : public TransferableHelper + class SAL_WARN_UNUSED SVX_DLLPUBLIC OComponentTransferable final : public TransferDataContainer { public: /** construct the transferable */ OComponentTransferable( - const OUString& _rDatasourceOrLocation - ,const css::uno::Reference< css::ucb::XContent>& _xContent + const OUString& rDatasourceOrLocation, + const css::uno::Reference< css::ucb::XContent>& xContent + ); + + OComponentTransferable(); + + void Update( + const OUString& rDatasourceOrLocation, + const css::uno::Reference< css::ucb::XContent>& xContent ); /** checks whether or not a component descriptor can be extracted from the data flavor vector given @@ -63,11 +66,8 @@ namespace svx ODataAccessDescriptor m_aDescriptor; }; - - } - #endif // INCLUDED_SVX_DBAOBJECTEX_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |