Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _SVTOOLS_INSDLG_HXX
29 : : #define _SVTOOLS_INSDLG_HXX
30 : :
31 : : #include "svtools/svtdllapi.h"
32 : : #include <com/sun/star/uno/Reference.h>
33 : : #include <com/sun/star/embed/XEmbeddedObject.hpp>
34 : : #include <com/sun/star/embed/XStorage.hpp>
35 : : #include <tools/globname.hxx>
36 : : #include <sot/formats.hxx>
37 : :
38 : : #include <vector>
39 : : #include <svtools/transfer.hxx>
40 : :
41 [ # # ][ # # ]: 0 : class SvObjectServer
[ # # ][ # # ]
42 : : {
43 : : private:
44 : : SvGlobalName aClassName;
45 : : String aHumanName;
46 : :
47 : : public:
48 : 0 : SvObjectServer( const SvGlobalName & rClassP, const String & rHumanP ) :
49 : : aClassName( rClassP ),
50 [ # # ]: 0 : aHumanName( rHumanP ) {}
51 : :
52 : 0 : const SvGlobalName & GetClassName() const { return aClassName; }
53 : 0 : const String & GetHumanName() const { return aHumanName; }
54 : : };
55 : :
56 : : typedef ::std::vector< SvObjectServer > SvObjectServerList_impl;
57 : :
58 : 0 : class SVT_DLLPUBLIC SvObjectServerList
59 : : {
60 : : private:
61 : : SvObjectServerList_impl aObjectServerList;
62 : :
63 : : public:
64 : : const SvObjectServer * Get( const String & rHumanName ) const;
65 : : const SvObjectServer * Get( const SvGlobalName & ) const;
66 : : void Remove( const SvGlobalName & );
67 : : void FillInsertObjects();
68 : 0 : size_t Count() const
69 : : {
70 : 0 : return aObjectServerList.size();
71 : : }
72 : :
73 : 0 : const SvObjectServer operator[]( size_t n ) const
74 : : {
75 : 0 : return aObjectServerList[ n ];
76 : : }
77 : : };
78 : :
79 : : class SVT_DLLPUBLIC SvPasteObjectHelper
80 : : {
81 : : public:
82 : : static String GetSotFormatUIName( SotFormatStringId nId );
83 : : static sal_Bool GetEmbeddedName(const TransferableDataHelper& rData, String& _rName, String& _rSource, SotFormatStringId& _nFormat);
84 : : };
85 : :
86 : : #endif // _SVTOOLS_INSDLG_HXX
87 : :
88 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|