LibreOffice Module sd (master) 1
outlnvs2.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#include <OutlineViewShell.hxx>
21
22#include <app.hrc>
23#include <svx/hlnkitem.hxx>
24#include <sfx2/bindings.hxx>
25#include <sfx2/docfile.hxx>
26#include <sfx2/request.hxx>
27#include <sfx2/zoomitem.hxx>
28#include <svx/svxids.hrc>
29#include <svx/svdoutl.hxx>
31#include <editeng/eeitem.hxx>
32#include <editeng/flditem.hxx>
33#include <editeng/editstat.hxx>
35
36#include <sfx2/viewfrm.hxx>
37#include <Window.hxx>
38#include <fubullet.hxx>
39#include <fuolbull.hxx>
40#include <fuscale.hxx>
41#include <fuchar.hxx>
42#include <fuinsfil.hxx>
43#include <fuprobjs.hxx>
44#include <futhes.hxx>
45#include <futempl.hxx>
46#include <fusldlg.hxx>
47#include <zoomlist.hxx>
48#include <fuexpand.hxx>
49#include <fusumry.hxx>
50#include <fucushow.hxx>
51#include <sdabstdlg.hxx>
52#include <DrawDocShell.hxx>
53#include <DrawViewShell.hxx>
54#include <OutlineView.hxx>
55#include <slideshow.hxx>
56#include <memory>
57
58using namespace ::com::sun::star::uno;
59using namespace ::com::sun::star::beans;
60
61namespace sd {
62
63/************************************************************************/
64
70{
72
73 OutlinerView* pOutlinerView = pOlView->GetViewByWindow( GetActiveWindow() );
74 sal_uInt16 nSId = rReq.GetSlot();
75
76 switch( nSId )
77 {
78 case SID_ATTR_ZOOM:
79 {
80 const SfxItemSet* pArgs = rReq.GetArgs();
81
82 if ( pArgs )
83 {
84 SvxZoomType eZT = pArgs->Get( SID_ATTR_ZOOM ).GetType();
85 switch( eZT )
86 {
87 case SvxZoomType::PERCENT:
88 SetZoom( static_cast<::tools::Long>( pArgs->Get( SID_ATTR_ZOOM ).GetValue()) );
89 Invalidate( SID_ATTR_ZOOM );
90 Invalidate( SID_ATTR_ZOOMSLIDER );
91 break;
92 default:
93 break;
94 }
95 rReq.Done();
96 }
97 else
98 {
99 // open the zoom dialog here
101 }
102 Cancel();
103 }
104 break;
105
106 case SID_ATTR_ZOOMSLIDER:
107 {
108 const SfxItemSet* pArgs = rReq.GetArgs();
109
110 const SfxUInt16Item* pScale = (pArgs && pArgs->Count () == 1) ?
111 rReq.GetArg(SID_ATTR_ZOOMSLIDER) : nullptr;
112 if (pScale && CHECK_RANGE (5, pScale->GetValue (), 3000))
113 {
114 SetZoom (pScale->GetValue ());
115
116 SfxBindings& rBindings = GetViewFrame()->GetBindings();
117 rBindings.Invalidate( SID_ATTR_ZOOM );
118 rBindings.Invalidate( SID_ZOOM_IN );
119 rBindings.Invalidate( SID_ZOOM_OUT );
120 rBindings.Invalidate( SID_ATTR_ZOOMSLIDER );
121
122 }
123
124 Cancel();
125 rReq.Done ();
126 break;
127 }
128
129 case SID_ZOOM_IN:
130 {
131 SetZoom( std::min<::tools::Long>( GetActiveWindow()->GetZoom() * 2, GetActiveWindow()->GetMaxZoom() ) );
133 GetActiveWindow()->GetOutputSizePixel()) );
134 mpZoomList->InsertZoomRect(aVisAreaWin);
135 Invalidate( SID_ATTR_ZOOM );
136 Invalidate( SID_ZOOM_IN );
137 Invalidate(SID_ZOOM_OUT);
138 Invalidate( SID_ATTR_ZOOMSLIDER );
139 Cancel();
140 rReq.Done();
141 }
142 break;
143
144 case SID_SIZE_REAL:
145 {
146 SetZoom( 100 );
148 GetActiveWindow()->GetOutputSizePixel()) );
149 mpZoomList->InsertZoomRect(aVisAreaWin);
150 Invalidate( SID_ATTR_ZOOM );
151 Invalidate( SID_ATTR_ZOOMSLIDER );
152 Cancel();
153 rReq.Done();
154 }
155 break;
156
157 case SID_ZOOM_OUT:
158 {
159 SetZoom( std::max<::tools::Long>( GetActiveWindow()->GetZoom() / 2, GetActiveWindow()->GetMinZoom() ) );
161 GetActiveWindow()->GetOutputSizePixel()) );
162 mpZoomList->InsertZoomRect(aVisAreaWin);
163 Invalidate( SID_ATTR_ZOOM );
164 Invalidate( SID_ZOOM_OUT);
165 Invalidate( SID_ZOOM_IN );
166 Invalidate( SID_ATTR_ZOOMSLIDER );
167 Cancel();
168 rReq.Done();
169 }
170 break;
171
172 case SID_OUTLINE_COLLAPSE_ALL:
173 {
174 pOutlinerView->CollapseAll();
175 Cancel();
176 rReq.Done();
177 }
178 break;
179
180 case SID_OUTLINE_COLLAPSE:
181 {
182 pOutlinerView->Collapse();
183 Cancel();
184 rReq.Done();
185 }
186 break;
187
188 case SID_OUTLINE_EXPAND_ALL:
189 {
190 pOutlinerView->ExpandAll();
191 Cancel();
192 rReq.Done();
193 }
194 break;
195
196 case SID_OUTLINE_EXPAND:
197 {
198 pOutlinerView->Expand();
199 Cancel();
200 rReq.Done();
201 }
202 break;
203
204 case SID_OUTLINE_FORMAT:
205 {
206 ::Outliner* pOutl = pOutlinerView->GetOutliner();
207 pOutl->SetFlatMode( !pOutl->IsFlatMode() );
208 Invalidate( SID_COLORVIEW );
209 Cancel();
210 rReq.Done();
211 }
212 break;
213
214 case SID_SELECTALL:
215 {
216 ::Outliner& rOutl = pOlView->GetOutliner();
217 sal_Int32 nParaCount = rOutl.GetParagraphCount();
218 if (nParaCount > 0)
219 {
220 pOutlinerView->SelectRange( 0, nParaCount );
221 }
222 Cancel();
223 }
224 break;
225
226 case SID_PRESENTATION:
227 case SID_PRESENTATION_CURRENT_SLIDE:
228 case SID_REHEARSE_TIMINGS:
229 {
230 pOlView->PrepareClose();
232 Cancel();
233 rReq.Done();
234 }
235 break;
236
237 case SID_COLORVIEW:
238 {
239 ::Outliner* pOutl = pOutlinerView->GetOutliner();
240 EEControlBits nCntrl = pOutl->GetControlWord();
241
242 if ( !(nCntrl & EEControlBits::NOCOLORS) )
243 {
244 // color view is enabled: disable
245 pOutl->SetControlWord(nCntrl | EEControlBits::NOCOLORS);
246 }
247 else
248 {
249 // color view is disabled: enable
250 pOutl->SetControlWord(nCntrl & ~EEControlBits::NOCOLORS);
251 }
252
254 Invalidate( SID_COLORVIEW );
255 Cancel();
256 rReq.Done();
257 }
258 break;
259
260 case SID_STYLE_EDIT:
261 case SID_STYLE_UPDATE_BY_EXAMPLE:
262 {
263 if( rReq.GetArgs() )
264 {
266 Cancel();
267 }
268
269 rReq.Ignore ();
270 }
271 break;
272
273 case SID_PRESENTATION_DLG:
274 {
276 Cancel();
277 }
278 break;
279
280 case SID_REMOTE_DLG:
281 {
282#ifdef ENABLE_SDREMOTE
285 pDlg->Execute();
286#endif
287 }
288 break;
289
290 case SID_CUSTOMSHOW_DLG:
291 {
293 Cancel();
294 }
295 break;
296
297 case SID_PHOTOALBUM:
298 {
302 pWin ? pWin->GetFrameWeld() : nullptr,
303 GetDoc()));
304
305 pDlg->Execute();
306
307 Cancel();
308 rReq.Ignore ();
309 }
310 break;
311 }
312
314 GetCurrentFunction()->Activate();
315
316 Invalidate( SID_OUTLINE_COLLAPSE_ALL );
317 Invalidate( SID_OUTLINE_COLLAPSE );
318 Invalidate( SID_OUTLINE_EXPAND_ALL );
319 Invalidate( SID_OUTLINE_EXPAND );
320
321 SfxBindings& rBindings = GetViewFrame()->GetBindings();
322 rBindings.Invalidate( SID_OUTLINE_LEFT );
323 rBindings.Invalidate( SID_OUTLINE_RIGHT );
324 rBindings.Invalidate( SID_OUTLINE_UP );
325 rBindings.Invalidate( SID_OUTLINE_DOWN );
326
327 Invalidate( SID_OUTLINE_FORMAT );
328 Invalidate( SID_COLORVIEW );
329 Invalidate(SID_CUT);
330 Invalidate(SID_COPY);
331 Invalidate(SID_PASTE);
332 Invalidate(SID_PASTE_UNFORMATTED);
333}
334
336{
337 sal_uInt16 nSId = rReq.GetSlot();
338 std::unique_ptr<OutlineViewModelChangeGuard, o3tl::default_delete<OutlineViewModelChangeGuard>> aGuard;
339 if (nSId != SID_OUTLINE_BULLET && nSId != FN_SVX_SET_BULLET && nSId != FN_SVX_SET_NUMBER)
340 {
341 aGuard.reset( new OutlineViewModelChangeGuard(*pOlView) );
342 }
344
345 OutlinerView* pOutlinerView = pOlView->GetViewByWindow( GetActiveWindow() );
346 //sal_uInt16 nSId = rReq.GetSlot();
347
348 switch( nSId )
349 {
350 case SID_HYPERLINK_SETLINK:
351 {
352 const SfxItemSet* pReqArgs = rReq.GetArgs();
353
354 if (pReqArgs)
355 {
356 const SvxHyperlinkItem* pHLItem =
357 &pReqArgs->Get(SID_HYPERLINK_SETLINK);
358
359 SvxFieldItem aURLItem(SvxURLField(pHLItem->GetURL(),
360 pHLItem->GetName(),
361 SvxURLFormat::Repr), EE_FEATURE_FIELD);
362 ESelection aSel( pOutlinerView->GetSelection() );
363 pOutlinerView->InsertField(aURLItem);
364 if ( aSel.nStartPos <= aSel.nEndPos )
365 aSel.nEndPos = aSel.nStartPos + 1;
366 else
367 aSel.nStartPos = aSel.nEndPos + 1;
368 pOutlinerView->SetSelection( aSel );
369 }
370
371 Cancel();
372 rReq.Ignore ();
373 }
374 break;
375
376 case FN_INSERT_SOFT_HYPHEN:
377 case FN_INSERT_HARDHYPHEN:
378 case FN_INSERT_HARD_SPACE:
379 case FN_INSERT_NNBSP:
380 case SID_INSERT_RLM :
381 case SID_INSERT_LRM :
382 case SID_INSERT_WJ :
383 case SID_INSERT_ZWSP:
384 case SID_CHARMAP:
385 {
387 Cancel();
388 }
389 break;
390
391 case SID_OUTLINE_BULLET:
392 case FN_SVX_SET_BULLET:
393 case FN_SVX_SET_NUMBER:
394 {
396 Cancel();
397 }
398 break;
399
400 case SID_THESAURUS:
401 {
403 Cancel();
404 rReq.Ignore ();
405 }
406 break;
407
408 case SID_CHAR_DLG_EFFECT:
409 case SID_CHAR_DLG:
410 {
411 SetCurrentFunction( FuChar::Create( this, GetActiveWindow(), pOlView.get(), GetDoc(), rReq ) );
412 Cancel();
413 }
414 break;
415
416 case SID_INSERTFILE:
417 {
419 Cancel();
420 }
421 break;
422
423 case SID_PRESENTATIONOBJECT:
424 {
426 Cancel();
427 }
428 break;
429
430 case SID_SET_DEFAULT:
431 {
432 pOutlinerView->RemoveAttribs(true); // sal_True = also paragraph attributes
433 Cancel();
434 rReq.Done();
435 }
436 break;
437
438 case SID_SUMMARY_PAGE:
439 {
440 pOlView->SetSelectedPages();
442 pOlView->GetOutliner().Clear();
443 pOlView->FillOutliner();
444 pOlView->GetActualPage();
445 Cancel();
446 }
447 break;
448
449 case SID_EXPAND_PAGE:
450 {
451 pOlView->SetSelectedPages();
453 pOlView->GetOutliner().Clear();
454 pOlView->FillOutliner();
455 pOlView->GetActualPage();
456 Cancel();
457 }
458 break;
459
460 case SID_INSERT_FLD_DATE_FIX:
461 case SID_INSERT_FLD_DATE_VAR:
462 case SID_INSERT_FLD_TIME_FIX:
463 case SID_INSERT_FLD_TIME_VAR:
464 case SID_INSERT_FLD_AUTHOR:
465 case SID_INSERT_FLD_PAGE:
466 case SID_INSERT_FLD_PAGE_TITLE:
467 case SID_INSERT_FLD_PAGES:
468 case SID_INSERT_FLD_FILE:
469 {
470 std::unique_ptr<SvxFieldItem> pFieldItem;
471
472 switch( nSId )
473 {
474 case SID_INSERT_FLD_DATE_FIX:
475 pFieldItem.reset(new SvxFieldItem(
476 SvxDateField( Date( Date::SYSTEM ), SvxDateType::Fix ), EE_FEATURE_FIELD ));
477 break;
478
479 case SID_INSERT_FLD_DATE_VAR:
480 pFieldItem.reset(new SvxFieldItem( SvxDateField(), EE_FEATURE_FIELD ));
481 break;
482
483 case SID_INSERT_FLD_TIME_FIX:
484 pFieldItem.reset(new SvxFieldItem(
486 break;
487
488 case SID_INSERT_FLD_TIME_VAR:
489 pFieldItem.reset(new SvxFieldItem( SvxExtTimeField(), EE_FEATURE_FIELD ));
490 break;
491
492 case SID_INSERT_FLD_AUTHOR:
493 {
494 SvtUserOptions aUserOptions;
495 pFieldItem.reset(new SvxFieldItem(
497 aUserOptions.GetFirstName(), aUserOptions.GetLastName(), aUserOptions.GetID() )
498 , EE_FEATURE_FIELD ));
499 }
500 break;
501
502 case SID_INSERT_FLD_PAGE:
503 pFieldItem.reset(new SvxFieldItem( SvxPageField(), EE_FEATURE_FIELD ));
504 break;
505
506 case SID_INSERT_FLD_PAGE_TITLE:
507 pFieldItem.reset(new SvxFieldItem( SvxPageTitleField(), EE_FEATURE_FIELD));
508 break;
509
510 case SID_INSERT_FLD_PAGES:
511 pFieldItem.reset(new SvxFieldItem( SvxPagesField(), EE_FEATURE_FIELD ));
512 break;
513
514 case SID_INSERT_FLD_FILE:
515 {
516 OUString aName;
517 if( GetDocSh()->HasName() )
519 //else
520 // aName = GetDocSh()->GetName();
521 pFieldItem.reset(new SvxFieldItem( SvxExtFileField( aName ), EE_FEATURE_FIELD ));
522 }
523 break;
524 }
525
526 const SvxFieldItem* pOldFldItem = pOutlinerView->GetFieldAtSelection();
527
528 if( pOldFldItem && ( nullptr != dynamic_cast< const SvxURLField *>( pOldFldItem->GetField() ) ||
529 nullptr != dynamic_cast< const SvxDateField *>( pOldFldItem->GetField() ) ||
530 nullptr != dynamic_cast< const SvxTimeField *>( pOldFldItem->GetField() ) ||
531 nullptr != dynamic_cast< const SvxExtTimeField *>( pOldFldItem->GetField() ) ||
532 nullptr != dynamic_cast< const SvxExtFileField *>( pOldFldItem->GetField() ) ||
533 nullptr != dynamic_cast< const SvxAuthorField *>( pOldFldItem->GetField() ) ||
534 nullptr != dynamic_cast< const SvxPageField *>( pOldFldItem->GetField() ) ||
535 nullptr != dynamic_cast< const SvxPagesField *>( pOldFldItem->GetField() )) )
536 {
537 // select field, so it gets deleted on Insert
538 ESelection aSel = pOutlinerView->GetSelection();
539 if( aSel.nStartPos == aSel.nEndPos )
540 aSel.nEndPos++;
541 pOutlinerView->SetSelection( aSel );
542 }
543
544 if( pFieldItem )
545 pOutlinerView->InsertField( *pFieldItem );
546
547 pFieldItem.reset();
548
549 Cancel();
550 rReq.Ignore ();
551 }
552 break;
553
554 case SID_MODIFY_FIELD:
555 {
556 const SvxFieldItem* pFldItem = pOutlinerView->GetFieldAtSelection();
557
558 if( pFldItem && (nullptr != dynamic_cast< const SvxDateField *>( pFldItem->GetField() ) ||
559 nullptr != dynamic_cast< const SvxAuthorField *>( pFldItem->GetField() ) ||
560 nullptr != dynamic_cast< const SvxExtFileField *>( pFldItem->GetField() ) ||
561 nullptr != dynamic_cast< const SvxExtTimeField *>( pFldItem->GetField() ) ) )
562 {
563 // Dialog...
566 ScopedVclPtr<AbstractSdModifyFieldDlg> pDlg(pFact->CreateSdModifyFieldDlg(pWin ? pWin->GetFrameWeld() : nullptr, pFldItem->GetField(), pOutlinerView->GetAttribs() ));
567 if( pDlg->Execute() == RET_OK )
568 {
569 std::unique_ptr<SvxFieldData> pField(pDlg->GetField());
570 if( pField )
571 {
572 SvxFieldItem aFieldItem( *pField, EE_FEATURE_FIELD );
573 //pOLV->DeleteSelected(); <-- unfortunately missing!
574 // select field, so it gets deleted on Insert
575 ESelection aSel = pOutlinerView->GetSelection();
576 bool bSel = true;
577 if( aSel.nStartPos == aSel.nEndPos )
578 {
579 bSel = false;
580 aSel.nEndPos++;
581 }
582 pOutlinerView->SetSelection( aSel );
583
584 pOutlinerView->InsertField( aFieldItem );
585
586 // reset selection to original state
587 if( !bSel )
588 aSel.nEndPos--;
589 pOutlinerView->SetSelection( aSel );
590
591 pField.reset();
592 }
593
594 SfxItemSet aSet( pDlg->GetItemSet() );
595 if( aSet.Count() )
596 {
597 pOutlinerView->SetAttribs( aSet );
598
599 ::Outliner* pOutliner = pOutlinerView->GetOutliner();
600 if( pOutliner )
601 pOutliner->UpdateFields();
602 }
603 }
604 }
605
606 Cancel();
607 rReq.Ignore ();
608 }
609 break;
610 }
611
613 GetCurrentFunction()->Activate();
614
615 Invalidate( SID_OUTLINE_COLLAPSE_ALL );
616 Invalidate( SID_OUTLINE_COLLAPSE );
617 Invalidate( SID_OUTLINE_EXPAND_ALL );
618 Invalidate( SID_OUTLINE_EXPAND );
619
620 SfxBindings& rBindings = GetViewFrame()->GetBindings();
621 rBindings.Invalidate( SID_OUTLINE_LEFT );
622 rBindings.Invalidate( SID_OUTLINE_RIGHT );
623 rBindings.Invalidate( SID_OUTLINE_UP );
624 rBindings.Invalidate( SID_OUTLINE_DOWN );
625
626 Invalidate( SID_OUTLINE_FORMAT );
627 Invalidate( SID_COLORVIEW );
628 Invalidate(SID_CUT);
629 Invalidate(SID_COPY);
630 Invalidate(SID_PASTE);
631 Invalidate(SID_PASTE_UNFORMATTED);
632}
633
634} // end of namespace sd
635
636/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define CHECK_RANGE(nMin, nValue, nMax)
sal_uInt16 GetValue() const
void CollapseAll()
void SetSelection(const ESelection &)
void InsertField(const SvxFieldItem &rFld)
void ExpandAll()
const SvxFieldItem * GetFieldAtSelection() const
void RemoveAttribs(bool bRemoveParaAttribs, bool bKeepLanguages=false)
void Collapse()
ESelection GetSelection() const
SfxItemSet GetAttribs()
Outliner * GetOutliner() const
void SetAttribs(const SfxItemSet &)
void SelectRange(sal_Int32 nFirst, sal_Int32 nCount)
void SetFlatMode(bool bFlat)
EEControlBits GetControlWord() const
void SetControlWord(EEControlBits nWord)
bool UpdateFields()
bool IsFlatMode() const
sal_Int32 GetParagraphCount() const
virtual VclPtr< VclAbstractDialog > CreateRemoteDialog(weld::Window *pWindow)=0
virtual VclPtr< VclAbstractDialog > CreateSdPhotoAlbumDialog(weld::Window *pWindow, SdDrawDocument *pDoc)=0
virtual VclPtr< AbstractSdModifyFieldDlg > CreateSdModifyFieldDlg(weld::Window *pWindow, const SvxFieldData *pInField, const SfxItemSet &rSet)=0
static SD_DLLPUBLIC SdAbstractDialogFactory * Create()
Definition: sdabstdlg.cxx:38
void Invalidate(sal_uInt16 nId)
sal_uInt16 Count() const
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
const OUString & GetName() const
SfxMedium * GetMedium() const
sal_uInt16 GetSlot() const
void Ignore()
const SfxItemSet * GetArgs() const
const T * GetArg(sal_uInt16 nSlotId) const
void Done(bool bRemove=false)
virtual void Invalidate(sal_uInt16 nId=0)
SfxBindings & GetBindings()
OUString GetFirstName() const
OUString GetID() const
OUString GetLastName() const
const SvxFieldData * GetField() const
const OUString & GetName() const
const OUString & GetURL() const
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuolbull.cxx:51
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fubullet.cxx:66
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuchar.cxx:49
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fucushow.cxx:45
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuexpand.cxx:60
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuinsfil.cxx:115
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuprobjs.cxx:58
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuscale.cxx:54
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fusldlg.cxx:51
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fusumry.cxx:56
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: futempl.cxx:87
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: futhes.cxx:56
std::unique_ptr< OutlineView > pOlView
void FuTemporaryModify(SfxRequest &rReq)
Definition: outlnvs2.cxx:335
virtual void SetZoom(::tools::Long nZoom) override
Zoom with zoom factor.
Definition: outlnvsh.cxx:1111
void FuTemporary(SfxRequest &rReq)
SfxRequests for temporary functions.
Definition: outlnvs2.cxx:69
SD_DLLPUBLIC DrawDocShell * GetDocSh() const
Definition: viewshel.cxx:1407
const rtl::Reference< FuPoor > & GetCurrentFunction() const
Definition: ViewShell.hxx:250
SdDrawDocument * GetDoc() const
Definition: viewshel.cxx:1412
std::unique_ptr< ZoomList > mpZoomList
Definition: ViewShell.hxx:457
void InvalidateWindows()
Invalidate all split windows below the ?provided rectangle.
Definition: viewshe2.cxx:433
::sd::Window * GetActiveWindow() const
The active window is usually the mpContentWindow.
Definition: ViewShell.hxx:155
void DeactivateCurrentFunction(bool bPermanent=false)
Definition: viewshel.cxx:1459
::tools::Long GetZoom() const
Definition: viewshe2.cxx:344
SD_DLLPUBLIC weld::Window * GetFrameWeld() const
Definition: viewshel.cxx:1582
void SetCurrentFunction(const rtl::Reference< FuPoor > &xFunction)
Definition: viewshel.cxx:1422
void Cancel()
this method deactivates the current function.
Definition: viewshel.cxx:1442
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
Definition: viewshel.cxx:118
bool HasCurrentFunction() const
Definition: ViewShell.hxx:252
Point PixelToLogic(const Point &rDevicePt) const
weld::Window * GetFrameWeld() const
EEControlBits
constexpr TypedWhichId< SvxFieldItem > EE_FEATURE_FIELD(EE_FEATURE_NOTCONV+1)
OUString aName
SD_DLLPUBLIC void ShowSlideShow(SfxRequest const &rReq, SdDrawDocument &rDoc)
Definition: drviewse.cxx:1656
long Long
sal_Int32 nEndPos
sal_Int32 nStartPos
RET_OK
SvxZoomType