LCOV - code coverage report
Current view: top level - sd/inc - sdabstdlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 15 0.0 %
Date: 2012-08-25 Functions: 0 43 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 26 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _SD_ABSTDLG_HXX
      29                 :            : #define _SD_ABSTDLG_HXX
      30                 :            : 
      31                 :            : #include <vector>
      32                 :            : 
      33                 :            : #include <rtl/ref.hxx>
      34                 :            : #include <rtl/string.hxx>
      35                 :            : #include <tools/solar.h>
      36                 :            : #include <tools/string.hxx>
      37                 :            : #include <sfx2/sfxdlg.hxx>
      38                 :            : #include <com/sun/star/uno/Sequence.h>
      39                 :            : #include <com/sun/star/beans/NamedValue.hpp>
      40                 :            : #include <com/sun/star/beans/XPropertyAccess.hpp>
      41                 :            : #include "prlayout.hxx"
      42                 :            : #include "sdenumdef.hxx"
      43                 :            : #include "pres.hxx"
      44                 :            : 
      45                 :            : namespace sd {
      46                 :            :     class View;
      47                 :            :     class DrawDocShell;
      48                 :            :     class ViewShell;
      49                 :            :     class DrawView;
      50                 :            : }
      51                 :            : 
      52                 :            : class String;
      53                 :            : class SfxObjectShell;
      54                 :            : class SfxObjectShellLock;
      55                 :            : class SvxFieldData;
      56                 :            : class GDIMetaFile;
      57                 :            : class XColorList;
      58                 :            : class SdDrawDocument;
      59                 :            : class SfxMedium;
      60                 :            : class SdrObject;
      61                 :            : class SfxStyleSheetBasePool;
      62                 :            : class SfxStyleSheetBase;
      63                 :            : class SdrModel;
      64                 :            : class SdrView;
      65                 :            : class Bitmap;
      66                 :            : class List;
      67                 :            : class SdResId;
      68                 :            : class Window;
      69                 :            : class SdPage;
      70                 :            : class TabPage;
      71                 :            : class ViewShell;
      72                 :            : class SdCustomShowList;
      73                 :            : 
      74         [ #  # ]:          0 : class AbstractCopyDlg : public VclAbstractDialog  //add for CopyDlg
      75                 :            : {
      76                 :            : public:
      77                 :            :     virtual void    GetAttr( SfxItemSet& rOutAttrs ) = 0;
      78                 :            : };
      79                 :            : 
      80         [ #  # ]:          0 : class AbstractSdCustomShowDlg : public VclAbstractDialog  //add for SdCustomShowDlg
      81                 :            : {
      82                 :            : public:
      83                 :            :     virtual sal_Bool        IsModified() const = 0;
      84                 :            :     virtual sal_Bool        IsCustomShow() const = 0;
      85                 :            : };
      86                 :            : 
      87         [ #  # ]:          0 : class AbstractAssistentDlg : public VclAbstractDialog  //add for AssistentDlg
      88                 :            : {
      89                 :            : public:
      90                 :            :     virtual SfxObjectShellLock GetDocument() = 0;
      91                 :            :     virtual OutputType GetOutputMedium() const = 0;
      92                 :            :     virtual sal_Bool IsSummary() const = 0;
      93                 :            :     virtual StartType GetStartType() const = 0;
      94                 :            :     virtual String GetDocPath() const = 0;
      95                 :            :     virtual sal_Bool GetStartWithFlag() const = 0;
      96                 :            :     virtual sal_Bool IsDocEmpty() const = 0;
      97                 :            :     virtual com::sun::star::uno::Sequence< com::sun::star::beans::NamedValue > GetPassword() = 0;
      98                 :            : };
      99                 :            : 
     100         [ #  # ]:          0 : class AbstractSdModifyFieldDlg : public VclAbstractDialog  //add for SdModifyFieldDlg
     101                 :            : {
     102                 :            : public:
     103                 :            :     virtual SvxFieldData*       GetField() = 0;
     104                 :            :     virtual SfxItemSet          GetItemSet() = 0;
     105                 :            : };
     106                 :            : 
     107         [ #  # ]:          0 : class AbstractSdSnapLineDlg : public VclAbstractDialog  //add for SdSnapLineDlg
     108                 :            : {
     109                 :            : public:
     110                 :            :     virtual void GetAttr(SfxItemSet& rOutAttrs) = 0;
     111                 :            :     virtual void HideRadioGroup() = 0;
     112                 :            :     virtual void HideDeleteBtn() = 0;
     113                 :            :     virtual void SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY) = 0;
     114                 :            :     //from class ::Window
     115                 :            :     virtual void    SetText( const XubString& rStr ) = 0;
     116                 :            : };
     117                 :            : 
     118         [ #  # ]:          0 : class AbstractSdInsertLayerDlg : public VclAbstractDialog  //add for SdInsertLayerDlg
     119                 :            : {
     120                 :            : public:
     121                 :            :     virtual void    GetAttr( SfxItemSet& rOutAttrs ) = 0;
     122                 :            :     //from class ::Window
     123                 :            :     virtual void    SetHelpId( const rtl::OString& rHelpId ) = 0;
     124                 :            : };
     125                 :            : 
     126                 :          0 : class AbstractSdInsertPasteDlg : public VclAbstractDialog  //add for SdInsertPasteDlg
     127                 :            : {
     128                 :            : public:
     129                 :            :     virtual sal_Bool            IsInsertBefore() const = 0;
     130                 :            : };
     131                 :            : 
     132         [ #  # ]:          0 : class AbstractSdInsertPagesObjsDlg : public VclAbstractDialog  //add for SdInsertPagesObjsDlg
     133                 :            : {
     134                 :            : public:
     135                 :            :     virtual ::Window*   GetWindow() = 0;  //this method is added for return a ::Window type pointer
     136                 :            :     virtual std::vector<rtl::OUString> GetList ( const sal_uInt16 nType ) = 0;
     137                 :            :     virtual sal_Bool        IsLink() = 0;
     138                 :            :     virtual sal_Bool        IsRemoveUnnessesaryMasterPages() const = 0;
     139                 :            : };
     140                 :            : 
     141         [ #  # ]:          0 : class AbstractMorphDlg : public VclAbstractDialog  //add for MorphDlg
     142                 :            : {
     143                 :            : public:
     144                 :            :     virtual void            SaveSettings() const = 0;
     145                 :            :     virtual sal_uInt16          GetFadeSteps() const = 0;
     146                 :            :     virtual sal_Bool            IsAttributeFade() const = 0;
     147                 :            :     virtual sal_Bool            IsOrientationFade() const = 0;
     148                 :            : };
     149                 :            : 
     150         [ #  # ]:          0 : class AbstractSdStartPresDlg : public VclAbstractDialog  //add for SdStartPresentationDlg
     151                 :            : {
     152                 :            : public:
     153                 :            :     virtual void    GetAttr( SfxItemSet& rOutAttrs ) = 0;
     154                 :            : };
     155                 :            : 
     156         [ #  # ]:          0 : class AbstractSdPresLayoutDlg : public VclAbstractDialog  //add for SdPresLayoutDlg
     157                 :            : {
     158                 :            : public:
     159                 :            :     virtual void    GetAttr(SfxItemSet& rOutAttrs) = 0;
     160                 :            : };
     161                 :            : 
     162         [ #  # ]:          0 : class AbstractSdVectorizeDlg : public VclAbstractDialog  //add for SdVectorizeDlg
     163                 :            : {
     164                 :            : public:
     165                 :            :     virtual const GDIMetaFile&  GetGDIMetaFile() const = 0;
     166                 :            : };
     167                 :            : 
     168         [ #  # ]:          0 : class AbstractSdPublishingDlg : public VclAbstractDialog  //add for SdPublishingDlg
     169                 :            : {
     170                 :            : public:
     171                 :            :     virtual void GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams ) = 0;
     172                 :            : };
     173                 :            : 
     174         [ #  # ]:          0 : class AbstractHeaderFooterDialog : public VclAbstractDialog // add for HeaderFooterDialog
     175                 :            : {
     176                 :            : public:
     177                 :            :     virtual void ApplyToAll( TabPage* pPage ) = 0;
     178                 :            :     virtual void Apply( TabPage* pPage ) = 0;
     179                 :            :     virtual void Cancel( TabPage* pPage ) = 0;
     180                 :            : };
     181                 :            : 
     182                 :            : //---------------------------------------------------------
     183                 :            : class SdAbstractDialogFactory
     184                 :            : {
     185                 :            : public:
     186                 :            :     static SdAbstractDialogFactory*     Create();
     187                 :            : 
     188                 :            :     virtual VclAbstractDialog*          CreateBreakDlg(::Window* pWindow, ::sd::DrawView* pDrView, ::sd::DrawDocShell* pShell, sal_uLong nSumActionCount, sal_uLong nObjCount ) = 0;
     189                 :            :     virtual AbstractCopyDlg*            CreateCopyDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, const rtl::Reference<XColorList> &pColTab, ::sd::View* pView ) = 0;
     190                 :            :     virtual AbstractSdCustomShowDlg*    CreateSdCustomShowDlg( ::Window* pWindow, SdDrawDocument& rDrawDoc ) = 0;
     191                 :            :     virtual SfxAbstractTabDialog*       CreateSdTabCharDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell ) = 0;
     192                 :            :     virtual SfxAbstractTabDialog*       CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, sal_Bool bAreaPage = sal_True ) = 0;
     193                 :            :     virtual AbstractAssistentDlg*       CreateAssistentDlg( ::Window* pParent, sal_Bool bAutoPilot) = 0;
     194                 :            :     virtual AbstractSdModifyFieldDlg*   CreateSdModifyFieldDlg( ::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet ) = 0;
     195                 :            :     virtual AbstractSdSnapLineDlg*      CreateSdSnapLineDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView) = 0;
     196                 :            :     virtual AbstractSdInsertLayerDlg*   CreateSdInsertLayerDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, bool bDeletable, String aStr ) = 0;
     197                 :            :     virtual AbstractSdInsertPasteDlg*   CreateSdInsertPasteDlg( ::Window* pWindow ) = 0;
     198                 :            :     virtual AbstractSdInsertPagesObjsDlg* CreateSdInsertPagesObjsDlg( ::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const String& rFileName ) = 0;
     199                 :            :     virtual AbstractMorphDlg*           CreateMorphDlg( ::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2) = 0;
     200                 :            :     virtual SfxAbstractTabDialog*       CreateSdOutlineBulletTabDlg ( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView = NULL ) = 0;
     201                 :            :     virtual SfxAbstractTabDialog*       CreateSdParagraphTabDlg ( ::Window* pParent, const SfxItemSet* pAttr ) = 0;
     202                 :            :     virtual AbstractSdStartPresDlg*     CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs,
     203                 :            :                                                                      const std::vector<String> &rPageNames, SdCustomShowList* pCSList ) = 0;
     204                 :            :     virtual VclAbstractDialog*          CreateRemoteDialog( ::Window* pWindow ) = 0;
     205                 :            :     virtual SfxAbstractTabDialog*       CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ) = 0;
     206                 :            :     virtual AbstractSdPresLayoutDlg*    CreateSdPresLayoutDlg( ::sd::DrawDocShell* pDocShell, ::sd::ViewShell* pViewShell, ::Window* pWindow, const SfxItemSet& rInAttrs) = 0;
     207                 :            :     virtual SfxAbstractTabDialog*       CreateSdTabTemplateDlg( ::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView ) = 0;
     208                 :            :     virtual SfxAbstractDialog*          CreatSdActionDialog( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView ) = 0;
     209                 :            :     virtual AbstractSdVectorizeDlg*     CreateSdVectorizeDlg( ::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell ) = 0;
     210                 :            :     virtual AbstractSdPublishingDlg*    CreateSdPublishingDlg( ::Window* pWindow, DocumentType eDocType) = 0;
     211                 :            : 
     212                 :            :     virtual VclAbstractDialog*          CreateMasterLayoutDialog( ::Window* pParent,
     213                 :            :                                                                   SdDrawDocument* pDoc,
     214                 :            :                                                                   SdPage* ) = 0; // add for MasterLayoutDialog
     215                 :            : 
     216                 :            :     virtual AbstractHeaderFooterDialog* CreateHeaderFooterDialog( ViewShell* pViewShell,
     217                 :            :                                                                   ::Window* pParent,
     218                 :            :                                                                   SdDrawDocument* pDoc,
     219                 :            :                                                                   SdPage* pCurrentPage ) = 0; // add for HeaderFooterDialog
     220                 :            : 
     221                 :            :     virtual CreateTabPage               GetSdOptionsContentsTabPageCreatorFunc() = 0;
     222                 :            :     virtual CreateTabPage               GetSdPrintOptionsTabPageCreatorFunc() = 0;
     223                 :            :     virtual CreateTabPage               GetSdOptionsMiscTabPageCreatorFunc() = 0;
     224                 :            :     virtual CreateTabPage               GetSdOptionsSnapTabPageCreatorFunc() = 0;
     225                 :            : 
     226                 :            : protected:
     227                 :          0 :     ~SdAbstractDialogFactory() {}
     228                 :            : };
     229                 :            : #endif
     230                 :            : 
     231                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10