LCOV - code coverage report
Current view: top level - sd/source/ui/dlg - sddlgfact.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 20 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 21 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #ifndef INCLUDED_SD_SOURCE_UI_DLG_SDDLGFACT_HXX
      20             : #define INCLUDED_SD_SOURCE_UI_DLG_SDDLGFACT_HXX
      21             : 
      22             : #include "sdabstdlg.hxx"
      23             : #include <sfx2/basedlgs.hxx>
      24             : 
      25             : #define DECL_ABSTDLG_BASE(Class,DialogClass)        \
      26             :     ScopedVclPtr<DialogClass> pDlg;                 \
      27             : public:                                             \
      28             :                     Class( DialogClass* p)          \
      29             :                      : pDlg(p)                      \
      30             :                      {}                             \
      31             :     virtual         ~Class();                       \
      32             :     virtual short   Execute() SAL_OVERRIDE ;
      33             : 
      34             : #define IMPL_ABSTDLG_BASE(Class)                    \
      35             : Class::~Class()                                     \
      36             : {                                                   \
      37             : }                                                   \
      38             : short Class::Execute()                             \
      39             : {                                                   \
      40             :     return pDlg->Execute();                         \
      41             : }
      42             : 
      43             : namespace sd {
      44             :     class MorphDlg;
      45             :     class CopyDlg;
      46             :     class BreakDlg;
      47             :     class OutlineBulletDlg;
      48             :         class HeaderFooterDialog;
      49             : }
      50             : 
      51             : class Dialog;
      52             : class SdVclAbstractDialog_Impl : public VclAbstractDialog
      53             : {
      54           0 :     DECL_ABSTDLG_BASE(SdVclAbstractDialog_Impl,Dialog)
      55             : };
      56             : 
      57             : class AbstractCopyDlg_Impl : public AbstractCopyDlg
      58             : {
      59           0 :     DECL_ABSTDLG_BASE(AbstractCopyDlg_Impl,::sd::CopyDlg)
      60             :     virtual void    GetAttr( SfxItemSet& rOutAttrs ) SAL_OVERRIDE;
      61             : };
      62             : 
      63             : class SdCustomShowDlg;
      64             : class AbstractSdCustomShowDlg_Impl : public AbstractSdCustomShowDlg
      65             : {
      66           0 :     DECL_ABSTDLG_BASE(AbstractSdCustomShowDlg_Impl,SdCustomShowDlg)
      67             :     virtual bool        IsModified() const SAL_OVERRIDE ;
      68             :     virtual bool        IsCustomShow() const SAL_OVERRIDE ;
      69             : };
      70             : 
      71             : class SfxTabDialog;
      72             : class SdAbstractTabDialog_Impl : public SfxAbstractTabDialog
      73             : {
      74           0 :     DECL_ABSTDLG_BASE( SdAbstractTabDialog_Impl,SfxTabDialog )
      75             :     virtual void                SetCurPageId( sal_uInt16 nId ) SAL_OVERRIDE;
      76             :     virtual void                SetCurPageId( const OString& rName ) SAL_OVERRIDE;
      77             :     virtual const SfxItemSet*   GetOutputItemSet() const SAL_OVERRIDE;
      78             :     virtual const sal_uInt16*       GetInputRanges( const SfxItemPool& pItem ) SAL_OVERRIDE;
      79             :     virtual void                SetInputSet( const SfxItemSet* pInSet ) SAL_OVERRIDE;
      80             :         //From class Window.
      81             :     virtual void        SetText( const OUString& rStr ) SAL_OVERRIDE;
      82             :     virtual OUString    GetText() const SAL_OVERRIDE;
      83             : };
      84             : 
      85             : class SfxTabDialog;
      86             : class AbstractBulletDialog_Impl : public SfxAbstractTabDialog
      87             : {
      88           0 :     DECL_ABSTDLG_BASE( AbstractBulletDialog_Impl,SfxTabDialog )
      89             :     virtual void                SetCurPageId( sal_uInt16 nId ) SAL_OVERRIDE;
      90             :     virtual void                SetCurPageId( const OString& rName ) SAL_OVERRIDE;
      91             :     virtual const SfxItemSet*   GetOutputItemSet() const SAL_OVERRIDE;
      92             :     virtual const sal_uInt16*       GetInputRanges( const SfxItemPool& pItem ) SAL_OVERRIDE;
      93             :     virtual void                SetInputSet( const SfxItemSet* pInSet ) SAL_OVERRIDE;
      94             :         //From class Window.
      95             :     virtual void        SetText( const OUString& rStr ) SAL_OVERRIDE;
      96             :     virtual OUString    GetText() const SAL_OVERRIDE;
      97             : };
      98             : 
      99             : class SdPresLayoutTemplateDlg;
     100             : class SdPresLayoutTemplateDlg_Impl : public SfxAbstractTabDialog
     101             : {
     102           0 :     DECL_ABSTDLG_BASE( SdPresLayoutTemplateDlg_Impl,SdPresLayoutTemplateDlg )
     103             :     virtual void                SetCurPageId( sal_uInt16 nId ) SAL_OVERRIDE;
     104             :     virtual void                SetCurPageId( const OString& rName ) SAL_OVERRIDE;
     105             :     virtual const SfxItemSet*   GetOutputItemSet() const SAL_OVERRIDE;
     106             :     virtual const sal_uInt16*       GetInputRanges( const SfxItemPool& pItem ) SAL_OVERRIDE;
     107             :     virtual void                SetInputSet( const SfxItemSet* pInSet ) SAL_OVERRIDE;
     108             :         //From class Window.
     109             :     virtual void        SetText( const OUString& rStr ) SAL_OVERRIDE;
     110             :     virtual OUString    GetText() const SAL_OVERRIDE;
     111             : };
     112             : 
     113             : class AssistentDlg;
     114             : class AbstractAssistentDlg_Impl : public AbstractAssistentDlg
     115             : {
     116           0 :     DECL_ABSTDLG_BASE(AbstractAssistentDlg_Impl,AssistentDlg)
     117             :     virtual SfxObjectShellLock GetDocument() SAL_OVERRIDE;
     118             :     virtual OutputType GetOutputMedium() const SAL_OVERRIDE;
     119             :     virtual bool IsSummary() const SAL_OVERRIDE;
     120             :     virtual StartType GetStartType() const SAL_OVERRIDE;
     121             :     virtual OUString GetDocPath() const SAL_OVERRIDE;
     122             :     virtual bool GetStartWithFlag() const SAL_OVERRIDE;
     123             :     virtual bool IsDocEmpty() const SAL_OVERRIDE;
     124             :     virtual com::sun::star::uno::Sequence< com::sun::star::beans::NamedValue > GetPassword() SAL_OVERRIDE;
     125             : };
     126             : 
     127             : class SdModifyFieldDlg;
     128             : class AbstractSdModifyFieldDlg_Impl : public AbstractSdModifyFieldDlg
     129             : {
     130           0 :     DECL_ABSTDLG_BASE(AbstractSdModifyFieldDlg_Impl,SdModifyFieldDlg)
     131             :     virtual SvxFieldData*       GetField() SAL_OVERRIDE;
     132             :     virtual SfxItemSet          GetItemSet() SAL_OVERRIDE;
     133             : };
     134             : 
     135             : class SdSnapLineDlg;
     136             : class AbstractSdSnapLineDlg_Impl : public AbstractSdSnapLineDlg
     137             : {
     138           0 :     DECL_ABSTDLG_BASE(AbstractSdSnapLineDlg_Impl,SdSnapLineDlg)
     139             :     virtual void GetAttr(SfxItemSet& rOutAttrs) SAL_OVERRIDE;
     140             :     virtual void HideRadioGroup() SAL_OVERRIDE;
     141             :     virtual void HideDeleteBtn() SAL_OVERRIDE;
     142             :     virtual void SetInputFields(bool bEnableX, bool bEnableY) SAL_OVERRIDE;
     143             :     //from class Window
     144             :     virtual void    SetText( const OUString& rStr ) SAL_OVERRIDE;
     145             : };
     146             : 
     147             : class SdInsertLayerDlg;
     148             : class AbstractSdInsertLayerDlg_Impl : public AbstractSdInsertLayerDlg
     149             : {
     150           0 :     DECL_ABSTDLG_BASE(AbstractSdInsertLayerDlg_Impl,SdInsertLayerDlg)
     151             :     virtual void    GetAttr( SfxItemSet& rOutAttrs ) SAL_OVERRIDE ;
     152             :     //from class Window
     153             :     virtual void    SetHelpId( const OString& rHelpId ) SAL_OVERRIDE ;
     154             : };
     155             : 
     156             : class SdInsertPasteDlg;
     157             : class AbstractSdInsertPasteDlg_Impl : public AbstractSdInsertPasteDlg
     158             : {
     159           0 :     DECL_ABSTDLG_BASE(AbstractSdInsertPasteDlg_Impl,SdInsertPasteDlg)
     160             :     virtual bool            IsInsertBefore() const SAL_OVERRIDE;
     161             : };
     162             : 
     163             : class SdInsertPagesObjsDlg;
     164             : class AbstractSdInsertPagesObjsDlg_Impl : public AbstractSdInsertPagesObjsDlg
     165             : {
     166           0 :     DECL_ABSTDLG_BASE(AbstractSdInsertPagesObjsDlg_Impl,SdInsertPagesObjsDlg)
     167             :     virtual vcl::Window *  GetWindow() SAL_OVERRIDE;
     168             :     virtual std::vector<OUString> GetList ( const sal_uInt16 nType ) SAL_OVERRIDE;
     169             :     virtual bool        IsLink() SAL_OVERRIDE;
     170             :     virtual bool        IsRemoveUnnessesaryMasterPages() const SAL_OVERRIDE;
     171             : };
     172             : 
     173             : class AbstractMorphDlg_Impl : public AbstractMorphDlg
     174             : {
     175           0 :     DECL_ABSTDLG_BASE(AbstractMorphDlg_Impl,::sd::MorphDlg)
     176             :     virtual void            SaveSettings() const SAL_OVERRIDE;
     177             :     virtual sal_uInt16      GetFadeSteps() const SAL_OVERRIDE;
     178             :     virtual bool            IsAttributeFade() const SAL_OVERRIDE ;
     179             :     virtual bool            IsOrientationFade() const SAL_OVERRIDE ;
     180             : };
     181             : 
     182             : class SdStartPresentationDlg;
     183             : class AbstractSdStartPresDlg_Impl : public AbstractSdStartPresDlg
     184             : {
     185           0 :     DECL_ABSTDLG_BASE(AbstractSdStartPresDlg_Impl,SdStartPresentationDlg)
     186             :     virtual void    GetAttr( SfxItemSet& rOutAttrs ) SAL_OVERRIDE;
     187             : };
     188             : 
     189             : class SdPresLayoutDlg;
     190             : class AbstractSdPresLayoutDlg_Impl : public AbstractSdPresLayoutDlg
     191             : {
     192           0 :     DECL_ABSTDLG_BASE(AbstractSdPresLayoutDlg_Impl,SdPresLayoutDlg)
     193             :     virtual void    GetAttr(SfxItemSet& rOutAttrs) SAL_OVERRIDE;
     194             : };
     195             : 
     196             : class SdAbstractSfxDialog_Impl : public SfxAbstractDialog
     197             : {
     198           0 :     DECL_ABSTDLG_BASE(SdAbstractSfxDialog_Impl,SfxModalDialog)
     199             :     virtual const SfxItemSet*   GetOutputItemSet() const SAL_OVERRIDE;
     200             :     virtual void        SetText( const OUString& rStr ) SAL_OVERRIDE;
     201             :     virtual OUString    GetText() const SAL_OVERRIDE;
     202             : };
     203             : 
     204             : class SdVectorizeDlg;
     205             : class AbstractSdVectorizeDlg_Impl :public AbstractSdVectorizeDlg
     206             : {
     207           0 :     DECL_ABSTDLG_BASE(AbstractSdVectorizeDlg_Impl,SdVectorizeDlg)
     208             :     virtual const GDIMetaFile&  GetGDIMetaFile() const SAL_OVERRIDE ;
     209             : };
     210             : 
     211             : class SdPublishingDlg;
     212             : class AbstractSdPublishingDlg_Impl :public AbstractSdPublishingDlg
     213             : {
     214           0 :     DECL_ABSTDLG_BASE(AbstractSdPublishingDlg_Impl,SdPublishingDlg)
     215             :     virtual void GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams ) SAL_OVERRIDE;
     216             : };
     217             : 
     218             : class AbstractHeaderFooterDialog_Impl :public AbstractHeaderFooterDialog
     219             : {
     220           0 :   DECL_ABSTDLG_BASE(AbstractHeaderFooterDialog_Impl,::sd::HeaderFooterDialog)
     221             :   virtual void ApplyToAll() SAL_OVERRIDE;
     222             :   virtual void Apply() SAL_OVERRIDE;
     223             :   virtual void Cancel() SAL_OVERRIDE;
     224             : };
     225             : 
     226             : //AbstractDialogFactory_Impl implementations
     227             : class SdAbstractDialogFactory_Impl : public SdAbstractDialogFactory
     228             : {
     229             : 
     230             : public:
     231           0 :     virtual ~SdAbstractDialogFactory_Impl() {}
     232             : 
     233             :     virtual VclAbstractDialog*          CreateBreakDlg(vcl::Window* pWindow, ::sd::DrawView* pDrView, ::sd::DrawDocShell* pShell, sal_uLong nSumActionCount, sal_uLong nObjCount ) SAL_OVERRIDE;
     234             :     virtual AbstractCopyDlg*            CreateCopyDlg( vcl::Window* pWindow, const SfxItemSet& rInAttrs, const rtl::Reference<XColorList> &pColTab, ::sd::View* pView ) SAL_OVERRIDE;
     235             :     virtual AbstractSdCustomShowDlg*    CreateSdCustomShowDlg( vcl::Window* pWindow, SdDrawDocument& rDrawDoc ) SAL_OVERRIDE;
     236             :     virtual SfxAbstractTabDialog*       CreateSdTabCharDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell ) SAL_OVERRIDE;
     237             :     virtual SfxAbstractTabDialog*       CreateSdTabPageDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, bool bAreaPage = true ) SAL_OVERRIDE;
     238             :     virtual AbstractAssistentDlg*       CreateAssistentDlg( vcl::Window* pParent, bool bAutoPilot) SAL_OVERRIDE;
     239             :     virtual AbstractSdModifyFieldDlg*   CreateSdModifyFieldDlg( vcl::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet ) SAL_OVERRIDE;
     240             :     virtual AbstractSdSnapLineDlg*      CreateSdSnapLineDlg( vcl::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView) SAL_OVERRIDE;
     241             :     virtual AbstractSdInsertLayerDlg*   CreateSdInsertLayerDlg( vcl::Window* pWindow, const SfxItemSet& rInAttrs, bool bDeletable, const OUString& aStr ) SAL_OVERRIDE;
     242             :     virtual AbstractSdInsertPasteDlg*   CreateSdInsertPasteDlg( vcl::Window* pWindow ) SAL_OVERRIDE;
     243             :     virtual AbstractSdInsertPagesObjsDlg* CreateSdInsertPagesObjsDlg( vcl::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const OUString& rFileName ) SAL_OVERRIDE;
     244             :     virtual AbstractMorphDlg*           CreateMorphDlg( vcl::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2) SAL_OVERRIDE;
     245             :     virtual SfxAbstractTabDialog*       CreateSdOutlineBulletTabDlg ( vcl::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView = NULL ) SAL_OVERRIDE;
     246             :     virtual SfxAbstractTabDialog*       CreateSdParagraphTabDlg ( vcl::Window* pParent, const SfxItemSet* pAttr ) SAL_OVERRIDE;
     247             :     virtual AbstractSdStartPresDlg*     CreateSdStartPresentationDlg( vcl::Window* pWindow, const SfxItemSet& rInAttrs,
     248             :                                                                      const std::vector<OUString> &rPageNames, SdCustomShowList* pCSList ) SAL_OVERRIDE;
     249             :     virtual VclAbstractDialog*          CreateRemoteDialog( vcl::Window* pWindow ) SAL_OVERRIDE; // ad for RemoteDialog
     250             :     virtual SfxAbstractTabDialog*       CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, vcl::Window* pParent, const SdResId& DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ) SAL_OVERRIDE;
     251             :     virtual AbstractSdPresLayoutDlg*    CreateSdPresLayoutDlg( ::sd::DrawDocShell* pDocShell, vcl::Window* pWindow, const SfxItemSet& rInAttrs) SAL_OVERRIDE;
     252             :     virtual SfxAbstractTabDialog*       CreateSdTabTemplateDlg( vcl::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView ) SAL_OVERRIDE;
     253             :     virtual SfxAbstractDialog*          CreatSdActionDialog( vcl::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView ) SAL_OVERRIDE;
     254             :     virtual AbstractSdVectorizeDlg*     CreateSdVectorizeDlg( vcl::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell ) SAL_OVERRIDE;
     255             :     virtual AbstractSdPublishingDlg*    CreateSdPublishingDlg( vcl::Window* pWindow, DocumentType eDocType) SAL_OVERRIDE;
     256             : 
     257             :     virtual VclAbstractDialog* CreateSdPhotoAlbumDialog( vcl::Window* pWindow, SdDrawDocument* pDoc) SAL_OVERRIDE;
     258             : 
     259             :       virtual VclAbstractDialog*          CreateMasterLayoutDialog( vcl::Window* pParent,
     260             :                                                                   SdDrawDocument* pDoc,
     261             :                                                                   SdPage* ) SAL_OVERRIDE;
     262             : 
     263             :     virtual AbstractHeaderFooterDialog* CreateHeaderFooterDialog( sd::ViewShell* pViewShell,
     264             :                                                                   vcl::Window* pParent,
     265             :                                                                   SdDrawDocument* pDoc,
     266             :                                                                   SdPage* pCurrentPage ) SAL_OVERRIDE;
     267             : 
     268             :     // For TabPage
     269             :     virtual CreateTabPage               GetSdOptionsContentsTabPageCreatorFunc() SAL_OVERRIDE;
     270             :     virtual CreateTabPage               GetSdPrintOptionsTabPageCreatorFunc() SAL_OVERRIDE;
     271             :     virtual CreateTabPage               GetSdOptionsMiscTabPageCreatorFunc() SAL_OVERRIDE;
     272             :     virtual CreateTabPage               GetSdOptionsSnapTabPageCreatorFunc() SAL_OVERRIDE;
     273             : 
     274             : };
     275             : 
     276             : #endif
     277             : 
     278             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11