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

Generated by: LCOV version 1.10