1*96821c26SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*96821c26SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*96821c26SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*96821c26SAndrew Rist * distributed with this work for additional information 6*96821c26SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*96821c26SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*96821c26SAndrew Rist * "License"); you may not use this file except in compliance 9*96821c26SAndrew Rist * with the License. You may obtain a copy of the License at 10*96821c26SAndrew Rist * 11*96821c26SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*96821c26SAndrew Rist * 13*96821c26SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*96821c26SAndrew Rist * software distributed under the License is distributed on an 15*96821c26SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*96821c26SAndrew Rist * KIND, either express or implied. See the License for the 17*96821c26SAndrew Rist * specific language governing permissions and limitations 18*96821c26SAndrew Rist * under the License. 19*96821c26SAndrew Rist * 20*96821c26SAndrew Rist *************************************************************/ 21*96821c26SAndrew Rist 22*96821c26SAndrew Rist 23cdf0e10cSrcweir #ifndef _BASICRENDERABLE_HXX 24cdf0e10cSrcweir #define _BASICRENDERABLE_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include "com/sun/star/view/XRenderable.hpp" 27cdf0e10cSrcweir #include "cppuhelper/compbase1.hxx" 28cdf0e10cSrcweir 29cdf0e10cSrcweir #include "vcl/print.hxx" 30cdf0e10cSrcweir 31cdf0e10cSrcweir class IDEBaseWindow; 32cdf0e10cSrcweir 33cdf0e10cSrcweir namespace basicide 34cdf0e10cSrcweir { 35cdf0e10cSrcweir class BasicRenderable : 36cdf0e10cSrcweir public cppu::WeakComponentImplHelper1< com::sun::star::view::XRenderable >, 37cdf0e10cSrcweir public vcl::PrinterOptionsHelper 38cdf0e10cSrcweir { 39cdf0e10cSrcweir IDEBaseWindow* mpWindow; 40cdf0e10cSrcweir osl::Mutex maMutex; 41cdf0e10cSrcweir 42cdf0e10cSrcweir Printer* getPrinter(); 43cdf0e10cSrcweir public: 44cdf0e10cSrcweir BasicRenderable( IDEBaseWindow* pWin ); 45cdf0e10cSrcweir virtual ~BasicRenderable(); 46cdf0e10cSrcweir 47cdf0e10cSrcweir // XRenderable 48cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getRendererCount ( 49cdf0e10cSrcweir const com::sun::star::uno::Any& aSelection, 50cdf0e10cSrcweir const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue >& xOptions) 51cdf0e10cSrcweir throw (com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException); 52cdf0e10cSrcweir 53cdf0e10cSrcweir virtual com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> SAL_CALL getRenderer ( 54cdf0e10cSrcweir sal_Int32 nRenderer, 55cdf0e10cSrcweir const com::sun::star::uno::Any& rSelection, 56cdf0e10cSrcweir const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rxOptions) 57cdf0e10cSrcweir throw (com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException); 58cdf0e10cSrcweir 59cdf0e10cSrcweir virtual void SAL_CALL render ( 60cdf0e10cSrcweir sal_Int32 nRenderer, 61cdf0e10cSrcweir const com::sun::star::uno::Any& rSelection, 62cdf0e10cSrcweir const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rxOptions) 63cdf0e10cSrcweir throw (com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException); 64cdf0e10cSrcweir 65cdf0e10cSrcweir }; 66cdf0e10cSrcweir 67cdf0e10cSrcweir } // namespace 68cdf0e10cSrcweir 69cdf0e10cSrcweir #endif 70