salinst.hxx (161f4cd1) salinst.hxx (dd7ece3a)
1/**************************************************************
1/**************************************************************
2 *
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
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 *
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
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.
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 *
19 *
20 *************************************************************/
21
22
23
24#ifndef _SV_SALINST_HXX
25#define _SV_SALINST_HXX
26
27#include "com/sun/star/uno/Reference.hxx"

--- 63 unchanged lines hidden (view full) ---

91 // pData allows for using a system dependent graphics or device context
92 virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
93 long nDX, long nDY,
94 sal_uInt16 nBitCount, const SystemGraphicsData *pData = NULL ) = 0;
95 virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice ) = 0;
96
97 // Printer
98 // pSetupData->mpDriverData can be 0
20 *************************************************************/
21
22
23
24#ifndef _SV_SALINST_HXX
25#define _SV_SALINST_HXX
26
27#include "com/sun/star/uno/Reference.hxx"

--- 63 unchanged lines hidden (view full) ---

91 // pData allows for using a system dependent graphics or device context
92 virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
93 long nDX, long nDY,
94 sal_uInt16 nBitCount, const SystemGraphicsData *pData = NULL ) = 0;
95 virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice ) = 0;
96
97 // Printer
98 // pSetupData->mpDriverData can be 0
99 // pSetupData must be updatet with the current
99 // pSetupData must be updated with the current
100 // JobSetup
101 virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
102 ImplJobSetup* pSetupData ) = 0;
103 virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter ) = 0;
104 virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter ) = 0;
105 virtual void DestroyPrinter( SalPrinter* pPrinter ) = 0;
106
107 virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList ) = 0;

--- 18 unchanged lines hidden (view full) ---

126 virtual bool CheckYieldMutex() = 0;
127
128 // wait next event and dispatch
129 // must returned by UserEvent (SalFrame::PostEvent)
130 // and timer
131 virtual void Yield( bool bWait, bool bHandleAllCurrentEvents ) = 0;
132 virtual bool AnyInput( sal_uInt16 nType ) = 0;
133
100 // JobSetup
101 virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
102 ImplJobSetup* pSetupData ) = 0;
103 virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter ) = 0;
104 virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter ) = 0;
105 virtual void DestroyPrinter( SalPrinter* pPrinter ) = 0;
106
107 virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList ) = 0;

--- 18 unchanged lines hidden (view full) ---

126 virtual bool CheckYieldMutex() = 0;
127
128 // wait next event and dispatch
129 // must returned by UserEvent (SalFrame::PostEvent)
130 // and timer
131 virtual void Yield( bool bWait, bool bHandleAllCurrentEvents ) = 0;
132 virtual bool AnyInput( sal_uInt16 nType ) = 0;
133
134 // Menues
134 // Menus
135 virtual SalMenu* CreateMenu( sal_Bool bMenuBar, Menu* pMenu );
136 virtual void DestroyMenu( SalMenu* pMenu);
137 virtual SalMenuItem* CreateMenuItem( const SalItemParams* pItemData );
138 virtual void DestroyMenuItem( SalMenuItem* pItem );
139
140 // may return NULL to disable session management
141 virtual SalSession* CreateSalSession() = 0;
142
143 // methods for XDisplayConnection
144
145 void SetEventCallback( rtl::Reference< vcl::DisplayConnectionDispatch > const & pInstance )
146 { m_pEventInst = pInstance; }
147 bool CallEventCallback( void* pEvent, int nBytes )
148 { return m_pEventInst.is() && m_pEventInst->dispatchEvent( pEvent, nBytes ); }
149 bool CallErrorCallback( void* pEvent, int nBytes )
150 { return m_pEventInst.is() && m_pEventInst->dispatchErrorEvent( pEvent, nBytes ); }
151
152 enum ConnectionIdentifierType { AsciiCString, Blob };
153 virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes ) = 0;
135 virtual SalMenu* CreateMenu( sal_Bool bMenuBar, Menu* pMenu );
136 virtual void DestroyMenu( SalMenu* pMenu);
137 virtual SalMenuItem* CreateMenuItem( const SalItemParams* pItemData );
138 virtual void DestroyMenuItem( SalMenuItem* pItem );
139
140 // may return NULL to disable session management
141 virtual SalSession* CreateSalSession() = 0;
142
143 // methods for XDisplayConnection
144
145 void SetEventCallback( rtl::Reference< vcl::DisplayConnectionDispatch > const & pInstance )
146 { m_pEventInst = pInstance; }
147 bool CallEventCallback( void* pEvent, int nBytes )
148 { return m_pEventInst.is() && m_pEventInst->dispatchEvent( pEvent, nBytes ); }
149 bool CallErrorCallback( void* pEvent, int nBytes )
150 { return m_pEventInst.is() && m_pEventInst->dispatchErrorEvent( pEvent, nBytes ); }
151
152 enum ConnectionIdentifierType { AsciiCString, Blob };
153 virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes ) = 0;
154
154
155 // this is a vehicle for PrintFontManager to bridge the gap between vcl and libvclplug_*
156 // this is only necessary because PrintFontManager is an exported vcl API and therefore
157 // needs to be in libvcl while libvclplug_* do not contain exported C++ API
158 virtual void FillFontPathList( std::list< rtl::OString >& o_rFontPaths );
155 // this is a vehicle for PrintFontManager to bridge the gap between vcl and libvclplug_*
156 // this is only necessary because PrintFontManager is an exported vcl API and therefore
157 // needs to be in libvcl while libvclplug_* do not contain exported C++ API
158 virtual void FillFontPathList( std::list< rtl::OString >& o_rFontPaths );
159
159
160 // dtrans implementation
161 virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
162 CreateClipboard( const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& i_rArguments );
163 virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface > CreateDragSource();
164 virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface > CreateDropTarget();
165 virtual void AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType) = 0;
166};
167

--- 30 unchanged lines hidden ---
160 // dtrans implementation
161 virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
162 CreateClipboard( const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& i_rArguments );
163 virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface > CreateDragSource();
164 virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface > CreateDropTarget();
165 virtual void AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType) = 0;
166};
167

--- 30 unchanged lines hidden ---