LCOV - code coverage report
Current view: top level - sc/source/ui/attrdlg - scdlgfact.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 39 0.0 %
Date: 2012-08-25 Functions: 0 40 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 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 _SC_DLGFACT_HXX
      29                 :            : #define _SC_DLGFACT_HXX
      30                 :            : 
      31                 :            : #include "scabstdlg.hxx"
      32                 :            : class Dialog;
      33                 :            : class ScImportAsciiDlg;
      34                 :            : class ScAutoFormatDlg;
      35                 :            : class ScColRowLabelDlg;
      36                 :            : class ScDataPilotDatabaseDlg;
      37                 :            : class ScDataPilotSourceTypeDlg;
      38                 :            : class ScDataPilotServiceDlg;
      39                 :            : class ScDeleteCellDlg;
      40                 :            : class ScDataFormDlg;
      41                 :            : class ScDeleteContentsDlg;
      42                 :            : class ScFillSeriesDlg;
      43                 :            : class ScGroupDlg;
      44                 :            : class ScInsertCellDlg;
      45                 :            : class ScInsertContentsDlg;
      46                 :            : class ScInsertTableDlg;
      47                 :            : class ScSelEntryDlg;
      48                 :            : class ScLinkedAreaDlg;
      49                 :            : class ScMetricInputDlg;
      50                 :            : class ScMoveTableDlg;
      51                 :            : class ScNameCreateDlg;
      52                 :            : class ScNamePasteDlg;
      53                 :            : class ScPivotFilterDlg;
      54                 :            : class ScDPFunctionDlg;
      55                 :            : class ScDPSubtotalDlg;
      56                 :            : class ScDPNumGroupDlg;
      57                 :            : class ScDPDateGroupDlg;
      58                 :            : class ScDPShowDetailDlg;
      59                 :            : class ScNewScenarioDlg;
      60                 :            : class ScShowTabDlg;
      61                 :            : class ScStringInputDlg;
      62                 :            : class ScTabBgColorDlg;
      63                 :            : class ScImportOptionsDlg;
      64                 :            : class SfxTabDialog;
      65                 :            : class ScTextImportOptionsDlg;
      66                 :            : class ScDataBarSettingsDlg;
      67                 :            : class ScCondFormatDlg;
      68                 :            : class ScCondFormatManagerDlg;
      69                 :            : 
      70                 :            : #define DECL_ABSTDLG_BASE(Class,DialogClass)        \
      71                 :            :     DialogClass*        pDlg;                       \
      72                 :            : public:                                             \
      73                 :            :                     Class( DialogClass* p)          \
      74                 :            :                      : pDlg(p)                      \
      75                 :            :                      {}                             \
      76                 :            :     virtual         ~Class();                       \
      77                 :            :     virtual short   Execute() ;
      78                 :            : 
      79                 :            : #define DECL_ABSTDLG2_BASE(Class,DialogClass)        \
      80                 :            :     DialogClass*        pDlg;                       \
      81                 :            : public:                                             \
      82                 :            :                     Class( DialogClass* p)          \
      83                 :            :                      : pDlg(p)                      \
      84                 :            :                      {}                             \
      85                 :            :     virtual         ~Class();                       \
      86                 :            :     virtual void    StartExecuteModal( const Link& rEndDialogHdl ); \
      87                 :            :     long            GetResult();
      88                 :            : 
      89                 :            : #define IMPL_ABSTDLG_BASE(Class)                    \
      90                 :            : Class::~Class()                                     \
      91                 :            : {                                                   \
      92                 :            :     delete pDlg;                                    \
      93                 :            : }                                                   \
      94                 :            : short Class::Execute()                             \
      95                 :            : {                                                   \
      96                 :            :     return pDlg->Execute();                         \
      97                 :            : }
      98                 :            : 
      99                 :            : #define IMPL_ABSTDLG2_BASE(Class)                   \
     100                 :            : Class::~Class()                                     \
     101                 :            : {                                                   \
     102                 :            :     delete pDlg;                                    \
     103                 :            : }                                                   \
     104                 :            : void Class::StartExecuteModal( const Link& rEndDialogHdl ) \
     105                 :            : {                                                   \
     106                 :            :     pDlg->StartExecuteModal( rEndDialogHdl ) ;      \
     107                 :            : }                                                   \
     108                 :            : long Class::GetResult()                             \
     109                 :            : {                                                   \
     110                 :            :     return pDlg->GetResult();                       \
     111                 :            : }
     112                 :            : 
     113                 :            : class VclAbstractDialog_Impl : public VclAbstractDialog //add for ScColOrRowDlg
     114                 :            : {
     115                 :          0 :     DECL_ABSTDLG_BASE(VclAbstractDialog_Impl,Dialog)
     116                 :            : };
     117                 :            : 
     118                 :            : class AbstractScImportAsciiDlg_Impl : public AbstractScImportAsciiDlg  //add for ScImportAsciiDlg
     119                 :            : {
     120                 :          0 :     DECL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl, ScImportAsciiDlg)
     121                 :            :     virtual void                        GetOptions( ScAsciiOptions& rOpt );
     122                 :            :     virtual void                        SaveParameters();
     123                 :            : };
     124                 :            : 
     125                 :            : class AbstractScAutoFormatDlg_Impl : public AbstractScAutoFormatDlg  //add for ScAutoFormatDlg
     126                 :            : {
     127                 :          0 :     DECL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl, ScAutoFormatDlg)
     128                 :            :     virtual sal_uInt16 GetIndex() const;
     129                 :            :     virtual String GetCurrFormatName();
     130                 :            : };
     131                 :            : 
     132                 :            : class AbstractScColRowLabelDlg_Impl : public AbstractScColRowLabelDlg  //add for ScColRowLabelDlg
     133                 :            : {
     134                 :          0 :     DECL_ABSTDLG_BASE(AbstractScColRowLabelDlg_Impl,ScColRowLabelDlg)
     135                 :            :     virtual sal_Bool IsCol();
     136                 :            :     virtual sal_Bool IsRow();
     137                 :            : };
     138                 :            : 
     139                 :            : class AbstractScCondFormatDlg_Impl : public AbstractScCondFormatDlg
     140                 :            : {
     141                 :          0 :     DECL_ABSTDLG_BASE(AbstractScCondFormatDlg_Impl, ScCondFormatDlg)
     142                 :            : 
     143                 :            :     virtual ScConditionalFormat* GetConditionalFormat();
     144                 :            : };
     145                 :            : 
     146                 :            : class AbstractScCondFormatManagerDlg_Impl : public AbstractScCondFormatManagerDlg
     147                 :            : {
     148                 :          0 :     DECL_ABSTDLG_BASE(AbstractScCondFormatManagerDlg_Impl, ScCondFormatManagerDlg)
     149                 :            : 
     150                 :            :     virtual ScConditionalFormatList* GetConditionalFormatList();
     151                 :            : };
     152                 :            : 
     153                 :            : class AbstractScDataBarSettingsDlg_Impl : public AbstractScDataBarSettingsDlg
     154                 :            : {
     155                 :          0 :     DECL_ABSTDLG_BASE(AbstractScDataBarSettingsDlg_Impl, ScDataBarSettingsDlg)
     156                 :            : };
     157                 :            : 
     158                 :            : class AbstractScDataPilotDatabaseDlg_Impl  :public AbstractScDataPilotDatabaseDlg  //add for ScDataPilotDatabaseDlg
     159                 :            : {
     160                 :          0 :     DECL_ABSTDLG_BASE(AbstractScDataPilotDatabaseDlg_Impl, ScDataPilotDatabaseDlg)
     161                 :            :     virtual void    GetValues( ScImportSourceDesc& rDesc );
     162                 :            : };
     163                 :            : 
     164                 :            : class AbstractScDataPilotSourceTypeDlg_Impl  :public AbstractScDataPilotSourceTypeDlg  //add for ScDataPilotSourceTypeDlg
     165                 :            : {
     166                 :          0 :     DECL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl, ScDataPilotSourceTypeDlg)
     167                 :            :     virtual bool IsDatabase() const;
     168                 :            :     virtual bool IsExternal() const;
     169                 :            :     virtual bool IsNamedRange() const;
     170                 :            :     virtual rtl::OUString GetSelectedNamedRange() const;
     171                 :            :     virtual void AppendNamedRange(const ::rtl::OUString& rName);
     172                 :            : };
     173                 :            : 
     174                 :            : class AbstractScDataPilotServiceDlg_Impl : public AbstractScDataPilotServiceDlg  //add for ScDataPilotServiceDlg
     175                 :            : {
     176                 :          0 :     DECL_ABSTDLG_BASE(AbstractScDataPilotServiceDlg_Impl, ScDataPilotServiceDlg)
     177                 :            :     virtual String  GetServiceName() const;
     178                 :            :     virtual String  GetParSource() const;
     179                 :            :     virtual String  GetParName() const;
     180                 :            :     virtual String  GetParUser() const;
     181                 :            :     virtual String  GetParPass() const;
     182                 :            : };
     183                 :            : 
     184                 :            : class AbstractScDeleteCellDlg_Impl : public AbstractScDeleteCellDlg  //add for ScDeleteCellDlg
     185                 :            : {
     186                 :          0 :     DECL_ABSTDLG_BASE(AbstractScDeleteCellDlg_Impl,ScDeleteCellDlg)
     187                 :            :     virtual DelCellCmd GetDelCellCmd() const;
     188                 :            : };
     189                 :            : 
     190                 :            : //for dataform
     191                 :            : class AbstractScDataFormDlg_Impl : public AbstractScDataFormDlg  //add for ScDataFormDlg
     192                 :            : {
     193                 :          0 :     DECL_ABSTDLG_BASE(AbstractScDataFormDlg_Impl,ScDataFormDlg);
     194                 :            : };
     195                 :            : 
     196                 :            : class AbstractScDeleteContentsDlg_Impl : public AbstractScDeleteContentsDlg  //add for ScDeleteContentsDlg
     197                 :            : {
     198                 :          0 :     DECL_ABSTDLG_BASE( AbstractScDeleteContentsDlg_Impl,ScDeleteContentsDlg)
     199                 :            :     virtual void    DisableObjects();
     200                 :            :     virtual sal_uInt16  GetDelContentsCmdBits() const;
     201                 :            : };
     202                 :            : 
     203                 :            : class AbstractScFillSeriesDlg_Impl:public AbstractScFillSeriesDlg  //add for ScFillSeriesDlg
     204                 :            : {
     205                 :          0 :     DECL_ABSTDLG_BASE(AbstractScFillSeriesDlg_Impl, ScFillSeriesDlg)
     206                 :            :     virtual FillDir     GetFillDir() const;
     207                 :            :     virtual FillCmd     GetFillCmd() const;
     208                 :            :     virtual FillDateCmd GetFillDateCmd() const;
     209                 :            :     virtual double      GetStart() const;
     210                 :            :     virtual double      GetStep() const;
     211                 :            :     virtual double      GetMax() const;
     212                 :            :     virtual String      GetStartStr() const;
     213                 :            :     virtual void        SetEdStartValEnabled(sal_Bool bFlag=false);
     214                 :            : };
     215                 :            : 
     216                 :            : class AbstractScGroupDlg_Impl :  public AbstractScGroupDlg  //add for ScGroupDlg
     217                 :            : {
     218                 :          0 :     DECL_ABSTDLG_BASE( AbstractScGroupDlg_Impl, ScGroupDlg)
     219                 :            :     virtual sal_Bool GetColsChecked() const;
     220                 :            : };
     221                 :            : 
     222                 :            : class AbstractScInsertCellDlg_Impl : public AbstractScInsertCellDlg  //add for ScInsertCellDlg
     223                 :            : {
     224                 :          0 :     DECL_ABSTDLG_BASE( AbstractScInsertCellDlg_Impl, ScInsertCellDlg)
     225                 :            :     virtual InsCellCmd GetInsCellCmd() const ;
     226                 :            : };
     227                 :            : 
     228                 :            : class AbstractScInsertContentsDlg_Impl : public AbstractScInsertContentsDlg  //add for ScInsertContentsDlg
     229                 :            : {
     230                 :          0 :     DECL_ABSTDLG_BASE(AbstractScInsertContentsDlg_Impl, ScInsertContentsDlg)
     231                 :            :     virtual sal_uInt16      GetInsContentsCmdBits() const;
     232                 :            :     virtual sal_uInt16      GetFormulaCmdBits() const;
     233                 :            :     virtual sal_Bool        IsSkipEmptyCells() const;
     234                 :            :     virtual sal_Bool        IsLink() const;
     235                 :            :     virtual void    SetFillMode( sal_Bool bSet );
     236                 :            :     virtual void    SetOtherDoc( sal_Bool bSet );
     237                 :            :     virtual sal_Bool        IsTranspose() const;
     238                 :            :     virtual void    SetChangeTrack( sal_Bool bSet );
     239                 :            :     virtual void    SetCellShiftDisabled( int nDisable );
     240                 :            :     virtual InsCellCmd  GetMoveMode();
     241                 :            : };
     242                 :            : 
     243                 :            : class AbstractScInsertTableDlg_Impl : public AbstractScInsertTableDlg  //add for ScInsertTableDlg
     244                 :            : {
     245                 :          0 :     DECL_ABSTDLG_BASE( AbstractScInsertTableDlg_Impl, ScInsertTableDlg)
     246                 :            :     virtual sal_Bool            GetTablesFromFile();
     247                 :            :     virtual sal_Bool            GetTablesAsLink();
     248                 :            :     virtual const String*   GetFirstTable( sal_uInt16* pN = NULL );
     249                 :            :     virtual ScDocShell*     GetDocShellTables();
     250                 :            :     virtual sal_Bool            IsTableBefore();
     251                 :            :     virtual sal_uInt16          GetTableCount();
     252                 :            :     virtual const String*   GetNextTable( sal_uInt16* pN = NULL );
     253                 :            : 
     254                 :            : };
     255                 :            : 
     256                 :            : class AbstractScSelEntryDlg_Impl : public AbstractScSelEntryDlg  //add for ScSelEntryDlg
     257                 :            : {
     258                 :          0 :     DECL_ABSTDLG_BASE( AbstractScSelEntryDlg_Impl, ScSelEntryDlg )
     259                 :            :     virtual String GetSelectEntry() const;
     260                 :            : };
     261                 :            : 
     262                 :            : class AbstractScLinkedAreaDlg_Impl : public AbstractScLinkedAreaDlg  //add for ScLinkedAreaDlg
     263                 :            : {
     264                 :          0 :     DECL_ABSTDLG2_BASE( AbstractScLinkedAreaDlg_Impl, ScLinkedAreaDlg)
     265                 :            : 
     266                 :            :     virtual void            InitFromOldLink( const String& rFile, const String& rFilter,
     267                 :            :                                         const String& rOptions, const String& rSource,
     268                 :            :                                         sal_uLong nRefresh );
     269                 :            :     virtual String          GetURL();
     270                 :            :     virtual String          GetFilter();        // may be empty
     271                 :            :     virtual String          GetOptions();       // filter options
     272                 :            :     virtual String          GetSource();        // separated by ";"
     273                 :            :     virtual sal_uLong           GetRefresh();       // 0 if disabled
     274                 :            : };
     275                 :            : 
     276                 :            : class AbstractScMetricInputDlg_Impl : public AbstractScMetricInputDlg  //add for ScMetricInputDlg
     277                 :            : {
     278                 :          0 :     DECL_ABSTDLG_BASE( AbstractScMetricInputDlg_Impl, ScMetricInputDlg)
     279                 :            :     virtual long GetInputValue( FieldUnit eUnit = FUNIT_TWIP ) const;
     280                 :            : };
     281                 :            : 
     282                 :            : class AbstractScMoveTableDlg_Impl : public AbstractScMoveTableDlg  //add for ScMoveTableDlg
     283                 :            : {
     284                 :          0 :     DECL_ABSTDLG_BASE( AbstractScMoveTableDlg_Impl, ScMoveTableDlg)
     285                 :            :     virtual sal_uInt16  GetSelectedDocument     () const;
     286                 :            :     virtual sal_uInt16  GetSelectedTable        () const;
     287                 :            :     virtual bool    GetCopyTable            () const;
     288                 :            :     virtual bool    GetRenameTable          () const;
     289                 :            :     virtual void    GetTabNameString( rtl::OUString& rString ) const;
     290                 :            :     virtual void    SetForceCopyTable       ();
     291                 :            :     virtual void    EnableCopyTable         (sal_Bool bFlag=true);
     292                 :            :     virtual void    EnableRenameTable       (sal_Bool bFlag=true);
     293                 :            : };
     294                 :            : 
     295                 :            : class AbstractScNameCreateDlg_Impl : public AbstractScNameCreateDlg  //add for ScNameCreateDlg
     296                 :            : {
     297                 :          0 :     DECL_ABSTDLG_BASE( AbstractScNameCreateDlg_Impl, ScNameCreateDlg)
     298                 :            :     virtual sal_uInt16          GetFlags() const;
     299                 :            : };
     300                 :            : 
     301                 :            : class AbstractScNamePasteDlg_Impl : public AbstractScNamePasteDlg  //add for ScNamePasteDlg
     302                 :            : {
     303                 :          0 :     DECL_ABSTDLG_BASE( AbstractScNamePasteDlg_Impl, ScNamePasteDlg )
     304                 :            :     virtual std::vector<rtl::OUString>          GetSelectedNames() const;
     305                 :            :     virtual bool                                IsAllSelected() const;
     306                 :            : };
     307                 :            : 
     308                 :            : class AbstractScPivotFilterDlg_Impl : public AbstractScPivotFilterDlg  //add for ScPivotFilterDlg
     309                 :            : {
     310                 :          0 :     DECL_ABSTDLG_BASE( AbstractScPivotFilterDlg_Impl, ScPivotFilterDlg)
     311                 :            :     virtual const ScQueryItem&  GetOutputItem();
     312                 :            : };
     313                 :            : 
     314                 :            : class AbstractScDPFunctionDlg_Impl : public AbstractScDPFunctionDlg  //add for ScDPFunctionDlg
     315                 :            : {
     316                 :          0 :     DECL_ABSTDLG_BASE( AbstractScDPFunctionDlg_Impl, ScDPFunctionDlg)
     317                 :            :     virtual sal_uInt16 GetFuncMask() const;
     318                 :            :     virtual ::com::sun::star::sheet::DataPilotFieldReference GetFieldRef() const;
     319                 :            : };
     320                 :            : 
     321                 :            : class AbstractScDPSubtotalDlg_Impl : public AbstractScDPSubtotalDlg  //add for ScDPSubtotalDlg
     322                 :            : {
     323                 :          0 :     DECL_ABSTDLG_BASE( AbstractScDPSubtotalDlg_Impl, ScDPSubtotalDlg)
     324                 :            :     virtual sal_uInt16 GetFuncMask() const;
     325                 :            :     virtual void FillLabelData( ScDPLabelData& rLabelData ) const;
     326                 :            : };
     327                 :            : 
     328                 :            : class AbstractScDPNumGroupDlg_Impl : public AbstractScDPNumGroupDlg
     329                 :            : {
     330                 :          0 :     DECL_ABSTDLG_BASE( AbstractScDPNumGroupDlg_Impl, ScDPNumGroupDlg )
     331                 :            :     virtual ScDPNumGroupInfo GetGroupInfo() const;
     332                 :            : };
     333                 :            : 
     334                 :            : class AbstractScDPDateGroupDlg_Impl : public AbstractScDPDateGroupDlg
     335                 :            : {
     336                 :          0 :     DECL_ABSTDLG_BASE( AbstractScDPDateGroupDlg_Impl, ScDPDateGroupDlg )
     337                 :            :     virtual ScDPNumGroupInfo GetGroupInfo() const;
     338                 :            :     virtual sal_Int32 GetDatePart() const;
     339                 :            : };
     340                 :            : 
     341                 :            : class AbstractScDPShowDetailDlg_Impl : public AbstractScDPShowDetailDlg
     342                 :            : {
     343                 :          0 :     DECL_ABSTDLG_BASE( AbstractScDPShowDetailDlg_Impl, ScDPShowDetailDlg)
     344                 :            :     virtual String GetDimensionName() const;
     345                 :            : };
     346                 :            : 
     347                 :            : class AbstractScNewScenarioDlg_Impl : public AbstractScNewScenarioDlg  //add for ScNewScenarioDlg
     348                 :            : {
     349                 :          0 :     DECL_ABSTDLG_BASE( AbstractScNewScenarioDlg_Impl, ScNewScenarioDlg )
     350                 :            :     virtual void SetScenarioData( const rtl::OUString& rName, const rtl::OUString& rComment,
     351                 :            :                             const Color& rColor, sal_uInt16 nFlags );
     352                 :            : 
     353                 :            :     virtual void GetScenarioData( rtl::OUString& rName, rtl::OUString& rComment,
     354                 :            :                             Color& rColor, sal_uInt16& rFlags ) const;
     355                 :            : };
     356                 :            : 
     357                 :            : class AbstractScShowTabDlg_Impl : public AbstractScShowTabDlg  //add for ScShowTabDlg
     358                 :            : {
     359                 :          0 :     DECL_ABSTDLG_BASE(AbstractScShowTabDlg_Impl,ScShowTabDlg)
     360                 :            :     virtual void    Insert( const String& rString, sal_Bool bSelected );
     361                 :            :     virtual sal_uInt16  GetSelectEntryCount() const;
     362                 :            :     virtual void SetDescription(const String& rTitle, const String& rFixedText, const rtl::OString& sDlgHelpId, const rtl::OString& sLbHelpId );
     363                 :            :     virtual String  GetSelectEntry(sal_uInt16 nPos) const;
     364                 :            :     virtual sal_uInt16  GetSelectEntryPos(sal_uInt16 nPos) const;
     365                 :            : };
     366                 :            : 
     367                 :            : class AbstractScStringInputDlg_Impl :  public AbstractScStringInputDlg  //add for ScStringInputDlg
     368                 :            : {
     369                 :          0 :     DECL_ABSTDLG_BASE( AbstractScStringInputDlg_Impl, ScStringInputDlg )
     370                 :            :     virtual void GetInputString( rtl::OUString& rString ) const;
     371                 :            : };
     372                 :            : 
     373                 :            : class AbstractScTabBgColorDlg_Impl :  public AbstractScTabBgColorDlg  //add for ScTabBgColorDlg
     374                 :            : {
     375                 :          0 :     DECL_ABSTDLG_BASE( AbstractScTabBgColorDlg_Impl, ScTabBgColorDlg )
     376                 :            :     virtual void GetSelectedColor( Color& rColor ) const;
     377                 :            : };
     378                 :            : 
     379                 :            : class AbstractScImportOptionsDlg_Impl : public AbstractScImportOptionsDlg  //add for ScImportOptionsDlg
     380                 :            : {
     381                 :          0 :     DECL_ABSTDLG_BASE( AbstractScImportOptionsDlg_Impl, ScImportOptionsDlg)
     382                 :            :     virtual void GetImportOptions( ScImportOptions& rOptions ) const;
     383                 :            : };
     384                 :            : 
     385                 :            : class AbstractScTextImportOptionsDlg_Impl : public AbstractScTextImportOptionsDlg
     386                 :            : {
     387                 :          0 :     DECL_ABSTDLG_BASE( AbstractScTextImportOptionsDlg_Impl, ScTextImportOptionsDlg)
     388                 :            :     virtual LanguageType GetLanguageType() const;
     389                 :            :     virtual bool IsDateConversionSet() const;
     390                 :            : };
     391                 :            : 
     392                 :            : //add for ScAttrDlg , ScHFEditDlg, ScStyleDlg, ScSubTotalDlg, ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg
     393                 :            : class AbstractTabDialog_Impl : public SfxAbstractTabDialog
     394                 :            : {
     395                 :          0 :     DECL_ABSTDLG_BASE( AbstractTabDialog_Impl,SfxTabDialog )
     396                 :            :     virtual void                SetCurPageId( sal_uInt16 nId );
     397                 :            :     virtual const SfxItemSet*   GetOutputItemSet() const;
     398                 :            :     virtual const sal_uInt16*       GetInputRanges( const SfxItemPool& pItem );
     399                 :            :     virtual void                SetInputSet( const SfxItemSet* pInSet );
     400                 :            :         //From class Window.
     401                 :            :     virtual void        SetText( const XubString& rStr );
     402                 :            :     virtual String      GetText() const;
     403                 :            : };
     404                 :            : //------------------------------------------------------------------------
     405                 :            : //AbstractDialogFactory_Impl implementations
     406                 :          0 : class ScAbstractDialogFactory_Impl : public ScAbstractDialogFactory
     407                 :            : {
     408                 :            : 
     409                 :            : public:
     410                 :          0 :     virtual ~ScAbstractDialogFactory_Impl() {}
     411                 :            : 
     412                 :            :     virtual     AbstractScImportAsciiDlg * CreateScImportAsciiDlg( Window* pParent, String aDatName, //add for ScImportAsciiDlg
     413                 :            :                                                                     SvStream* pInStream, int nId,
     414                 :            :                                                                     ScImportAsciiCall eCall);
     415                 :            : 
     416                 :            :     virtual AbstractScTextImportOptionsDlg * CreateScTextImportOptionsDlg( Window* pParent, int nId );
     417                 :            : 
     418                 :            :     virtual     AbstractScAutoFormatDlg * CreateScAutoFormatDlg( Window*                    pParent, //add for ScAutoFormatDlg
     419                 :            :                                                                 ScAutoFormat*               pAutoFormat,
     420                 :            :                                                                 const ScAutoFormatData*    pSelFormatData,
     421                 :            :                                                                 ScDocument*                pDoc,
     422                 :            :                                                                 int nId);
     423                 :            :     virtual AbstractScColRowLabelDlg * CreateScColRowLabelDlg (Window* pParent, //add for ScColRowLabelDlg
     424                 :            :                                                                 int nId,
     425                 :            :                                                                 sal_Bool bCol = false,
     426                 :            :                                                                 sal_Bool bRow = false);
     427                 :            : 
     428                 :            :     virtual VclAbstractDialog * CreateScColOrRowDlg( Window*            pParent, //add for ScColOrRowDlg
     429                 :            :                                                     const String&   rStrTitle,
     430                 :            :                                                     const String&   rStrLabel,
     431                 :            :                                                     int nId,
     432                 :            :                                                     sal_Bool                bColDefault = sal_True );
     433                 :            : 
     434                 :            :     virtual VclAbstractDialog * CreateScSortWarningDlg( Window* pParent, const String& rExtendText, const String& rCurrentText, int nId );
     435                 :            : 
     436                 :            :     virtual AbstractScCondFormatDlg* CreateScCondFormatDlg(Window* pParent, ScDocument* pDoc, const ScConditionalFormat* pFormat,
     437                 :            :                                                                 const ScRangeList& rRange, const ScAddress& rPos, int nId ); //add for ScDataBarSettingsDlg
     438                 :            : 
     439                 :            :     virtual AbstractScCondFormatManagerDlg* CreateScCondFormatMgrDlg(Window* pParent, ScDocument* pDoc, const ScConditionalFormatList* pFormatList,
     440                 :            :                                                                 const ScRangeList& rList, const ScAddress& rPos, int nId );
     441                 :            : 
     442                 :            :     virtual AbstractScDataBarSettingsDlg* CreateScDataBarSetttingsDlg (Window* pParent, ScDocument* pDoc, int nId ); //add for ScDataBarSettingsDlg
     443                 :            : 
     444                 :            :     virtual AbstractScDataPilotDatabaseDlg * CreateScDataPilotDatabaseDlg (Window* pParent ,int nId ); //add for ScDataPilotDatabaseDlg
     445                 :            : 
     446                 :            :     virtual AbstractScDataPilotSourceTypeDlg * CreateScDataPilotSourceTypeDlg (  Window* pParent, sal_Bool bEnableExternal, int nId ) ; //add for ScDataPilotSourceTypeDlg
     447                 :            : 
     448                 :            :     virtual AbstractScDataPilotServiceDlg * CreateScDataPilotServiceDlg( Window* pParent, //add for ScDataPilotServiceDlg
     449                 :            :                                                                         const com::sun::star::uno::Sequence<rtl::OUString>& rServices,
     450                 :            :                                                                         int nId );
     451                 :            :     virtual AbstractScDeleteCellDlg * CreateScDeleteCellDlg( Window* pParent, int nId,
     452                 :            :                                                             sal_Bool bDisallowCellMove = false ); //add for ScDeleteCellDlg
     453                 :            : 
     454                 :            :     //for dataform
     455                 :            :     virtual AbstractScDataFormDlg * CreateScDataFormDlg( Window* pParent, int nId, ScTabViewShell*      pTabViewShell); //add for ScDeleteCellDlg
     456                 :            : 
     457                 :            :     virtual AbstractScDeleteContentsDlg * CreateScDeleteContentsDlg(Window* pParent,int nId, //add for ScDeleteContentsDlg
     458                 :            :                                                                  sal_uInt16  nCheckDefaults = 0 );
     459                 :            : 
     460                 :            :     virtual AbstractScFillSeriesDlg * CreateScFillSeriesDlg( Window*        pParent, //add for ScFillSeriesDlg
     461                 :            :                                                             ScDocument& rDocument,
     462                 :            :                                                             FillDir     eFillDir,
     463                 :            :                                                             FillCmd     eFillCmd,
     464                 :            :                                                             FillDateCmd eFillDateCmd,
     465                 :            :                                                             String          aStartStr,
     466                 :            :                                                             double          fStep,
     467                 :            :                                                             double          fMax,
     468                 :            :                                                             sal_uInt16          nPossDir,
     469                 :            :                                                             int nId);
     470                 :            :     virtual AbstractScGroupDlg * CreateAbstractScGroupDlg( Window* pParent, //add for ScGroupDlg
     471                 :            :                                                             sal_uInt16  nResId,
     472                 :            :                                                             int nId,
     473                 :            :                                                             sal_Bool    bUnGroup = false,
     474                 :            :                                                             sal_Bool    bRows    = sal_True  );
     475                 :            : 
     476                 :            :     virtual AbstractScInsertCellDlg * CreateScInsertCellDlg( Window* pParent, //add for ScInsertCellDlg
     477                 :            :                                                                 int nId,
     478                 :            :                                                             sal_Bool bDisallowCellMove = false );
     479                 :            : 
     480                 :            :     virtual AbstractScInsertContentsDlg * CreateScInsertContentsDlg( Window*        pParent, //add for ScInsertContentsDlg
     481                 :            :                                                                     int nId,
     482                 :            :                                                                     sal_uInt16          nCheckDefaults = 0,
     483                 :            :                                                                     const String*   pStrTitle = NULL );
     484                 :            : 
     485                 :            :     virtual AbstractScInsertTableDlg * CreateScInsertTableDlg ( Window* pParent, ScViewData& rViewData,  //add for ScInsertTableDlg
     486                 :            :                                                                 SCTAB nTabCount, bool bFromFile, int nId);
     487                 :            : 
     488                 :            :     virtual AbstractScSelEntryDlg * CreateScSelEntryDlg ( Window* pParent, // add for ScSelEntryDlg
     489                 :            :                                                             sal_uInt16  nResId,
     490                 :            :                                                         const String& aTitle,
     491                 :            :                                                         const String& aLbTitle,
     492                 :            :                                                         const std::vector<String> &rEntryList,
     493                 :            :                                                             int nId );
     494                 :            : 
     495                 :            :     virtual AbstractScLinkedAreaDlg * CreateScLinkedAreaDlg (  Window* pParent, //add for ScLinkedAreaDlg
     496                 :            :                                                                 int nId);
     497                 :            : 
     498                 :            :     virtual AbstractScMetricInputDlg * CreateScMetricInputDlg (  Window*        pParent, //add for ScMetricInputDlg
     499                 :            :                                                                 sal_uInt16      nResId,     // Ableitung fuer jeden Dialog!
     500                 :            :                                                                 long            nCurrent,
     501                 :            :                                                                 long            nDefault,
     502                 :            :                                                                 int nId ,
     503                 :            :                                                                 FieldUnit       eFUnit    = FUNIT_MM,
     504                 :            :                                                                 sal_uInt16      nDecimals = 2,
     505                 :            :                                                                 long            nMaximum  = 1000,
     506                 :            :                                                                 long            nMinimum  = 0,
     507                 :            :                                                                 long            nFirst    = 1,
     508                 :            :                                                                 long          nLast     = 100 );
     509                 :            : 
     510                 :            :     virtual AbstractScMoveTableDlg * CreateScMoveTableDlg(  Window* pParent,  //add for ScMoveTableDlg
     511                 :            :                                                             const String& rDefault,
     512                 :            :                                                             int nId );
     513                 :            : 
     514                 :            :     virtual AbstractScNameCreateDlg * CreateScNameCreateDlg ( Window * pParent, sal_uInt16 nFlags, int nId ); //add for ScNameCreateDlg
     515                 :            : 
     516                 :            :     virtual AbstractScNamePasteDlg * CreateScNamePasteDlg ( Window * pParent, ScDocShell* pShell, int nId , bool bInsList=true ); //add for ScNamePasteDlg
     517                 :            : 
     518                 :            :     virtual AbstractScPivotFilterDlg * CreateScPivotFilterDlg ( Window* pParent, //add for ScPivotFilterDlg
     519                 :            :                                                                 const SfxItemSet&   rArgSet, sal_uInt16 nSourceTab , int nId );
     520                 :            : 
     521                 :            :     virtual AbstractScDPFunctionDlg * CreateScDPFunctionDlg( Window* pParent, int nId,
     522                 :            :                                                                 const ScDPLabelDataVec& rLabelVec,
     523                 :            :                                                                 const ScDPLabelData& rLabelData,
     524                 :            :                                                                 const ScDPFuncData& rFuncData );
     525                 :            : 
     526                 :            :     virtual AbstractScDPSubtotalDlg * CreateScDPSubtotalDlg( Window* pParent, int nId,
     527                 :            :                                                                 ScDPObject& rDPObj,
     528                 :            :                                                                 const ScDPLabelData& rLabelData,
     529                 :            :                                                                 const ScDPFuncData& rFuncData,
     530                 :            :                                                                 const ScDPNameVec& rDataFields,
     531                 :            :                                                                 bool bEnableLayout );
     532                 :            : 
     533                 :            :     virtual AbstractScDPNumGroupDlg * CreateScDPNumGroupDlg( Window* pParent,
     534                 :            :                                                                 int nId,
     535                 :            :                                                                 const ScDPNumGroupInfo& rInfo );
     536                 :            : 
     537                 :            :     virtual AbstractScDPDateGroupDlg * CreateScDPDateGroupDlg( Window* pParent,
     538                 :            :                                                                 int nId,
     539                 :            :                                                                 const ScDPNumGroupInfo& rInfo,
     540                 :            :                                                                 sal_Int32 nDatePart,
     541                 :            :                                                                 const Date& rNullDate );
     542                 :            : 
     543                 :            :     virtual AbstractScDPShowDetailDlg * CreateScDPShowDetailDlg( Window* pParent, int nId,
     544                 :            :                                                                 ScDPObject& rDPObj,
     545                 :            :                                                                 sal_uInt16 nOrient );
     546                 :            : 
     547                 :            :     virtual AbstractScNewScenarioDlg * CreateScNewScenarioDlg ( Window* pParent, const String& rName, //add for ScNewScenarioDlg
     548                 :            :                                                                 int nId,
     549                 :            :                                                                 sal_Bool bEdit = false, sal_Bool bSheetProtected = false );
     550                 :            :     virtual AbstractScShowTabDlg * CreateScShowTabDlg ( Window* pParent, int nId ); //add for ScShowTabDlg
     551                 :            : 
     552                 :            :     virtual AbstractScStringInputDlg * CreateScStringInputDlg (  Window* pParent, //add for ScStringInputDlg
     553                 :            :                                                                 const String& rTitle,
     554                 :            :                                                                 const String& rEditTitle,
     555                 :            :                                                                 const String& rDefault,
     556                 :            :                                                                 const rtl::OString& sHelpId, const rtl::OString& sEditHelpId,
     557                 :            :                                                                 int nId );
     558                 :            : 
     559                 :            :     virtual AbstractScTabBgColorDlg * CreateScTabBgColorDlg (  Window* pParent, //add for ScStringInputDlg
     560                 :            :                                                                 const String& rTitle, //Dialog Title
     561                 :            :                                                                 const String& rTabBgColorNoColorText, //Label for no tab color
     562                 :            :                                                                 const Color& rDefaultColor, //Currently selected Color
     563                 :            :                                                                 const rtl::OString& sHelpId ,
     564                 :            :                                                                 int nId );
     565                 :            : 
     566                 :            :     virtual AbstractScImportOptionsDlg * CreateScImportOptionsDlg ( Window*                 pParent, //add for ScImportOptionsDlg
     567                 :            :                                                                     int nId,
     568                 :            :                                                                     sal_Bool                    bAscii = sal_True,
     569                 :            :                                                                     const ScImportOptions*  pOptions = NULL,
     570                 :            :                                                                     const String*           pStrTitle = NULL,
     571                 :            :                                                                     sal_Bool                    bMultiByte = false,
     572                 :            :                                                                     sal_Bool                    bOnlyDbtoolsEncodings = false,
     573                 :            :                                                                     sal_Bool                    bImport = sal_True );
     574                 :            :     virtual SfxAbstractTabDialog * CreateScAttrDlg( SfxViewFrame*    pFrame, //add for ScAttrDlg
     575                 :            :                                                     Window*          pParent,
     576                 :            :                                                     const SfxItemSet* pCellAttrs,
     577                 :            :                                                     int nId);
     578                 :            : 
     579                 :            :     virtual SfxAbstractTabDialog * CreateScHFEditDlg( SfxViewFrame*     pFrame, //add for ScHFEditDlg
     580                 :            :                                                     Window*         pParent,
     581                 :            :                                                     const SfxItemSet&   rCoreSet,
     582                 :            :                                                     const String&       rPageStyle,
     583                 :            :                                                     int nId,
     584                 :            :                                                     sal_uInt16              nResId = RID_SCDLG_HFEDIT );
     585                 :            : 
     586                 :            :     virtual SfxAbstractTabDialog * CreateScStyleDlg( Window*                pParent,//add for ScStyleDlg
     587                 :            :                                                     SfxStyleSheetBase&  rStyleBase,
     588                 :            :                                                     sal_uInt16              nRscId,
     589                 :            :                                                     int nId);
     590                 :            : 
     591                 :            :     virtual SfxAbstractTabDialog * CreateScSubTotalDlg( Window*             pParent, //add for ScSubTotalDlg
     592                 :            :                                                         const SfxItemSet*   pArgSet,
     593                 :            :                                                         int nId);
     594                 :            :     virtual SfxAbstractTabDialog * CreateScCharDlg( Window* pParent, const SfxItemSet* pAttr,//add for ScCharDlg
     595                 :            :                                                     const SfxObjectShell* pDocShell, int nId );
     596                 :            : 
     597                 :            :     virtual SfxAbstractTabDialog * CreateScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ,//add for ScParagraphDlg
     598                 :            :                                                             int nId );
     599                 :            : 
     600                 :            :     virtual SfxAbstractTabDialog * CreateScValidationDlg( Window* pParent, //add for ScValidationDlg
     601                 :            :                                                         const SfxItemSet* pArgSet,int nId, ScTabViewShell *pTabVwSh  );
     602                 :            : 
     603                 :            :     virtual SfxAbstractTabDialog * CreateScSortDlg( Window*          pParent, //add for ScSortDlg
     604                 :            :                                                     const SfxItemSet* pArgSet,int nId );
     605                 :            :     // For TabPage
     606                 :            :     virtual CreateTabPage               GetTabPageCreatorFunc( sal_uInt16 nId );
     607                 :            : 
     608                 :            :     virtual GetTabPageRanges            GetTabPageRangesFunc( sal_uInt16 nId );
     609                 :            : 
     610                 :            : };
     611                 :            : 
     612                 :            : #endif
     613                 :            : 
     614                 :            : 
     615                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10