1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "sal/config.h"
24 #include "PresenterHelper.hxx"
25 #include "CanvasUpdateRequester.hxx"
26 #include "PresenterCanvas.hxx"
28 #include <cppcanvas/vclfactory.hxx>
29 #include <com/sun/star/awt/WindowAttribute.hpp>
30 #include <com/sun/star/awt/WindowClass.hpp>
31 #include <com/sun/star/awt/WindowDescriptor.hpp>
32 #include <toolkit/helper/vclunohelper.hxx>
33 #include <vcl/svapp.hxx>
34 #include <vcl/window.hxx>
35 #include <vcl/wrkwin.hxx>
37 #include "res_bmp.hrc"
38 #include "sdresid.hxx"
40 using namespace ::com::sun::star
;
41 using namespace ::com::sun::star::uno
;
43 namespace sd
{ namespace presenter
{
45 //===== PresenterHelper =======================================================
47 PresenterHelper::PresenterHelper (
48 const Reference
<XComponentContext
>& rxContext
)
49 : PresenterHelperInterfaceBase(m_aMutex
),
50 mxComponentContext(rxContext
)
54 PresenterHelper::~PresenterHelper()
58 //----- XInitialize -----------------------------------------------------------
60 void SAL_CALL
PresenterHelper::initialize (const Sequence
<Any
>& rArguments
)
61 throw(Exception
,RuntimeException
, std::exception
)
66 //----- XPaneHelper ----------------------------------------------------
68 Reference
<awt::XWindow
> SAL_CALL
PresenterHelper::createWindow (
69 const Reference
<awt::XWindow
>& rxParentWindow
,
70 sal_Bool bCreateSystemChildWindow
,
71 sal_Bool bInitiallyVisible
,
72 sal_Bool bEnableChildTransparentMode
,
73 sal_Bool bEnableParentClip
)
74 throw (css::uno::RuntimeException
, std::exception
)
76 VclPtr
<vcl::Window
> pParentWindow(VCLUnoHelper::GetWindow(rxParentWindow
));
78 // Create a new window.
79 VclPtr
<vcl::Window
> pWindow
;
80 if (bCreateSystemChildWindow
)
82 pWindow
= VclPtr
<WorkWindow
>::Create(pParentWindow
, WB_SYSTEMCHILDWINDOW
);
86 pWindow
= VclPtr
<vcl::Window
>::Create(pParentWindow
);
88 Reference
<awt::XWindow
> xWindow (pWindow
->GetComponentInterface(), UNO_QUERY
);
90 if (bEnableChildTransparentMode
)
92 // Make the frame window transparent and make the parent able to
94 if (pParentWindow
.get() != NULL
)
95 pParentWindow
->EnableChildTransparentMode(true);
98 pWindow
->Show(bInitiallyVisible
);
100 pWindow
->SetMapMode(MAP_PIXEL
);
101 pWindow
->SetBackground();
102 if ( ! bEnableParentClip
)
104 pWindow
->SetParentClipMode(PARENTCLIPMODE_NOCLIP
);
105 pWindow
->SetPaintTransparent(true);
109 pWindow
->SetParentClipMode(PARENTCLIPMODE_CLIP
);
110 pWindow
->SetPaintTransparent(false);
116 Reference
<rendering::XCanvas
> SAL_CALL
PresenterHelper::createSharedCanvas (
117 const Reference
<rendering::XSpriteCanvas
>& rxUpdateCanvas
,
118 const Reference
<awt::XWindow
>& rxUpdateWindow
,
119 const Reference
<rendering::XCanvas
>& rxSharedCanvas
,
120 const Reference
<awt::XWindow
>& rxSharedWindow
,
121 const Reference
<awt::XWindow
>& rxWindow
)
122 throw (css::uno::RuntimeException
, std::exception
)
124 if ( ! rxSharedCanvas
.is()
125 || ! rxSharedWindow
.is()
128 throw RuntimeException("illegal argument", static_cast<XWeak
*>(this));
131 if (rxWindow
== rxSharedWindow
)
132 return rxSharedCanvas
;
134 return new PresenterCanvas(
142 Reference
<rendering::XCanvas
> SAL_CALL
PresenterHelper::createCanvas (
143 const Reference
<awt::XWindow
>& rxWindow
,
144 sal_Int16 nRequestedCanvasFeatures
,
145 const OUString
& rsOptionalCanvasServiceName
)
146 throw (css::uno::RuntimeException
, std::exception
)
148 (void)nRequestedCanvasFeatures
;
150 // No shared window is given or an explicit canvas service name is
151 // specified. Create a new canvas.
152 vcl::Window
* pWindow
= VCLUnoHelper::GetWindow(rxWindow
);
155 Sequence
<Any
> aArg (5);
157 // common: first any is VCL pointer to window (for VCL canvas)
158 aArg
[0] = makeAny(reinterpret_cast<sal_Int64
>(pWindow
));
160 aArg
[2] = makeAny(::com::sun::star::awt::Rectangle());
161 aArg
[3] = makeAny(sal_False
);
162 aArg
[4] = makeAny(rxWindow
);
164 Reference
<lang::XMultiServiceFactory
> xFactory (
165 mxComponentContext
->getServiceManager(), UNO_QUERY_THROW
);
166 return Reference
<rendering::XCanvas
>(
167 xFactory
->createInstanceWithArguments(
168 !rsOptionalCanvasServiceName
.isEmpty()
169 ? rsOptionalCanvasServiceName
170 : OUString("com.sun.star.rendering.Canvas.VCL"),
175 throw RuntimeException();
178 void SAL_CALL
PresenterHelper::toTop (
179 const Reference
<awt::XWindow
>& rxWindow
)
180 throw (css::uno::RuntimeException
, std::exception
)
182 vcl::Window
* pWindow
= VCLUnoHelper::GetWindow(rxWindow
);
186 pWindow
->SetZOrder(NULL
, WINDOW_ZORDER_LAST
);
199 Reference
<rendering::XBitmap
> SAL_CALL
PresenterHelper::loadBitmap (
201 const Reference
<rendering::XCanvas
>& rxCanvas
)
202 throw (RuntimeException
, std::exception
)
204 if ( ! rxCanvas
.is())
207 static IdMapEntry
const map
[] = {
208 { "bitmaps/Background.png", BMP_PRESENTERSCREEN_BACKGROUND
},
209 { "bitmaps/Animation.png",
210 BMP_PRESENTERSCREEN_ANIMATION
},
211 { "bitmaps/Transition.png",
212 BMP_PRESENTERSCREEN_TRANSITION
},
213 { "bitmaps/BorderActiveBottom.png",
214 BMP_PRESENTERSCREEN_BORDER_ACTIVE_BOTTOM
},
215 { "bitmaps/BorderActiveBottomCallout.png",
216 BMP_PRESENTERSCREEN_BORDER_ACTIVE_BOTTOM_CALLOUT
},
217 { "bitmaps/BorderActiveBottomLeft.png",
218 BMP_PRESENTERSCREEN_BORDER_ACTIVE_BOTTOM_LEFT
},
219 { "bitmaps/BorderActiveBottomRight.png",
220 BMP_PRESENTERSCREEN_BORDER_ACTIVE_BOTTOM_RIGHT
},
221 { "bitmaps/BorderActiveLeft.png",
222 BMP_PRESENTERSCREEN_BORDER_ACTIVE_LEFT
},
223 { "bitmaps/BorderActiveRight.png",
224 BMP_PRESENTERSCREEN_BORDER_ACTIVE_RIGHT
},
225 { "bitmaps/BorderActiveTop.png",
226 BMP_PRESENTERSCREEN_BORDER_ACTIVE_TOP
},
227 { "bitmaps/BorderActiveTopLeft.png",
228 BMP_PRESENTERSCREEN_BORDER_ACTIVE_TOP_LEFT
},
229 { "bitmaps/BorderActiveTopRight.png",
230 BMP_PRESENTERSCREEN_BORDER_ACTIVE_TOP_RIGHT
},
231 { "bitmaps/BorderBottom.png", BMP_PRESENTERSCREEN_BORDER_BOTTOM
},
232 { "bitmaps/BorderBottomLeft.png",
233 BMP_PRESENTERSCREEN_BORDER_BOTTOM_LEFT
},
234 { "bitmaps/BorderBottomRight.png",
235 BMP_PRESENTERSCREEN_BORDER_BOTTOM_RIGHT
},
236 { "bitmaps/BorderCurrentSlideBottom.png",
237 BMP_PRESENTERSCREEN_BORDER_CURRENT_SLIDE_BOTTOM
},
238 { "bitmaps/BorderCurrentSlideBottomLeft.png",
239 BMP_PRESENTERSCREEN_BORDER_CURRENT_SLIDE_BOTTOM_LEFT
},
240 { "bitmaps/BorderCurrentSlideBottomRight.png",
241 BMP_PRESENTERSCREEN_BORDER_CURRENT_SLIDE_BOTTOM_RIGHT
},
242 { "bitmaps/BorderCurrentSlideLeft.png",
243 BMP_PRESENTERSCREEN_BORDER_CURRENT_SLIDE_LEFT
},
244 { "bitmaps/BorderCurrentSlideRight.png",
245 BMP_PRESENTERSCREEN_BORDER_CURRENT_SLIDE_RIGHT
},
246 { "bitmaps/BorderCurrentSlideTop.png",
247 BMP_PRESENTERSCREEN_BORDER_CURRENT_SLIDE_TOP
},
248 { "bitmaps/BorderCurrentSlideTopLeft.png",
249 BMP_PRESENTERSCREEN_BORDER_CURRENT_SLIDE_TOP_LEFT
},
250 { "bitmaps/BorderCurrentSlideTopRight.png",
251 BMP_PRESENTERSCREEN_BORDER_CURRENT_SLIDE_TOP_RIGHT
},
252 { "bitmaps/BorderLeft.png", BMP_PRESENTERSCREEN_BORDER_LEFT
},
253 { "bitmaps/BorderRight.png", BMP_PRESENTERSCREEN_BORDER_RIGHT
},
254 { "bitmaps/BorderToolbarBottom.png",
255 BMP_PRESENTERSCREEN_BORDER_TOOLBAR_BOTTOM
},
256 { "bitmaps/BorderToolbarLeft.png",
257 BMP_PRESENTERSCREEN_BORDER_TOOLBAR_LEFT
},
258 { "bitmaps/BorderToolbarRight.png",
259 BMP_PRESENTERSCREEN_BORDER_TOOLBAR_RIGHT
},
260 { "bitmaps/BorderToolbarTop.png",
261 BMP_PRESENTERSCREEN_BORDER_TOOLBAR_TOP
},
262 { "bitmaps/BorderToolbarTopLeft.png",
263 BMP_PRESENTERSCREEN_BORDER_TOOLBAR_TOP_LEFT
},
264 { "bitmaps/BorderToolbarTopRight.png",
265 BMP_PRESENTERSCREEN_BORDER_TOOLBAR_TOP_RIGHT
},
266 { "bitmaps/BorderTop.png", BMP_PRESENTERSCREEN_BORDER_TOP
},
267 { "bitmaps/BorderTopLeft.png", BMP_PRESENTERSCREEN_BORDER_TOP_LEFT
},
268 { "bitmaps/BorderTopRight.png", BMP_PRESENTERSCREEN_BORDER_TOP_RIGHT
},
269 { "bitmaps/ButtonEffectNextDisabled.png",
270 BMP_PRESENTERSCREEN_BUTTON_EFFECT_NEXT_DISABLED
},
271 { "bitmaps/ButtonEffectNextMouseOver.png",
272 BMP_PRESENTERSCREEN_BUTTON_EFFECT_NEXT_MOUSE_OVER
},
273 { "bitmaps/ButtonEffectNextNormal.png",
274 BMP_PRESENTERSCREEN_BUTTON_EFFECT_NEXT_NORMAL
},
275 { "bitmaps/ButtonEffectNextSelected.png",
276 BMP_PRESENTERSCREEN_BUTTON_EFFECT_NEXT_SELECTED
},
277 { "bitmaps/ButtonFrameCenterMouseOver.png",
278 BMP_PRESENTERSCREEN_BUTTON_FRAME_CENTER_MOUSE_OVER
},
279 { "bitmaps/ButtonFrameCenterNormal.png",
280 BMP_PRESENTERSCREEN_BUTTON_FRAME_CENTER_NORMAL
},
281 { "bitmaps/ButtonFrameLeftMouseOver.png",
282 BMP_PRESENTERSCREEN_BUTTON_FRAME_LEFT_MOUSE_OVER
},
283 { "bitmaps/ButtonFrameLeftNormal.png",
284 BMP_PRESENTERSCREEN_BUTTON_FRAME_LEFT_NORMAL
},
285 { "bitmaps/ButtonFrameRightMouseOver.png",
286 BMP_PRESENTERSCREEN_BUTTON_FRAME_RIGHT_MOUSE_OVER
},
287 { "bitmaps/ButtonFrameRightNormal.png",
288 BMP_PRESENTERSCREEN_BUTTON_FRAME_RIGHT_NORMAL
},
289 { "bitmaps/ButtonHelpDisabled.png",
290 BMP_PRESENTERSCREEN_BUTTON_HELP_DISABLED
},
291 { "bitmaps/ButtonHelpMouseOver.png",
292 BMP_PRESENTERSCREEN_BUTTON_HELP_MOUSE_OVER
},
293 { "bitmaps/ButtonHelpNormal.png",
294 BMP_PRESENTERSCREEN_BUTTON_HELP_NORMAL
},
295 { "bitmaps/ButtonHelpSelected.png",
296 BMP_PRESENTERSCREEN_BUTTON_HELP_SELECTED
},
297 { "bitmaps/ButtonMinusDisabled.png",
298 BMP_PRESENTERSCREEN_BUTTON_MINUS_DISABLED
},
299 { "bitmaps/ButtonMinusMouseOver.png",
300 BMP_PRESENTERSCREEN_BUTTON_MINUS_MOUSE_OVER
},
301 { "bitmaps/ButtonMinusNormal.png",
302 BMP_PRESENTERSCREEN_BUTTON_MINUS_NORMAL
},
303 { "bitmaps/ButtonMinusSelected.png",
304 BMP_PRESENTERSCREEN_BUTTON_MINUS_SELECTED
},
305 { "bitmaps/ButtonNotesDisabled.png",
306 BMP_PRESENTERSCREEN_BUTTON_NOTES_DISABLED
},
307 { "bitmaps/ButtonNotesMouseOver.png",
308 BMP_PRESENTERSCREEN_BUTTON_NOTES_MOUSE_OVER
},
309 { "bitmaps/ButtonNotesNormal.png",
310 BMP_PRESENTERSCREEN_BUTTON_NOTES_NORMAL
},
311 { "bitmaps/ButtonNotesSelected.png",
312 BMP_PRESENTERSCREEN_BUTTON_NOTES_SELECTED
},
313 { "bitmaps/ButtonPlusDisabled.png",
314 BMP_PRESENTERSCREEN_BUTTON_PLUS_DISABLED
},
315 { "bitmaps/ButtonPlusMouseOver.png",
316 BMP_PRESENTERSCREEN_BUTTON_PLUS_MOUSE_OVER
},
317 { "bitmaps/ButtonPlusNormal.png",
318 BMP_PRESENTERSCREEN_BUTTON_PLUS_NORMAL
},
319 { "bitmaps/ButtonPlusSelected.png",
320 BMP_PRESENTERSCREEN_BUTTON_PLUS_SELECTED
},
321 { "bitmaps/ButtonSlideNextDisabled.png",
322 BMP_PRESENTERSCREEN_BUTTON_SLIDE_NEXT_DISABLED
},
323 { "bitmaps/ButtonSlideNextMouseOver.png",
324 BMP_PRESENTERSCREEN_BUTTON_SLIDE_NEXT_MOUSE_OVER
},
325 { "bitmaps/ButtonSlideNextNormal.png",
326 BMP_PRESENTERSCREEN_BUTTON_SLIDE_NEXT_NORMAL
},
327 { "bitmaps/ButtonSlidePreviousDisabled.png",
328 BMP_PRESENTERSCREEN_BUTTON_SLIDE_PREVIOUS_DISABLED
},
329 { "bitmaps/ButtonSlidePreviousMouseOver.png",
330 BMP_PRESENTERSCREEN_BUTTON_SLIDE_PREVIOUS_MOUSE_OVER
},
331 { "bitmaps/ButtonSlidePreviousNormal.png",
332 BMP_PRESENTERSCREEN_BUTTON_SLIDE_PREVIOUS_NORMAL
},
333 { "bitmaps/ButtonSlidePreviousSelected.png",
334 BMP_PRESENTERSCREEN_BUTTON_SLIDE_PREVIOUS_SELECTED
},
335 { "bitmaps/ButtonSlideSorterDisabled.png",
336 BMP_PRESENTERSCREEN_BUTTON_SLIDE_SORTER_DISABLED
},
337 { "bitmaps/ButtonSlideSorterMouseOver.png",
338 BMP_PRESENTERSCREEN_BUTTON_SLIDE_SORTER_MOUSE_OVER
},
339 { "bitmaps/ButtonSlideSorterNormal.png",
340 BMP_PRESENTERSCREEN_BUTTON_SLIDE_SORTER_NORMAL
},
341 { "bitmaps/ButtonSlideSorterSelected.png",
342 BMP_PRESENTERSCREEN_BUTTON_SLIDE_SORTER_SELECTED
},
343 { "bitmaps/ButtonSwitchMonitorMouseOver.png",
344 BMP_PRESENTERSCREEN_BUTTON_SWITCH_MONITOR_MOUSE_OVER
},
345 { "bitmaps/ButtonSwitchMonitorNormal.png",
346 BMP_PRESENTERSCREEN_BUTTON_SWITCH_MONITOR_NORMAL
},
347 { "bitmaps/LabelMouseOverCenter.png",
348 BMP_PRESENTERSCREEN_LABEL_MOUSE_OVER_CENTER
},
349 { "bitmaps/LabelMouseOverLeft.png",
350 BMP_PRESENTERSCREEN_LABEL_MOUSE_OVER_LEFT
},
351 { "bitmaps/LabelMouseOverRight.png",
352 BMP_PRESENTERSCREEN_LABEL_MOUSE_OVER_RIGHT
},
353 { "bitmaps/ScrollbarArrowDownDisabled.png",
354 BMP_PRESENTERSCREEN_SCROLLBAR_ARROW_DOWN_DISABLED
},
355 { "bitmaps/ScrollbarArrowDownMouseOver.png",
356 BMP_PRESENTERSCREEN_SCROLLBAR_ARROW_DOWN_MOUSE_OVER
},
357 { "bitmaps/ScrollbarArrowDownNormal.png",
358 BMP_PRESENTERSCREEN_SCROLLBAR_ARROW_DOWN_NORMAL
},
359 { "bitmaps/ScrollbarArrowDownSelected.png",
360 BMP_PRESENTERSCREEN_SCROLLBAR_ARROW_DOWN_SELECTED
},
361 { "bitmaps/ScrollbarArrowUpDisabled.png",
362 BMP_PRESENTERSCREEN_SCROLLBAR_ARROW_UP_DISABLED
},
363 { "bitmaps/ScrollbarArrowUpMouseOver.png",
364 BMP_PRESENTERSCREEN_SCROLLBAR_ARROW_UP_MOUSE_OVER
},
365 { "bitmaps/ScrollbarArrowUpNormal.png",
366 BMP_PRESENTERSCREEN_SCROLLBAR_ARROW_UP_NORMAL
},
367 { "bitmaps/ScrollbarArrowUpSelected.png",
368 BMP_PRESENTERSCREEN_SCROLLBAR_ARROW_UP_SELECTED
},
369 { "bitmaps/ScrollbarPagerMiddleMouseOver.png",
370 BMP_PRESENTERSCREEN_SCROLLBAR_PAGER_MIDDLE_MOUSE_OVER
},
371 { "bitmaps/ScrollbarPagerMiddleNormal.png",
372 BMP_PRESENTERSCREEN_SCROLLBAR_PAGER_MIDDLE_NORMAL
},
373 { "bitmaps/ScrollbarThumbBottomMouseOver.png",
374 BMP_PRESENTERSCREEN_SCROLLBAR_THUMB_BOTTOM_MOUSE_OVER
},
375 { "bitmaps/ScrollbarThumbBottomNormal.png",
376 BMP_PRESENTERSCREEN_SCROLLBAR_THUMB_BOTTOM_NORMAL
},
377 { "bitmaps/ScrollbarThumbMiddleMouseOver.png",
378 BMP_PRESENTERSCREEN_SCROLLBAR_THUMB_MIDDLE_MOUSE_OVER
},
379 { "bitmaps/ScrollbarThumbMiddleNormal.png",
380 BMP_PRESENTERSCREEN_SCROLLBAR_THUMB_MIDDLE_NORMAL
},
381 { "bitmaps/ScrollbarThumbTopMouseOver.png",
382 BMP_PRESENTERSCREEN_SCROLLBAR_THUMB_TOP_MOUSE_OVER
},
383 { "bitmaps/ScrollbarThumbTopNormal.png",
384 BMP_PRESENTERSCREEN_SCROLLBAR_THUMB_TOP_NORMAL
},
385 { "bitmaps/ViewBackground.png", BMP_PRESENTERSCREEN_VIEW_BACKGROUND
}
388 for (std::size_t i
= 0; i
!= SAL_N_ELEMENTS(map
); ++i
) {
389 if (id
.equalsAscii(map
[i
].sid
)) {
398 ::osl::MutexGuard
aGuard (::osl::Mutex::getGlobalMutex());
400 const cppcanvas::CanvasSharedPtr
pCanvas (
401 cppcanvas::VCLFactory::createCanvas(
402 Reference
<css::rendering::XCanvas
>(rxCanvas
,UNO_QUERY
)));
404 if (pCanvas
.get() != NULL
)
406 BitmapEx aBitmapEx
= SdResId(nid
);
407 cppcanvas::BitmapSharedPtr
xBitmap(
408 cppcanvas::VCLFactory::createBitmap(pCanvas
,
410 if (xBitmap
.get() == NULL
)
412 return xBitmap
->getUNOBitmap();
418 void SAL_CALL
PresenterHelper::captureMouse (
419 const Reference
<awt::XWindow
>& rxWindow
)
420 throw (RuntimeException
, std::exception
)
422 ::osl::MutexGuard
aGuard (::osl::Mutex::getGlobalMutex());
424 // Capture the mouse (if not already done.)
425 vcl::Window
* pWindow
= VCLUnoHelper::GetWindow(rxWindow
);
426 if (pWindow
!= NULL
&& ! pWindow
->IsMouseCaptured())
428 pWindow
->CaptureMouse();
432 void SAL_CALL
PresenterHelper::releaseMouse (const Reference
<awt::XWindow
>& rxWindow
)
433 throw (RuntimeException
, std::exception
)
435 ::osl::MutexGuard
aGuard (::osl::Mutex::getGlobalMutex());
437 // Release the mouse (if not already done.)
438 vcl::Window
* pWindow
= VCLUnoHelper::GetWindow(rxWindow
);
439 if (pWindow
!= NULL
&& pWindow
->IsMouseCaptured())
441 pWindow
->ReleaseMouse();
445 awt::Rectangle
PresenterHelper::getWindowExtentsRelative (
446 const Reference
<awt::XWindow
>& rxChildWindow
,
447 const Reference
<awt::XWindow
>& rxParentWindow
)
448 throw (RuntimeException
, std::exception
)
450 vcl::Window
* pChildWindow
= VCLUnoHelper::GetWindow(rxChildWindow
);
451 vcl::Window
* pParentWindow
= VCLUnoHelper::GetWindow(rxParentWindow
);
452 if (pChildWindow
!=NULL
&& pParentWindow
!=NULL
)
454 Rectangle
aBox (pChildWindow
->GetWindowExtentsRelative(pParentWindow
));
455 return awt::Rectangle(aBox
.Left(),aBox
.Top(),aBox
.GetWidth(),aBox
.GetHeight());
458 return awt::Rectangle();
461 } } // end of namespace ::sd::presenter
464 extern "C" SAL_DLLPUBLIC_EXPORT ::com::sun::star::uno::XInterface
* SAL_CALL
465 com_sun_star_comp_Draw_PresenterHelper_get_implementation(::com::sun::star::uno::XComponentContext
* context
,
466 ::com::sun::star::uno::Sequence
<css::uno::Any
> const &)
468 return cppu::acquire(new sd::presenter::PresenterHelper(context
));
473 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */