LCOV - code coverage report
Current view: top level - sd/inc - sdabstdlg.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 15 0.0 %
Date: 2014-04-11 Functions: 0 43 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_INC_SDABSTDLG_HXX
      20             : #define INCLUDED_SD_INC_SDABSTDLG_HXX
      21             : 
      22             : #include <vector>
      23             : 
      24             : #include <rtl/ref.hxx>
      25             : #include <rtl/string.hxx>
      26             : #include <tools/solar.h>
      27             : #include <sfx2/sfxdlg.hxx>
      28             : #include <com/sun/star/uno/Sequence.h>
      29             : #include <com/sun/star/beans/NamedValue.hpp>
      30             : #include <com/sun/star/beans/XPropertyAccess.hpp>
      31             : #include "prlayout.hxx"
      32             : #include "sdenumdef.hxx"
      33             : #include "pres.hxx"
      34             : 
      35             : namespace sd {
      36             :     class View;
      37             :     class DrawDocShell;
      38             :     class DrawView;
      39             : }
      40             : 
      41             : class SfxObjectShell;
      42             : class SfxObjectShellLock;
      43             : class SvxFieldData;
      44             : class GDIMetaFile;
      45             : class XColorList;
      46             : class SdDrawDocument;
      47             : class SfxMedium;
      48             : class SdrObject;
      49             : class SfxStyleSheetBasePool;
      50             : class SfxStyleSheetBase;
      51             : class SdrModel;
      52             : class SdrView;
      53             : class Bitmap;
      54             : class List;
      55             : class SdResId;
      56             : class Window;
      57             : class SdPage;
      58             : class TabPage;
      59             : class ViewShell;
      60             : class SdCustomShowList;
      61             : 
      62           0 : class AbstractCopyDlg : public VclAbstractDialog
      63             : {
      64             : public:
      65             :     virtual void    GetAttr( SfxItemSet& rOutAttrs ) = 0;
      66             : };
      67             : 
      68           0 : class AbstractSdCustomShowDlg : public VclAbstractDialog
      69             : {
      70             : public:
      71             :     virtual sal_Bool        IsModified() const = 0;
      72             :     virtual sal_Bool        IsCustomShow() const = 0;
      73             : };
      74             : 
      75           0 : class AbstractAssistentDlg : public VclAbstractDialog
      76             : {
      77             : public:
      78             :     virtual SfxObjectShellLock GetDocument() = 0;
      79             :     virtual OutputType GetOutputMedium() const = 0;
      80             :     virtual sal_Bool IsSummary() const = 0;
      81             :     virtual StartType GetStartType() const = 0;
      82             :     virtual OUString GetDocPath() const = 0;
      83             :     virtual sal_Bool GetStartWithFlag() const = 0;
      84             :     virtual sal_Bool IsDocEmpty() const = 0;
      85             :     virtual com::sun::star::uno::Sequence< com::sun::star::beans::NamedValue > GetPassword() = 0;
      86             : };
      87             : 
      88           0 : class AbstractSdModifyFieldDlg : public VclAbstractDialog
      89             : {
      90             : public:
      91             :     virtual SvxFieldData*       GetField() = 0;
      92             :     virtual SfxItemSet          GetItemSet() = 0;
      93             : };
      94             : 
      95           0 : class AbstractSdSnapLineDlg : public VclAbstractDialog
      96             : {
      97             : public:
      98             :     virtual void GetAttr(SfxItemSet& rOutAttrs) = 0;
      99             :     virtual void HideRadioGroup() = 0;
     100             :     virtual void HideDeleteBtn() = 0;
     101             :     virtual void SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY) = 0;
     102             :     //from class ::Window
     103             :     virtual void    SetText( const OUString& rStr ) = 0;
     104             : };
     105             : 
     106           0 : class AbstractSdInsertLayerDlg : public VclAbstractDialog
     107             : {
     108             : public:
     109             :     virtual void    GetAttr( SfxItemSet& rOutAttrs ) = 0;
     110             :     //from class ::Window
     111             :     virtual void    SetHelpId( const OString& rHelpId ) = 0;
     112             : };
     113             : 
     114           0 : class AbstractSdInsertPasteDlg : public VclAbstractDialog
     115             : {
     116             : public:
     117             :     virtual sal_Bool            IsInsertBefore() const = 0;
     118             : };
     119             : 
     120           0 : class AbstractSdInsertPagesObjsDlg : public VclAbstractDialog
     121             : {
     122             : public:
     123             :     virtual ::Window*   GetWindow() = 0;  //this method is added for return a ::Window type pointer
     124             :     virtual std::vector<OUString> GetList ( const sal_uInt16 nType ) = 0;
     125             :     virtual sal_Bool        IsLink() = 0;
     126             :     virtual sal_Bool        IsRemoveUnnessesaryMasterPages() const = 0;
     127             : };
     128             : 
     129           0 : class AbstractMorphDlg : public VclAbstractDialog
     130             : {
     131             : public:
     132             :     virtual void            SaveSettings() const = 0;
     133             :     virtual sal_uInt16          GetFadeSteps() const = 0;
     134             :     virtual sal_Bool            IsAttributeFade() const = 0;
     135             :     virtual sal_Bool            IsOrientationFade() const = 0;
     136             : };
     137             : 
     138           0 : class AbstractSdStartPresDlg : public VclAbstractDialog
     139             : {
     140             : public:
     141             :     virtual void    GetAttr( SfxItemSet& rOutAttrs ) = 0;
     142             : };
     143             : 
     144           0 : class AbstractSdPresLayoutDlg : public VclAbstractDialog
     145             : {
     146             : public:
     147             :     virtual void    GetAttr(SfxItemSet& rOutAttrs) = 0;
     148             : };
     149             : 
     150           0 : class AbstractSdVectorizeDlg : public VclAbstractDialog
     151             : {
     152             : public:
     153             :     virtual const GDIMetaFile&  GetGDIMetaFile() const = 0;
     154             : };
     155             : 
     156           0 : class AbstractSdPublishingDlg : public VclAbstractDialog
     157             : {
     158             : public:
     159             :     virtual void GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams ) = 0;
     160             : };
     161             : 
     162           0 : class AbstractHeaderFooterDialog : public VclAbstractDialog
     163             : {
     164             : public:
     165             :     virtual void ApplyToAll() = 0;
     166             :     virtual void Apply() = 0;
     167             :     virtual void Cancel() = 0;
     168             : };
     169             : 
     170             : 
     171             : class SdAbstractDialogFactory
     172             : {
     173             : public:
     174             :     static SdAbstractDialogFactory*     Create();
     175             : 
     176             :     virtual VclAbstractDialog*          CreateBreakDlg(::Window* pWindow, ::sd::DrawView* pDrView, ::sd::DrawDocShell* pShell, sal_uLong nSumActionCount, sal_uLong nObjCount ) = 0;
     177             :     virtual AbstractCopyDlg*            CreateCopyDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, const rtl::Reference<XColorList> &pColTab, ::sd::View* pView ) = 0;
     178             :     virtual AbstractSdCustomShowDlg*    CreateSdCustomShowDlg( ::Window* pWindow, SdDrawDocument& rDrawDoc ) = 0;
     179             :     virtual SfxAbstractTabDialog*       CreateSdTabCharDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell ) = 0;
     180             :     virtual SfxAbstractTabDialog*       CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, sal_Bool bAreaPage = sal_True ) = 0;
     181             :     virtual AbstractAssistentDlg*       CreateAssistentDlg( ::Window* pParent, sal_Bool bAutoPilot) = 0;
     182             :     virtual AbstractSdModifyFieldDlg*   CreateSdModifyFieldDlg( ::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet ) = 0;
     183             :     virtual AbstractSdSnapLineDlg*      CreateSdSnapLineDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView) = 0;
     184             :     virtual AbstractSdInsertLayerDlg*   CreateSdInsertLayerDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, bool bDeletable, const OUString& aStr ) = 0;
     185             :     virtual AbstractSdInsertPasteDlg*   CreateSdInsertPasteDlg( ::Window* pWindow ) = 0;
     186             :     virtual AbstractSdInsertPagesObjsDlg* CreateSdInsertPagesObjsDlg( ::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const OUString& rFileName ) = 0;
     187             :     virtual AbstractMorphDlg*           CreateMorphDlg( ::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2) = 0;
     188             :     virtual SfxAbstractTabDialog*       CreateSdOutlineBulletTabDlg ( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView = NULL ) = 0;
     189             :     virtual SfxAbstractTabDialog*       CreateSdParagraphTabDlg ( ::Window* pParent, const SfxItemSet* pAttr ) = 0;
     190             :     virtual AbstractSdStartPresDlg*     CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs,
     191             :                                                                      const std::vector<OUString> &rPageNames, SdCustomShowList* pCSList ) = 0;
     192             :     virtual VclAbstractDialog*          CreateRemoteDialog( ::Window* pWindow ) = 0;
     193             :     virtual SfxAbstractTabDialog*       CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ) = 0;
     194             :     virtual AbstractSdPresLayoutDlg*    CreateSdPresLayoutDlg( ::sd::DrawDocShell* pDocShell, ::Window* pWindow, const SfxItemSet& rInAttrs) = 0;
     195             :     virtual SfxAbstractTabDialog*       CreateSdTabTemplateDlg( ::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView ) = 0;
     196             :     virtual SfxAbstractDialog*          CreatSdActionDialog( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView ) = 0;
     197             :     virtual AbstractSdVectorizeDlg*     CreateSdVectorizeDlg( ::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell ) = 0;
     198             :     virtual AbstractSdPublishingDlg*    CreateSdPublishingDlg( ::Window* pWindow, DocumentType eDocType) = 0;
     199             : 
     200             :     virtual VclAbstractDialog*          CreateMasterLayoutDialog( ::Window* pParent,
     201             :                                                                   SdDrawDocument* pDoc,
     202             :                                                                   SdPage* ) = 0;
     203             : 
     204             :     virtual AbstractHeaderFooterDialog* CreateHeaderFooterDialog( ViewShell* pViewShell,
     205             :                                                                   ::Window* pParent,
     206             :                                                                   SdDrawDocument* pDoc,
     207             :                                                                   SdPage* pCurrentPage ) = 0;
     208             : 
     209             :     virtual CreateTabPage               GetSdOptionsContentsTabPageCreatorFunc() = 0;
     210             :     virtual CreateTabPage               GetSdPrintOptionsTabPageCreatorFunc() = 0;
     211             :     virtual CreateTabPage               GetSdOptionsMiscTabPageCreatorFunc() = 0;
     212             :     virtual CreateTabPage               GetSdOptionsSnapTabPageCreatorFunc() = 0;
     213             : 
     214             :     virtual VclAbstractDialog* CreateSdPhotoAlbumDialog( ::Window* pWindow, SdDrawDocument* pDoc) = 0;
     215             : 
     216             : protected:
     217           0 :     ~SdAbstractDialogFactory() {}
     218             : };
     219             : #endif
     220             : 
     221             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10