1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: pastedlg.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
34 #ifndef _TABLE_HXX //autogen
35 #include <tools/table.hxx>
37 #include <sot/formats.hxx>
38 #include <tools/globname.hxx>
39 #include <svtools/transfer.hxx>
41 #include <vcl/dialog.hxx>
42 #include <vcl/fixed.hxx>
43 #include <vcl/button.hxx>
44 #include <vcl/edit.hxx>
45 #include <vcl/lstbox.hxx>
47 /********************** SvPasteObjectDialog ******************************
48 *************************************************************************/
50 struct TransferableObjectDescriptor
;
51 class DataFlavorExVecor
;
52 class TransferableDataHelper
;
54 class SvPasteObjectDialog
: public ModalDialog
57 FixedText aFtObjectSource
;
59 RadioButton aRbPasteLink
;
60 ListBox aLbInsertList
;
61 CheckBox aCbDisplayAsIcon
;
62 PushButton aPbChangeIcon
;
65 CancelButton aCancelButton1
;
66 HelpButton aHelpButton1
;
68 Table aSupplementTable
;
69 SvGlobalName aObjClassName
;
74 ListBox
& ObjectLB() { return aLbInsertList
; }
75 FixedText
& ObjectSource() { return aFtObjectSource
; }
76 RadioButton
& PasteLink() { return aRbPasteLink
; }
77 CheckBox
& AsIconBox() { return aCbDisplayAsIcon
; }
79 const String
& GetObjString() { return aSObject
; }
81 DECL_LINK( SelectHdl
, ListBox
* );
82 DECL_LINK( DoubleClickHdl
, ListBox
* );
84 USHORT
GetAspect() const { return nAspect
; }
85 BOOL
ShouldLink() const { return bLink
; }
88 SvPasteObjectDialog( Window
* pParent
);
89 ~SvPasteObjectDialog();
91 void Insert( SotFormatStringId nFormat
, const String
& rFormatName
);
92 void SetObjName( const SvGlobalName
& rClass
, const String
& rObjName
);
93 ULONG
GetFormat( const TransferableDataHelper
& aHelper
,
94 const DataFlavorExVector
* pFormats
=0,
95 const TransferableObjectDescriptor
* pDesc
=0 );
98 #endif // _PASTEDLG_HXX