LibreOffice Module cui (master) 1
pastedlg.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <map>
23#include <sot/formats.hxx>
24#include <tools/globname.hxx>
25#include <vcl/transfer.hxx>
26#include <vcl/weld.hxx>
27
30
32{
33 std::map< SotClipboardFormatId, OUString > aSupplementMap;
34 // Additional UNO command to be displayed along the supported paste formats
35 std::pair<OUString, OUString> aExtraCommand;
37 OUString aObjName;
38
39 std::unique_ptr<weld::Label> m_xFtObjectSource;
40 std::unique_ptr<weld::TreeView> m_xLbInsertList;
41 std::unique_ptr<weld::Button> m_xOKButton;
42
44
45 void SelectObject();
46 DECL_LINK(SelectHdl, weld::TreeView&, void);
47 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
48
49public:
51
52 void Insert( SotClipboardFormatId nFormat, const OUString & rFormatName );
53 void InsertUno( const OUString& sUnoCmd, const OUString& sLabel);
54 void SetObjName( const SvGlobalName & rClass, const OUString & rObjName );
59 void PreGetFormat( const TransferableDataHelper& aHelper);
71};
72
73/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
weld::TreeView & ObjectLB()
Definition: pastedlg.hxx:43
void InsertUno(const OUString &sUnoCmd, const OUString &sLabel)
Definition: pastedlg.cxx:75
SvGlobalName aObjClassName
Definition: pastedlg.hxx:36
std::unique_ptr< weld::Label > m_xFtObjectSource
Definition: pastedlg.hxx:39
std::unique_ptr< weld::Button > m_xOKButton
Definition: pastedlg.hxx:41
std::map< SotClipboardFormatId, OUString > aSupplementMap
Definition: pastedlg.hxx:33
std::unique_ptr< weld::TreeView > m_xLbInsertList
Definition: pastedlg.hxx:40
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
SvPasteObjectDialog(weld::Window *pParent)
Definition: pastedlg.cxx:32
void PreGetFormat(const TransferableDataHelper &aHelper)
PreGetFormat Prepares the dialog for running to get format of paste as a SotClipboardFormatId value b...
Definition: pastedlg.cxx:82
SotClipboardFormatId GetFormatOnly()
GetFormatOnly Returns a SotClipboardFormatId value.
Definition: pastedlg.cxx:196
void Insert(SotClipboardFormatId nFormat, const OUString &rFormatName)
Definition: pastedlg.cxx:70
DECL_LINK(SelectHdl, weld::TreeView &, void)
std::pair< OUString, OUString > aExtraCommand
Definition: pastedlg.hxx:35
SotClipboardFormatId GetFormat(const TransferableDataHelper &aHelper)
GetFormat Prepares and runs the dialog, and returns a SotClipboardFormatId depending on the RET_OK re...
Definition: pastedlg.cxx:201
void SetObjName(const SvGlobalName &rClass, const OUString &rObjName)
Definition: pastedlg.cxx:333
SotClipboardFormatId