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 24 #ifndef _INC_SPECIALOBJECT_HXX_ 25 #define _INC_SPECIALOBJECT_HXX_ 26 27 #include <com/sun/star/awt/Size.hpp> 28 29 #include "commonembobj.hxx" 30 31 class OSpecialEmbeddedObject : public OCommonEmbeddedObject 32 { 33 private: 34 com::sun::star::awt::Size maSize; 35 public: 36 OSpecialEmbeddedObject( 37 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory, 38 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps ); 39 40 // XInterface 41 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType ) ; 42 43 // XTypeProvider 44 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() ; 45 46 // XVisualObject 47 virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect ); 48 49 virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const ::com::sun::star::awt::Size& aSize ); 50 51 virtual ::com::sun::star::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect ); 52 53 virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect ); 54 55 virtual void SAL_CALL changeState( sal_Int32 nNewState ); 56 57 virtual void SAL_CALL doVerb( sal_Int32 nVerbID ); 58 }; 59 60 #endif 61