1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _MSOLEEXP_HXX 24 #define _MSOLEEXP_HXX 25 26 #include <com/sun/star/uno/Reference.h> 27 #include "filter/msfilter/msfilterdllapi.h" 28 29 // for the CreateSdrOLEFromStorage we need the information, how we handle 30 // convert able OLE-Objects - this ist stored in 31 #define OLE_STARMATH_2_MATHTYPE 0x0001 32 #define OLE_STARWRITER_2_WINWORD 0x0002 33 #define OLE_STARCALC_2_EXCEL 0x0004 34 #define OLE_STARIMPRESS_2_POWERPOINT 0x0008 35 36 class SotStorage; 37 38 #include <svtools/embedhlp.hxx> 39 40 class MSFILTER_DLLPUBLIC SvxMSExportOLEObjects 41 { 42 sal_uInt32 nConvertFlags; 43 public: SvxMSExportOLEObjects(sal_uInt32 nCnvrtFlgs)44 SvxMSExportOLEObjects( sal_uInt32 nCnvrtFlgs ) : nConvertFlags(nCnvrtFlgs) {} 45 SetFlags(sal_uInt32 n)46 void SetFlags( sal_uInt32 n ) { nConvertFlags = n; } GetFlags() const47 sal_uInt32 GetFlags() const { return nConvertFlags; } 48 49 void ExportOLEObject( svt::EmbeddedObjectRef& rObj, SotStorage& rDestStg ); 50 void ExportOLEObject( const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject>& rObj, SotStorage& rDestStg ); 51 }; 52 53 54 55 #endif 56 57