LCOV - code coverage report
Current view: top level - sc/source/ui/attrdlg - scdlgfact.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 657 0.0 %
Date: 2012-08-25 Functions: 0 256 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                 :            : 
      29                 :            : 
      30                 :            : #undef SC_DLLIMPLEMENTATION
      31                 :            : 
      32                 :            : #include "scdlgfact.hxx"
      33                 :            : 
      34                 :            : #include "sc.hrc"
      35                 :            : #include "scuiasciiopt.hxx"
      36                 :            : #include "scuiautofmt.hxx"
      37                 :            : #include "corodlg.hxx"
      38                 :            : #include "crdlg.hxx"
      39                 :            : #include "dapidata.hxx"
      40                 :            : #include "dapitype.hxx"
      41                 :            : #include "delcldlg.hxx"
      42                 :            : #include "delcodlg.hxx"
      43                 :            : #include "filldlg.hxx"
      44                 :            : #include "groupdlg.hxx"
      45                 :            : #include "inscldlg.hxx"
      46                 :            : #include "inscodlg.hxx"
      47                 :            : #include "instbdlg.hxx"
      48                 :            : #include "lbseldlg.hxx"
      49                 :            : #include "linkarea.hxx"
      50                 :            : #include "mtrindlg.hxx"
      51                 :            : #include "mvtabdlg.hxx"
      52                 :            : #include "namecrea.hxx"
      53                 :            : #include "namepast.hxx"
      54                 :            : #include "namedefdlg.hxx"
      55                 :            : #include "pfiltdlg.hxx"
      56                 :            : #include "pvfundlg.hxx"
      57                 :            : #include "dpgroupdlg.hxx"
      58                 :            : #include "scendlg.hxx"
      59                 :            : #include "shtabdlg.hxx"
      60                 :            : #include "strindlg.hxx"
      61                 :            : #include "tabbgcolordlg.hxx"
      62                 :            : #include "scuiimoptdlg.hxx"
      63                 :            : #include "attrdlg.hxx"
      64                 :            : #include "hfedtdlg.hxx"
      65                 :            : #include "styledlg.hxx"
      66                 :            : #include "subtdlg.hxx"
      67                 :            : #include "textdlgs.hxx"
      68                 :            : #include "validate.hxx"
      69                 :            : #include "validate.hrc"
      70                 :            : #include "sortdlg.hxx"
      71                 :            : #include "textimportoptions.hxx"
      72                 :            : #include "opredlin.hxx"
      73                 :            : #include "tpcalc.hxx"
      74                 :            : #include "tpprint.hxx"
      75                 :            : #include "tpstat.hxx"
      76                 :            : #include "tpusrlst.hxx"
      77                 :            : #include "tpview.hxx"
      78                 :            : #include "tpformula.hxx"
      79                 :            : #include "datafdlg.hxx"
      80                 :            : #include "tpcompatibility.hxx"
      81                 :            : #include "tpdefaults.hxx"
      82                 :            : #include "colorformat.hxx"
      83                 :            : #include "condformatdlg.hxx"
      84                 :            : #include "condformatmgr.hxx"
      85                 :            : 
      86                 :            : // ause
      87                 :            : #include "editutil.hxx"
      88                 :            : 
      89                 :          0 : IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl);
      90                 :          0 : IMPL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl);
      91                 :          0 : IMPL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl);
      92                 :          0 : IMPL_ABSTDLG_BASE(AbstractScColRowLabelDlg_Impl);
      93                 :          0 : IMPL_ABSTDLG_BASE(AbstractScCondFormatDlg_Impl);
      94                 :          0 : IMPL_ABSTDLG_BASE(AbstractScCondFormatManagerDlg_Impl);
      95                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDataBarSettingsDlg_Impl);
      96                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDataPilotDatabaseDlg_Impl);
      97                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl);
      98                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDataPilotServiceDlg_Impl);
      99                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDeleteCellDlg_Impl);
     100                 :            : //for dataform
     101                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDataFormDlg_Impl);
     102                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDeleteContentsDlg_Impl);
     103                 :          0 : IMPL_ABSTDLG_BASE(AbstractScFillSeriesDlg_Impl);
     104                 :          0 : IMPL_ABSTDLG_BASE(AbstractScGroupDlg_Impl);
     105                 :          0 : IMPL_ABSTDLG_BASE(AbstractScInsertCellDlg_Impl);
     106                 :          0 : IMPL_ABSTDLG_BASE(AbstractScInsertContentsDlg_Impl);
     107                 :          0 : IMPL_ABSTDLG_BASE(AbstractScInsertTableDlg_Impl);
     108                 :          0 : IMPL_ABSTDLG_BASE(AbstractScSelEntryDlg_Impl);
     109                 :          0 : IMPL_ABSTDLG2_BASE(AbstractScLinkedAreaDlg_Impl);
     110                 :          0 : IMPL_ABSTDLG_BASE(AbstractScMetricInputDlg_Impl);
     111                 :          0 : IMPL_ABSTDLG_BASE(AbstractScMoveTableDlg_Impl);
     112                 :          0 : IMPL_ABSTDLG_BASE(AbstractScNameCreateDlg_Impl);
     113                 :          0 : IMPL_ABSTDLG_BASE(AbstractScNamePasteDlg_Impl);
     114                 :          0 : IMPL_ABSTDLG_BASE(AbstractScPivotFilterDlg_Impl);
     115                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDPFunctionDlg_Impl);
     116                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDPSubtotalDlg_Impl);
     117                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDPNumGroupDlg_Impl);
     118                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDPDateGroupDlg_Impl);
     119                 :          0 : IMPL_ABSTDLG_BASE(AbstractScDPShowDetailDlg_Impl);
     120                 :          0 : IMPL_ABSTDLG_BASE(AbstractScNewScenarioDlg_Impl);
     121                 :          0 : IMPL_ABSTDLG_BASE(AbstractScShowTabDlg_Impl);
     122                 :          0 : IMPL_ABSTDLG_BASE(AbstractScStringInputDlg_Impl);
     123                 :          0 : IMPL_ABSTDLG_BASE(AbstractScTabBgColorDlg_Impl);
     124                 :          0 : IMPL_ABSTDLG_BASE(AbstractScImportOptionsDlg_Impl);
     125                 :          0 : IMPL_ABSTDLG_BASE(AbstractScTextImportOptionsDlg_Impl);
     126                 :          0 : IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl);
     127                 :            : 
     128                 :            : // AbstractTabDialog_Impl begin
     129                 :          0 : void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
     130                 :            : {
     131                 :          0 :     pDlg->SetCurPageId( nId );
     132                 :          0 : }
     133                 :            : 
     134                 :          0 : const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
     135                 :            : {
     136                 :          0 :     return pDlg->GetOutputItemSet();
     137                 :            : }
     138                 :            : 
     139                 :          0 : const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
     140                 :            : {
     141                 :          0 :     return pDlg->GetInputRanges( pItem );
     142                 :            : }
     143                 :            : 
     144                 :          0 : void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
     145                 :            : {
     146                 :          0 :      pDlg->SetInputSet( pInSet );
     147                 :          0 : }
     148                 :            : //From class Window.
     149                 :          0 : void AbstractTabDialog_Impl::SetText( const XubString& rStr )
     150                 :            : {
     151                 :          0 :     pDlg->SetText( rStr );
     152                 :          0 : }
     153                 :          0 : String AbstractTabDialog_Impl::GetText() const
     154                 :            : {
     155                 :          0 :     return pDlg->GetText();
     156                 :            : }
     157                 :            : 
     158                 :            : // AbstractScImportAsciiDlg_Impl begin
     159                 :          0 : void AbstractScImportAsciiDlg_Impl::GetOptions( ScAsciiOptions& rOpt )
     160                 :            : {
     161                 :          0 :     pDlg->GetOptions( rOpt );
     162                 :          0 : }
     163                 :            : 
     164                 :          0 : void AbstractScImportAsciiDlg_Impl::SaveParameters()
     165                 :            : {
     166                 :          0 :     pDlg->SaveParameters();
     167                 :          0 : }
     168                 :            : 
     169                 :            : // AbstractScImportAsciiDlg_Impl end
     170                 :            : 
     171                 :            : //AbstractScAutoFormatDlg_Impl begin
     172                 :          0 : sal_uInt16 AbstractScAutoFormatDlg_Impl::GetIndex() const
     173                 :            : {
     174                 :          0 :     return pDlg->GetIndex();
     175                 :            : }
     176                 :            : 
     177                 :          0 : String AbstractScAutoFormatDlg_Impl::GetCurrFormatName()
     178                 :            : {
     179                 :          0 :     return pDlg->GetCurrFormatName();
     180                 :            : }
     181                 :            : 
     182                 :            : //AbstractScAutoFormatDlg_Impl end
     183                 :            : 
     184                 :            : 
     185                 :            : 
     186                 :            : //AbstractScColRowLabelDlg_Impl begin
     187                 :          0 : sal_Bool  AbstractScColRowLabelDlg_Impl::IsCol()
     188                 :            : {
     189                 :          0 :     return  pDlg->IsCol();
     190                 :            : }
     191                 :          0 : sal_Bool AbstractScColRowLabelDlg_Impl::IsRow()
     192                 :            : {
     193                 :          0 :     return pDlg->IsRow();
     194                 :            : }
     195                 :            : 
     196                 :            : //AbstractScColRowLabelDlg_Impl end
     197                 :            : 
     198                 :            : 
     199                 :            : //AbstractScDataPilotDatabaseDlg_Impl begin
     200                 :            : 
     201                 :            : 
     202                 :          0 : void AbstractScDataPilotDatabaseDlg_Impl::GetValues( ScImportSourceDesc& rDesc )
     203                 :            : {
     204                 :          0 :     pDlg->GetValues(rDesc);
     205                 :          0 : }
     206                 :            : 
     207                 :            : //AbstractScDataPilotDatabaseDlg_Impl end
     208                 :            : 
     209                 :            : //AbstractScDataPilotSourceTypeDlg_Impl begin
     210                 :            : 
     211                 :          0 : bool AbstractScDataPilotSourceTypeDlg_Impl::IsDatabase() const
     212                 :            : {
     213                 :          0 :     return pDlg->IsDatabase();
     214                 :            : }
     215                 :            : 
     216                 :          0 : bool AbstractScDataPilotSourceTypeDlg_Impl::IsExternal() const
     217                 :            : {
     218                 :          0 :     return pDlg->IsExternal();
     219                 :            : }
     220                 :            : 
     221                 :          0 : bool AbstractScDataPilotSourceTypeDlg_Impl::IsNamedRange() const
     222                 :            : {
     223                 :          0 :     return pDlg->IsNamedRange();
     224                 :            : }
     225                 :            : 
     226                 :          0 : rtl::OUString AbstractScDataPilotSourceTypeDlg_Impl::GetSelectedNamedRange() const
     227                 :            : {
     228                 :          0 :     return pDlg->GetSelectedNamedRange();
     229                 :            : }
     230                 :            : 
     231                 :          0 : void AbstractScDataPilotSourceTypeDlg_Impl::AppendNamedRange(const ::rtl::OUString& rName)
     232                 :            : {
     233                 :          0 :     pDlg->AppendNamedRange(rName);
     234                 :          0 : }
     235                 :            : 
     236                 :            : //AbstractScDataPilotSourceTypeDlg_Impl end
     237                 :            : 
     238                 :            : 
     239                 :            : // AbstractScDataPilotServiceDlg_Impl begin
     240                 :          0 : String AbstractScDataPilotServiceDlg_Impl::GetServiceName() const
     241                 :            : {
     242                 :          0 :     return pDlg->GetServiceName();
     243                 :            : }
     244                 :            : 
     245                 :          0 : String AbstractScDataPilotServiceDlg_Impl::GetParSource() const
     246                 :            : {
     247                 :          0 :     return pDlg->GetParSource();
     248                 :            : }
     249                 :          0 : String AbstractScDataPilotServiceDlg_Impl::GetParName() const
     250                 :            : {
     251                 :          0 :     return pDlg->GetParName();
     252                 :            : }
     253                 :          0 : String AbstractScDataPilotServiceDlg_Impl::GetParUser() const
     254                 :            : {
     255                 :          0 :     return pDlg->GetParUser();
     256                 :            : }
     257                 :          0 : String AbstractScDataPilotServiceDlg_Impl::GetParPass() const
     258                 :            : {
     259                 :          0 :     return pDlg->GetParPass();
     260                 :            : }
     261                 :            : 
     262                 :            : //AbstractScDataPilotServiceDlg_Impl end
     263                 :            : 
     264                 :            : //AbstractScDeleteCellDlg_Impl begin
     265                 :          0 : DelCellCmd AbstractScDeleteCellDlg_Impl::GetDelCellCmd() const
     266                 :            : {
     267                 :          0 :     return pDlg->GetDelCellCmd();
     268                 :            : }
     269                 :            : //AbstractScDeleteCellDlg_Impl end
     270                 :            : 
     271                 :            : 
     272                 :          0 : void AbstractScDeleteContentsDlg_Impl::DisableObjects()
     273                 :            : {
     274                 :          0 :     pDlg->DisableObjects();
     275                 :          0 : }
     276                 :          0 : sal_uInt16   AbstractScDeleteContentsDlg_Impl::GetDelContentsCmdBits() const
     277                 :            : {
     278                 :          0 :     return pDlg->GetDelContentsCmdBits();
     279                 :            : }
     280                 :            : 
     281                 :            : 
     282                 :            : 
     283                 :          0 : FillDir AbstractScFillSeriesDlg_Impl::GetFillDir() const
     284                 :            : {
     285                 :          0 :     return pDlg->GetFillDir();
     286                 :            : }
     287                 :            : 
     288                 :          0 : FillCmd AbstractScFillSeriesDlg_Impl::GetFillCmd() const
     289                 :            : {
     290                 :          0 :     return pDlg->GetFillCmd();
     291                 :            : }
     292                 :            : 
     293                 :          0 : FillDateCmd AbstractScFillSeriesDlg_Impl::GetFillDateCmd() const
     294                 :            : {
     295                 :          0 :     return pDlg->GetFillDateCmd();
     296                 :            : }
     297                 :            : 
     298                 :          0 : double  AbstractScFillSeriesDlg_Impl::GetStart() const
     299                 :            : {
     300                 :          0 :     return pDlg->GetStart();
     301                 :            : }
     302                 :          0 : double  AbstractScFillSeriesDlg_Impl::GetStep() const
     303                 :            : {
     304                 :          0 :     return pDlg->GetStep();
     305                 :            : }
     306                 :          0 : double  AbstractScFillSeriesDlg_Impl::GetMax() const
     307                 :            : {
     308                 :          0 :     return pDlg->GetMax();
     309                 :            : }
     310                 :          0 : String  AbstractScFillSeriesDlg_Impl::GetStartStr() const
     311                 :            : {
     312                 :          0 :     return pDlg->GetStartStr();
     313                 :            : }
     314                 :          0 : void    AbstractScFillSeriesDlg_Impl::SetEdStartValEnabled(sal_Bool bFlag)
     315                 :            : {
     316                 :          0 :     pDlg->SetEdStartValEnabled(bFlag);
     317                 :          0 : }
     318                 :            : 
     319                 :            : 
     320                 :            : 
     321                 :          0 : sal_Bool AbstractScGroupDlg_Impl::GetColsChecked() const
     322                 :            : {
     323                 :          0 :     return pDlg->GetColsChecked();
     324                 :            : }
     325                 :            : 
     326                 :            : 
     327                 :            : 
     328                 :            : 
     329                 :          0 : InsCellCmd  AbstractScInsertCellDlg_Impl::GetInsCellCmd() const
     330                 :            : {
     331                 :          0 :     return pDlg->GetInsCellCmd();
     332                 :            : }
     333                 :            : 
     334                 :            : 
     335                 :            : 
     336                 :            : 
     337                 :            : 
     338                 :          0 : sal_uInt16 AbstractScInsertContentsDlg_Impl::GetInsContentsCmdBits() const
     339                 :            : {
     340                 :          0 :     return pDlg->GetInsContentsCmdBits();
     341                 :            : }
     342                 :            : 
     343                 :            : 
     344                 :          0 : sal_uInt16  AbstractScInsertContentsDlg_Impl::GetFormulaCmdBits() const
     345                 :            : {
     346                 :          0 :     return pDlg->GetFormulaCmdBits();
     347                 :            : }
     348                 :          0 : sal_Bool    AbstractScInsertContentsDlg_Impl::IsSkipEmptyCells() const
     349                 :            : {
     350                 :          0 :     return pDlg->IsSkipEmptyCells();
     351                 :            : }
     352                 :          0 : sal_Bool    AbstractScInsertContentsDlg_Impl::IsLink() const
     353                 :            : {
     354                 :          0 :     return pDlg->IsLink();
     355                 :            : }
     356                 :          0 : void    AbstractScInsertContentsDlg_Impl::SetFillMode( sal_Bool bSet )
     357                 :            : {
     358                 :          0 :     pDlg->SetFillMode( bSet );
     359                 :          0 : }
     360                 :            : 
     361                 :          0 : void    AbstractScInsertContentsDlg_Impl::SetOtherDoc( sal_Bool bSet )
     362                 :            : {
     363                 :          0 :     pDlg->SetOtherDoc( bSet );
     364                 :          0 : }
     365                 :            : 
     366                 :          0 : sal_Bool    AbstractScInsertContentsDlg_Impl::IsTranspose() const
     367                 :            : {
     368                 :          0 :     return pDlg->IsTranspose();
     369                 :            : }
     370                 :          0 : void    AbstractScInsertContentsDlg_Impl::SetChangeTrack( sal_Bool bSet )
     371                 :            : {
     372                 :          0 :     pDlg->SetChangeTrack( bSet );
     373                 :          0 : }
     374                 :          0 : void    AbstractScInsertContentsDlg_Impl::SetCellShiftDisabled( int nDisable )
     375                 :            : {
     376                 :          0 :     pDlg->SetCellShiftDisabled( nDisable );
     377                 :          0 : }
     378                 :            : 
     379                 :          0 : InsCellCmd  AbstractScInsertContentsDlg_Impl::GetMoveMode()
     380                 :            : {
     381                 :          0 :     return pDlg->GetMoveMode();
     382                 :            : }
     383                 :            : 
     384                 :            : 
     385                 :            : 
     386                 :            : 
     387                 :          0 : sal_Bool AbstractScInsertTableDlg_Impl::GetTablesFromFile()
     388                 :            : {
     389                 :          0 :     return pDlg->GetTablesFromFile();
     390                 :            : }
     391                 :            : 
     392                 :          0 : sal_Bool    AbstractScInsertTableDlg_Impl::GetTablesAsLink()
     393                 :            : {
     394                 :          0 :     return pDlg->GetTablesAsLink();
     395                 :            : }
     396                 :          0 : const String*   AbstractScInsertTableDlg_Impl::GetFirstTable( sal_uInt16* pN )
     397                 :            : {
     398                 :          0 :     return pDlg->GetFirstTable( pN );
     399                 :            : }
     400                 :          0 : ScDocShell*     AbstractScInsertTableDlg_Impl::GetDocShellTables()
     401                 :            : {
     402                 :          0 :     return pDlg->GetDocShellTables();
     403                 :            : }
     404                 :          0 : sal_Bool    AbstractScInsertTableDlg_Impl::IsTableBefore()
     405                 :            : {
     406                 :          0 :     return pDlg->IsTableBefore();
     407                 :            : }
     408                 :          0 : sal_uInt16  AbstractScInsertTableDlg_Impl::GetTableCount()
     409                 :            : {
     410                 :          0 :     return pDlg->GetTableCount();
     411                 :            : }
     412                 :          0 : const String*   AbstractScInsertTableDlg_Impl::GetNextTable( sal_uInt16* pN )
     413                 :            : {
     414                 :          0 :     return pDlg->GetNextTable( pN );
     415                 :            : }
     416                 :            : 
     417                 :            : 
     418                 :            : 
     419                 :          0 : String AbstractScSelEntryDlg_Impl::GetSelectEntry() const
     420                 :            : {
     421                 :          0 :     return pDlg->GetSelectEntry();
     422                 :            : }
     423                 :            : 
     424                 :            : 
     425                 :            : 
     426                 :          0 : void AbstractScLinkedAreaDlg_Impl::InitFromOldLink( const String& rFile, const String& rFilter,
     427                 :            :                                         const String& rOptions, const String& rSource,
     428                 :            :                                         sal_uLong nRefresh )
     429                 :            : {
     430                 :          0 :     pDlg->InitFromOldLink( rFile, rFilter, rOptions, rSource, nRefresh);
     431                 :          0 : }
     432                 :            : 
     433                 :          0 : String  AbstractScLinkedAreaDlg_Impl::GetURL()
     434                 :            : {
     435                 :          0 :     return pDlg->GetURL();
     436                 :            : }
     437                 :          0 : String  AbstractScLinkedAreaDlg_Impl::GetFilter()
     438                 :            : {
     439                 :          0 :     return pDlg->GetFilter();
     440                 :            : }
     441                 :          0 : String  AbstractScLinkedAreaDlg_Impl::GetOptions()
     442                 :            : {
     443                 :          0 :     return pDlg->GetOptions();
     444                 :            : }
     445                 :          0 : String  AbstractScLinkedAreaDlg_Impl::GetSource()
     446                 :            : {
     447                 :          0 :     return pDlg->GetSource();
     448                 :            : }
     449                 :          0 : sal_uLong   AbstractScLinkedAreaDlg_Impl::GetRefresh()
     450                 :            : {
     451                 :          0 :     return pDlg->GetRefresh();
     452                 :            : }
     453                 :            : 
     454                 :            : 
     455                 :          0 : ScConditionalFormat* AbstractScCondFormatDlg_Impl::GetConditionalFormat()
     456                 :            : {
     457                 :          0 :     return pDlg->GetConditionalFormat();
     458                 :            : }
     459                 :            : 
     460                 :          0 : ScConditionalFormatList* AbstractScCondFormatManagerDlg_Impl::GetConditionalFormatList()
     461                 :            : {
     462                 :          0 :     return pDlg->GetConditionalFormatList();
     463                 :            : }
     464                 :            : 
     465                 :            : 
     466                 :          0 : long AbstractScMetricInputDlg_Impl::GetInputValue( FieldUnit eUnit ) const
     467                 :            : {
     468                 :            : 
     469                 :          0 :     return pDlg->GetInputValue( eUnit );
     470                 :            : }
     471                 :            : 
     472                 :            : 
     473                 :            : 
     474                 :          0 : sal_uInt16 AbstractScMoveTableDlg_Impl::GetSelectedDocument() const
     475                 :            : {
     476                 :          0 :     return pDlg->GetSelectedDocument();
     477                 :            : }
     478                 :            : 
     479                 :          0 : sal_uInt16  AbstractScMoveTableDlg_Impl::GetSelectedTable() const
     480                 :            : {
     481                 :          0 :     return pDlg->GetSelectedTable();
     482                 :            : }
     483                 :          0 : bool AbstractScMoveTableDlg_Impl::GetCopyTable() const
     484                 :            : {
     485                 :          0 :     return pDlg->GetCopyTable();
     486                 :            : }
     487                 :          0 : bool AbstractScMoveTableDlg_Impl::GetRenameTable() const
     488                 :            : {
     489                 :          0 :     return pDlg->GetRenameTable();
     490                 :            : }
     491                 :          0 : void AbstractScMoveTableDlg_Impl::GetTabNameString( rtl::OUString& rString ) const
     492                 :            : {
     493                 :          0 :     pDlg->GetTabNameString( rString );
     494                 :          0 : }
     495                 :          0 : void    AbstractScMoveTableDlg_Impl::SetForceCopyTable()
     496                 :            : {
     497                 :          0 :     return pDlg->SetForceCopyTable();
     498                 :            : }
     499                 :          0 : void    AbstractScMoveTableDlg_Impl::EnableCopyTable(sal_Bool bFlag)
     500                 :            : {
     501                 :          0 :     return pDlg->EnableCopyTable( bFlag);
     502                 :            : }
     503                 :          0 : void    AbstractScMoveTableDlg_Impl::EnableRenameTable(sal_Bool bFlag)
     504                 :            : {
     505                 :          0 :     return pDlg->EnableRenameTable( bFlag);
     506                 :            : }
     507                 :            : 
     508                 :            : 
     509                 :            : 
     510                 :            : 
     511                 :          0 : sal_uInt16 AbstractScNameCreateDlg_Impl::GetFlags() const
     512                 :            : {
     513                 :          0 :     return pDlg->GetFlags();
     514                 :            : }
     515                 :            : 
     516                 :            : 
     517                 :            : 
     518                 :          0 : std::vector<rtl::OUString> AbstractScNamePasteDlg_Impl::GetSelectedNames() const
     519                 :            : {
     520                 :          0 :     return pDlg->GetSelectedNames();
     521                 :            : }
     522                 :            : 
     523                 :            : 
     524                 :          0 : bool AbstractScNamePasteDlg_Impl::IsAllSelected() const
     525                 :            : {
     526                 :          0 :     return pDlg->IsAllSelected();
     527                 :            : }
     528                 :            : 
     529                 :            : 
     530                 :          0 : const ScQueryItem&   AbstractScPivotFilterDlg_Impl::GetOutputItem()
     531                 :            : {
     532                 :          0 :     return pDlg->GetOutputItem();
     533                 :            : }
     534                 :            : 
     535                 :            : 
     536                 :            : 
     537                 :          0 : sal_uInt16 AbstractScDPFunctionDlg_Impl::GetFuncMask() const
     538                 :            : {
     539                 :          0 :      return pDlg->GetFuncMask();
     540                 :            : }
     541                 :          0 : ::com::sun::star::sheet::DataPilotFieldReference AbstractScDPFunctionDlg_Impl::GetFieldRef() const
     542                 :            : {
     543                 :          0 :     return pDlg->GetFieldRef();
     544                 :            : }
     545                 :            : 
     546                 :            : 
     547                 :            : 
     548                 :          0 : sal_uInt16 AbstractScDPSubtotalDlg_Impl::GetFuncMask() const
     549                 :            : {
     550                 :          0 :      return pDlg->GetFuncMask();
     551                 :            : }
     552                 :          0 : void AbstractScDPSubtotalDlg_Impl::FillLabelData( ScDPLabelData& rLabelData ) const
     553                 :            : {
     554                 :          0 :     pDlg->FillLabelData( rLabelData );
     555                 :          0 : }
     556                 :            : 
     557                 :            : 
     558                 :          0 : ScDPNumGroupInfo AbstractScDPNumGroupDlg_Impl::GetGroupInfo() const
     559                 :            : {
     560                 :          0 :     return pDlg->GetGroupInfo();
     561                 :            : }
     562                 :            : 
     563                 :          0 : ScDPNumGroupInfo AbstractScDPDateGroupDlg_Impl::GetGroupInfo() const
     564                 :            : {
     565                 :          0 :     return pDlg->GetGroupInfo();
     566                 :            : }
     567                 :            : 
     568                 :          0 : sal_Int32 AbstractScDPDateGroupDlg_Impl::GetDatePart() const
     569                 :            : {
     570                 :          0 :     return pDlg->GetDatePart();
     571                 :            : }
     572                 :            : 
     573                 :            : 
     574                 :          0 : String AbstractScDPShowDetailDlg_Impl::GetDimensionName() const
     575                 :            : {
     576                 :          0 :      return pDlg->GetDimensionName();
     577                 :            : }
     578                 :            : 
     579                 :          0 : void AbstractScNewScenarioDlg_Impl::SetScenarioData(
     580                 :            :     const rtl::OUString& rName, const rtl::OUString& rComment, const Color& rColor, sal_uInt16 nFlags )
     581                 :            : {
     582                 :          0 :     pDlg->SetScenarioData(rName, rComment, rColor, nFlags);
     583                 :          0 : }
     584                 :            : 
     585                 :          0 : void AbstractScNewScenarioDlg_Impl::GetScenarioData(
     586                 :            :     rtl::OUString& rName, rtl::OUString& rComment, Color& rColor, sal_uInt16& rFlags ) const
     587                 :            : {
     588                 :          0 :     pDlg->GetScenarioData(rName, rComment, rColor, rFlags);
     589                 :          0 : }
     590                 :            : 
     591                 :          0 : void AbstractScShowTabDlg_Impl::Insert( const String& rString, sal_Bool bSelected )
     592                 :            : {
     593                 :          0 :     pDlg->Insert( rString, bSelected);
     594                 :          0 : }
     595                 :            : 
     596                 :          0 : sal_uInt16  AbstractScShowTabDlg_Impl::GetSelectEntryCount() const
     597                 :            : {
     598                 :          0 :     return pDlg->GetSelectEntryCount();
     599                 :            : }
     600                 :          0 : void    AbstractScShowTabDlg_Impl::SetDescription(
     601                 :            :                 const String& rTitle, const String& rFixedText,
     602                 :            :                 const rtl::OString& sDlgHelpId, const rtl::OString& sLbHelpId )
     603                 :            : {
     604                 :          0 :     pDlg->SetDescription( rTitle, rFixedText, sDlgHelpId, sLbHelpId );
     605                 :          0 : }
     606                 :          0 : sal_uInt16  AbstractScShowTabDlg_Impl::GetSelectEntryPos(sal_uInt16 nPos) const
     607                 :            : {
     608                 :          0 :     return pDlg->GetSelectEntryPos( nPos);
     609                 :            : }
     610                 :          0 : String   AbstractScShowTabDlg_Impl::GetSelectEntry(sal_uInt16 nPos) const
     611                 :            : {
     612                 :          0 :         return pDlg->GetSelectEntry(nPos);
     613                 :            : }
     614                 :            : 
     615                 :            : 
     616                 :            : 
     617                 :          0 : void AbstractScStringInputDlg_Impl::GetInputString( rtl::OUString& rString ) const
     618                 :            : {
     619                 :          0 :     pDlg->GetInputString( rString );
     620                 :          0 : }
     621                 :            : 
     622                 :            : 
     623                 :            : 
     624                 :          0 : void AbstractScTabBgColorDlg_Impl::GetSelectedColor( Color& rColor ) const
     625                 :            : {
     626                 :          0 :     pDlg->GetSelectedColor( rColor );
     627                 :          0 : }
     628                 :            : 
     629                 :            : 
     630                 :            : 
     631                 :            : 
     632                 :          0 : void AbstractScImportOptionsDlg_Impl::GetImportOptions( ScImportOptions& rOptions ) const
     633                 :            : {
     634                 :          0 :     pDlg->GetImportOptions(rOptions);
     635                 :          0 : }
     636                 :            : // add for AbstractScImportOptionsDlg_Impl end
     637                 :            : 
     638                 :            : 
     639                 :          0 : LanguageType AbstractScTextImportOptionsDlg_Impl::GetLanguageType() const
     640                 :            : {
     641                 :          0 :     return pDlg->getLanguageType();
     642                 :            : }
     643                 :            : 
     644                 :          0 : bool AbstractScTextImportOptionsDlg_Impl::IsDateConversionSet() const
     645                 :            : {
     646                 :          0 :     return pDlg->isDateConversionSet();
     647                 :            : }
     648                 :            : 
     649                 :            : 
     650                 :            : 
     651                 :            : // =========================Factories  for createdialog ===================
     652                 :            : 
     653                 :            : 
     654                 :          0 : AbstractScImportAsciiDlg * ScAbstractDialogFactory_Impl::CreateScImportAsciiDlg ( Window* pParent, String aDatName,
     655                 :            :                                                     SvStream* pInStream, int nId, ScImportAsciiCall eCall )
     656                 :            : {
     657                 :          0 :     ScImportAsciiDlg* pDlg=NULL;
     658                 :          0 :     switch ( nId )
     659                 :            :     {
     660                 :            :         case RID_SCDLG_ASCII :
     661                 :          0 :             pDlg = new ScImportAsciiDlg( pParent, aDatName,pInStream, eCall );
     662                 :          0 :             break;
     663                 :            :         default:
     664                 :          0 :             break;
     665                 :            :     }
     666                 :            : 
     667                 :          0 :     if ( pDlg )
     668                 :          0 :         return new AbstractScImportAsciiDlg_Impl( pDlg );
     669                 :          0 :     return 0;
     670                 :            : }
     671                 :            : // ScImportAsciiDlg end
     672                 :            : 
     673                 :          0 : AbstractScTextImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScTextImportOptionsDlg( Window* pParent, int nId )
     674                 :            : {
     675                 :          0 :     ScTextImportOptionsDlg* pDlg = NULL;
     676                 :          0 :     switch (nId)
     677                 :            :     {
     678                 :            :         case RID_SCDLG_TEXT_IMPORT_OPTIONS:
     679                 :          0 :             pDlg = new ScTextImportOptionsDlg(pParent);
     680                 :          0 :         break;
     681                 :            :         default:
     682                 :            :             ;
     683                 :            :     }
     684                 :            : 
     685                 :          0 :     return pDlg ? new AbstractScTextImportOptionsDlg_Impl(pDlg) : NULL;
     686                 :            : }
     687                 :            : 
     688                 :            : 
     689                 :            : 
     690                 :          0 : AbstractScAutoFormatDlg * ScAbstractDialogFactory_Impl::CreateScAutoFormatDlg( Window*                  pParent,
     691                 :            :                                                                 ScAutoFormat*               pAutoFormat,
     692                 :            :                                                                 const ScAutoFormatData*    pSelFormatData,
     693                 :            :                                                                 ScDocument*                pDoc,
     694                 :            :                                                                 int nId)
     695                 :            : {
     696                 :          0 :     ScAutoFormatDlg* pDlg=NULL;
     697                 :          0 :     switch ( nId )
     698                 :            :     {
     699                 :            :         case RID_SCDLG_AUTOFORMAT :
     700                 :          0 :             pDlg = new ScAutoFormatDlg( pParent, pAutoFormat,pSelFormatData, pDoc );
     701                 :          0 :             break;
     702                 :            :         default:
     703                 :          0 :             break;
     704                 :            :     }
     705                 :            : 
     706                 :          0 :     if ( pDlg )
     707                 :          0 :         return new AbstractScAutoFormatDlg_Impl( pDlg );
     708                 :          0 :     return 0;
     709                 :            : }
     710                 :            : 
     711                 :            : 
     712                 :            : 
     713                 :            : 
     714                 :          0 : AbstractScColRowLabelDlg *  ScAbstractDialogFactory_Impl::CreateScColRowLabelDlg(Window* pParent,
     715                 :            :                                                                 int nId,
     716                 :            :                                                                 sal_Bool bCol ,
     717                 :            :                                                                 sal_Bool bRow)
     718                 :            : {
     719                 :          0 :     ScColRowLabelDlg* pDlg=NULL;
     720                 :          0 :     switch ( nId )
     721                 :            :     {
     722                 :            :         case RID_SCDLG_CHARTCOLROW :
     723                 :          0 :             pDlg = new ScColRowLabelDlg( pParent, bCol,bRow );
     724                 :          0 :             break;
     725                 :            :         default:
     726                 :          0 :             break;
     727                 :            :     }
     728                 :            : 
     729                 :          0 :     if ( pDlg )
     730                 :          0 :         return new AbstractScColRowLabelDlg_Impl( pDlg );
     731                 :          0 :     return 0;
     732                 :            : }
     733                 :            : 
     734                 :            : 
     735                 :            : 
     736                 :            : 
     737                 :            : 
     738                 :          0 : VclAbstractDialog *  ScAbstractDialogFactory_Impl::CreateScColOrRowDlg(Window*          pParent,
     739                 :            :                                                     const String&   rStrTitle,
     740                 :            :                                                     const String&   rStrLabel,
     741                 :            :                                                     int nId,
     742                 :            :                                                     sal_Bool                bColDefault)
     743                 :            : {
     744                 :          0 :     Dialog * pDlg=NULL;
     745                 :          0 :     switch ( nId )
     746                 :            :     {
     747                 :            :         case RID_SCDLG_COLORROW :
     748                 :          0 :             pDlg = new ScColOrRowDlg( pParent, rStrTitle,rStrLabel,bColDefault );
     749                 :          0 :             break;
     750                 :            :         default:
     751                 :          0 :             break;
     752                 :            :     }
     753                 :            : 
     754                 :          0 :     if ( pDlg )
     755                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
     756                 :          0 :     return 0;
     757                 :            : }
     758                 :            : 
     759                 :            : 
     760                 :            : 
     761                 :          0 : VclAbstractDialog * ScAbstractDialogFactory_Impl::CreateScSortWarningDlg( Window* pParent, const String& rExtendText,
     762                 :            :                                                                           const String& rCurrentText, int nId )
     763                 :            : {
     764                 :          0 :     Dialog * pDlg=NULL;
     765                 :          0 :     switch ( nId )
     766                 :            :     {
     767                 :            :     case RID_SCDLG_SORT_WARNING:
     768                 :          0 :         pDlg = new ScSortWarningDlg( pParent, rExtendText, rCurrentText );
     769                 :          0 :         break;
     770                 :            :     default:
     771                 :          0 :         break;
     772                 :            :     }
     773                 :          0 :     if( pDlg )
     774                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
     775                 :          0 :     return 0;
     776                 :            : }
     777                 :            : 
     778                 :            : 
     779                 :          0 : AbstractScCondFormatDlg* ScAbstractDialogFactory_Impl::CreateScCondFormatDlg(Window* pParent, ScDocument* pDoc, const ScConditionalFormat* pFormat,
     780                 :            :                                                                             const ScRangeList& rRange, const ScAddress& rPos, int nId)
     781                 :            : {
     782                 :          0 :     ScCondFormatDlg* pDlg = NULL;
     783                 :          0 :     switch( nId )
     784                 :            :     {
     785                 :            :         case RID_SCDLG_CONDFORMAT:
     786                 :          0 :             pDlg = new ScCondFormatDlg( pParent, pDoc, pFormat, rRange, rPos );
     787                 :          0 :             break;
     788                 :            :         default:
     789                 :          0 :             break;
     790                 :            :     }
     791                 :          0 :     if(pDlg)
     792                 :          0 :         return new AbstractScCondFormatDlg_Impl( pDlg );
     793                 :            : 
     794                 :          0 :     return NULL;
     795                 :            : }
     796                 :            : 
     797                 :          0 : AbstractScCondFormatManagerDlg* ScAbstractDialogFactory_Impl::CreateScCondFormatMgrDlg(Window* pParent, ScDocument* pDoc, const ScConditionalFormatList* pFormatList,
     798                 :            :                                                                 const ScRangeList& rList, const ScAddress& rPos, int nId )
     799                 :            : {
     800                 :          0 :     ScCondFormatManagerDlg* pDlg = NULL;
     801                 :          0 :     switch( nId )
     802                 :            :     {
     803                 :            :         case RID_SCDLG_COND_FORMAT_MANAGER:
     804                 :          0 :             pDlg = new ScCondFormatManagerDlg( pParent, pDoc, pFormatList, rList, rPos );
     805                 :          0 :             break;
     806                 :            :         default:
     807                 :          0 :             break;
     808                 :            :     }
     809                 :          0 :     if(pDlg)
     810                 :          0 :         return new AbstractScCondFormatManagerDlg_Impl( pDlg );
     811                 :            : 
     812                 :          0 :     return NULL;
     813                 :            : }
     814                 :            : 
     815                 :          0 : AbstractScDataBarSettingsDlg* ScAbstractDialogFactory_Impl::CreateScDataBarSetttingsDlg(Window* pParent, ScDocument* pDoc, int nId)
     816                 :            : {
     817                 :          0 :     ScDataBarSettingsDlg* pDlg = NULL;
     818                 :          0 :     switch( nId )
     819                 :            :     {
     820                 :            :         case RID_SCDLG_DATABAR:
     821                 :          0 :             pDlg = new ScDataBarSettingsDlg( pParent, pDoc );
     822                 :          0 :             break;
     823                 :            :         default:
     824                 :          0 :             break;
     825                 :            :     }
     826                 :          0 :     if(pDlg)
     827                 :          0 :         return new AbstractScDataBarSettingsDlg_Impl( pDlg );
     828                 :            : 
     829                 :          0 :     return NULL;
     830                 :            : }
     831                 :            : 
     832                 :            : 
     833                 :          0 : AbstractScDataPilotDatabaseDlg *  ScAbstractDialogFactory_Impl::CreateScDataPilotDatabaseDlg (Window* pParent ,
     834                 :            :                                                                                               int nId )
     835                 :            : {
     836                 :          0 :     ScDataPilotDatabaseDlg * pDlg=NULL;
     837                 :          0 :     switch ( nId )
     838                 :            :     {
     839                 :            :         case RID_SCDLG_DAPIDATA :
     840                 :          0 :             pDlg = new ScDataPilotDatabaseDlg( pParent );
     841                 :          0 :             break;
     842                 :            :         default:
     843                 :          0 :             break;
     844                 :            :     }
     845                 :            : 
     846                 :          0 :     if ( pDlg )
     847                 :          0 :         return new AbstractScDataPilotDatabaseDlg_Impl( pDlg );
     848                 :          0 :     return 0;
     849                 :            : }
     850                 :            : 
     851                 :            : 
     852                 :            : 
     853                 :          0 : AbstractScDataPilotSourceTypeDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg( Window* pParent,
     854                 :            :                                                                                                sal_Bool bEnableExternal,
     855                 :            :                                                                                                int nId )
     856                 :            : {
     857                 :          0 :     ScDataPilotSourceTypeDlg * pDlg=NULL;
     858                 :          0 :     switch ( nId )
     859                 :            :     {
     860                 :            :         case RID_SCDLG_DAPITYPE :
     861                 :          0 :             pDlg = new ScDataPilotSourceTypeDlg( pParent, bEnableExternal );
     862                 :          0 :             break;
     863                 :            :         default:
     864                 :          0 :             break;
     865                 :            :     }
     866                 :            : 
     867                 :          0 :     if ( pDlg )
     868                 :          0 :         return new AbstractScDataPilotSourceTypeDlg_Impl( pDlg );
     869                 :          0 :     return 0;
     870                 :            : }
     871                 :            : 
     872                 :            : // add for ScDataPilotSourceTypeDlg end
     873                 :            : 
     874                 :            : 
     875                 :            : 
     876                 :          0 : AbstractScDataPilotServiceDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotServiceDlg( Window* pParent,
     877                 :            :                                                                         const com::sun::star::uno::Sequence<rtl::OUString>& rServices,
     878                 :            :                                                             int nId )
     879                 :            : {
     880                 :          0 :     ScDataPilotServiceDlg * pDlg=NULL;
     881                 :          0 :     switch ( nId )
     882                 :            :     {
     883                 :            :         case RID_SCDLG_DAPISERVICE :
     884                 :          0 :             pDlg = new ScDataPilotServiceDlg( pParent, rServices );
     885                 :          0 :             break;
     886                 :            :         default:
     887                 :          0 :             break;
     888                 :            :     }
     889                 :            : 
     890                 :          0 :     if ( pDlg )
     891                 :          0 :         return new AbstractScDataPilotServiceDlg_Impl( pDlg );
     892                 :          0 :     return 0;
     893                 :            : }
     894                 :            : 
     895                 :            : // add for ScDataPilotServiceDlg end
     896                 :            : 
     897                 :            : 
     898                 :          0 : AbstractScDeleteCellDlg* ScAbstractDialogFactory_Impl::CreateScDeleteCellDlg( Window* pParent, int nId,
     899                 :            :                                                                              sal_Bool bDisallowCellMove )
     900                 :            : {
     901                 :          0 :     ScDeleteCellDlg * pDlg=NULL;
     902                 :          0 :     switch ( nId )
     903                 :            :     {
     904                 :            :         case RID_SCDLG_DELCELL :
     905                 :          0 :             pDlg = new ScDeleteCellDlg( pParent, bDisallowCellMove );
     906                 :          0 :             break;
     907                 :            :         default:
     908                 :          0 :             break;
     909                 :            :     }
     910                 :            : 
     911                 :          0 :     if ( pDlg )
     912                 :          0 :         return new AbstractScDeleteCellDlg_Impl( pDlg );
     913                 :          0 :     return 0;
     914                 :            : }
     915                 :            : 
     916                 :            : 
     917                 :            : 
     918                 :            : 
     919                 :          0 : AbstractScDataFormDlg* ScAbstractDialogFactory_Impl::CreateScDataFormDlg( Window* pParent, int nId, ScTabViewShell* pTabViewShell )
     920                 :            : {
     921                 :          0 :     ScDataFormDlg * pDlg=NULL;
     922                 :          0 :     switch ( nId )
     923                 :            :     {
     924                 :            :         case RID_SCDLG_DATAFORM :
     925                 :          0 :             pDlg = new ScDataFormDlg( pParent, pTabViewShell);
     926                 :          0 :             break;
     927                 :            :         default:
     928                 :          0 :             break;
     929                 :            :     }
     930                 :            : 
     931                 :          0 :     if ( pDlg )
     932                 :          0 :         return new AbstractScDataFormDlg_Impl( pDlg );
     933                 :          0 :     return 0;
     934                 :            : }
     935                 :            : 
     936                 :            : 
     937                 :            : 
     938                 :            : 
     939                 :          0 : AbstractScDeleteContentsDlg* ScAbstractDialogFactory_Impl::CreateScDeleteContentsDlg(Window* pParent,int nId,
     940                 :            :                                                                  sal_uInt16  nCheckDefaults )
     941                 :            : {
     942                 :          0 :     ScDeleteContentsDlg * pDlg=NULL;
     943                 :          0 :     switch ( nId )
     944                 :            :     {
     945                 :            :         case RID_SCDLG_DELCONT :
     946                 :          0 :             pDlg = new ScDeleteContentsDlg( pParent, nCheckDefaults );
     947                 :          0 :             break;
     948                 :            :         default:
     949                 :          0 :             break;
     950                 :            :     }
     951                 :            : 
     952                 :          0 :     if ( pDlg )
     953                 :          0 :         return new AbstractScDeleteContentsDlg_Impl( pDlg );
     954                 :          0 :     return 0;
     955                 :            : }
     956                 :            : 
     957                 :            : 
     958                 :            : 
     959                 :            : 
     960                 :          0 : AbstractScFillSeriesDlg* ScAbstractDialogFactory_Impl::CreateScFillSeriesDlg( Window*       pParent,
     961                 :            :                                                             ScDocument& rDocument,
     962                 :            :                                                             FillDir     eFillDir,
     963                 :            :                                                             FillCmd     eFillCmd,
     964                 :            :                                                             FillDateCmd eFillDateCmd,
     965                 :            :                                                             String          aStartStr,
     966                 :            :                                                             double          fStep,
     967                 :            :                                                             double          fMax,
     968                 :            :                                                             sal_uInt16          nPossDir,
     969                 :            :                                                             int nId)
     970                 :            : {
     971                 :          0 :     ScFillSeriesDlg * pDlg=NULL;
     972                 :          0 :     switch ( nId )
     973                 :            :     {
     974                 :            :         case RID_SCDLG_FILLSERIES :
     975                 :          0 :             pDlg = new ScFillSeriesDlg( pParent, rDocument,eFillDir, eFillCmd,eFillDateCmd, aStartStr,fStep,fMax,nPossDir);
     976                 :          0 :             break;
     977                 :            :         default:
     978                 :          0 :             break;
     979                 :            :     }
     980                 :            : 
     981                 :          0 :     if ( pDlg )
     982                 :          0 :         return new AbstractScFillSeriesDlg_Impl( pDlg );
     983                 :          0 :     return 0;
     984                 :            : }
     985                 :            : 
     986                 :            : 
     987                 :            : 
     988                 :            : 
     989                 :          0 : AbstractScGroupDlg* ScAbstractDialogFactory_Impl::CreateAbstractScGroupDlg( Window* pParent,
     990                 :            :                                                             sal_uInt16  nResId,
     991                 :            :                                                             int nId,
     992                 :            :                                                             sal_Bool    bUnGroup ,
     993                 :            :                                                             sal_Bool    bRows   )
     994                 :            : {
     995                 :          0 :     ScGroupDlg * pDlg=NULL;
     996                 :          0 :     switch ( nId )
     997                 :            :     {
     998                 :            :         case RID_SCDLG_GRP_KILL :
     999                 :            :         case RID_SCDLG_GRP_MAKE :
    1000                 :          0 :             pDlg = new ScGroupDlg( pParent, nResId,bUnGroup, bRows);
    1001                 :          0 :             break;
    1002                 :            :         default:
    1003                 :          0 :             break;
    1004                 :            :     }
    1005                 :            : 
    1006                 :          0 :     if ( pDlg )
    1007                 :          0 :         return new AbstractScGroupDlg_Impl( pDlg );
    1008                 :          0 :     return 0;
    1009                 :            : }
    1010                 :            : 
    1011                 :            : 
    1012                 :            : 
    1013                 :            : 
    1014                 :            : 
    1015                 :          0 : AbstractScInsertCellDlg * ScAbstractDialogFactory_Impl::CreateScInsertCellDlg( Window* pParent,
    1016                 :            :                                                                 int nId,
    1017                 :            :                                                             sal_Bool bDisallowCellMove )
    1018                 :            : {
    1019                 :          0 :     ScInsertCellDlg * pDlg=NULL;
    1020                 :          0 :     switch ( nId )
    1021                 :            :     {
    1022                 :            :         case RID_SCDLG_INSCELL :
    1023                 :          0 :             pDlg = new ScInsertCellDlg( pParent, bDisallowCellMove);
    1024                 :          0 :             break;
    1025                 :            :         default:
    1026                 :          0 :             break;
    1027                 :            :     }
    1028                 :            : 
    1029                 :          0 :     if ( pDlg )
    1030                 :          0 :         return new AbstractScInsertCellDlg_Impl( pDlg );
    1031                 :          0 :     return 0;
    1032                 :            : }
    1033                 :            : 
    1034                 :            : 
    1035                 :            : 
    1036                 :            : 
    1037                 :          0 : AbstractScInsertContentsDlg * ScAbstractDialogFactory_Impl::CreateScInsertContentsDlg( Window*      pParent,
    1038                 :            :                                                                                     int nId,
    1039                 :            :                                                                                     sal_uInt16          nCheckDefaults,
    1040                 :            :                                                                                     const String*   pStrTitle )
    1041                 :            : {
    1042                 :          0 :     ScInsertContentsDlg * pDlg=NULL;
    1043                 :          0 :     switch ( nId )
    1044                 :            :     {
    1045                 :            :         case RID_SCDLG_INSCONT :
    1046                 :          0 :             pDlg = new ScInsertContentsDlg( pParent, nCheckDefaults,pStrTitle );
    1047                 :          0 :             break;
    1048                 :            :         default:
    1049                 :          0 :             break;
    1050                 :            :     }
    1051                 :            : 
    1052                 :          0 :     if ( pDlg )
    1053                 :          0 :         return new AbstractScInsertContentsDlg_Impl( pDlg );
    1054                 :          0 :     return 0;
    1055                 :            : }
    1056                 :            : 
    1057                 :            : 
    1058                 :            : 
    1059                 :          0 : AbstractScInsertTableDlg * ScAbstractDialogFactory_Impl::CreateScInsertTableDlg ( Window* pParent, ScViewData& rViewData,
    1060                 :            :                                                                 SCTAB nTabCount, bool bFromFile, int nId)
    1061                 :            : {
    1062                 :          0 :     ScInsertTableDlg * pDlg=NULL;
    1063                 :          0 :     switch ( nId )
    1064                 :            :     {
    1065                 :            :         case RID_SCDLG_INSERT_TABLE :
    1066                 :          0 :             pDlg = new ScInsertTableDlg( pParent, rViewData,nTabCount, bFromFile );
    1067                 :          0 :             break;
    1068                 :            :         default:
    1069                 :          0 :             break;
    1070                 :            :     }
    1071                 :            : 
    1072                 :          0 :     if ( pDlg )
    1073                 :          0 :         return new AbstractScInsertTableDlg_Impl( pDlg );
    1074                 :          0 :     return 0;
    1075                 :            : }
    1076                 :            : 
    1077                 :            : 
    1078                 :            : // add for ScSelEntryDlg begin
    1079                 :          0 : AbstractScSelEntryDlg * ScAbstractDialogFactory_Impl::CreateScSelEntryDlg ( Window* pParent,
    1080                 :            :                                                             sal_uInt16  nResId,
    1081                 :            :                                                         const String& aTitle,
    1082                 :            :                                                         const String& aLbTitle,
    1083                 :            :                                                         const std::vector<String> &rEntryList,
    1084                 :            :                                                             int nId )
    1085                 :            : {
    1086                 :          0 :     ScSelEntryDlg * pDlg=NULL;
    1087                 :          0 :     switch ( nId )
    1088                 :            :     {
    1089                 :            :         case RID_SCDLG_SELECTDB :
    1090                 :          0 :             pDlg = new ScSelEntryDlg( pParent, nResId,aTitle, aLbTitle, rEntryList );
    1091                 :          0 :             break;
    1092                 :            :         default:
    1093                 :          0 :             break;
    1094                 :            :     }
    1095                 :            : 
    1096                 :          0 :     if ( pDlg )
    1097                 :          0 :         return new AbstractScSelEntryDlg_Impl( pDlg );
    1098                 :          0 :     return 0;
    1099                 :            : }
    1100                 :            : // add for ScSelEntryDlg end
    1101                 :            : 
    1102                 :            : 
    1103                 :          0 : AbstractScLinkedAreaDlg * ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg (  Window* pParent,
    1104                 :            :                                                                 int nId)
    1105                 :            : {
    1106                 :          0 :     ScLinkedAreaDlg * pDlg=NULL;
    1107                 :          0 :     switch ( nId )
    1108                 :            :     {
    1109                 :            :         case RID_SCDLG_LINKAREA :
    1110                 :          0 :             pDlg = new ScLinkedAreaDlg( pParent );
    1111                 :          0 :             break;
    1112                 :            :         default:
    1113                 :          0 :             break;
    1114                 :            :     }
    1115                 :            : 
    1116                 :          0 :     if ( pDlg )
    1117                 :          0 :         return new AbstractScLinkedAreaDlg_Impl( pDlg );
    1118                 :          0 :     return 0;
    1119                 :            : }
    1120                 :            : 
    1121                 :            : 
    1122                 :            : 
    1123                 :          0 : AbstractScMetricInputDlg * ScAbstractDialogFactory_Impl::CreateScMetricInputDlg (  Window*      pParent,
    1124                 :            :                                                                 sal_uInt16      nResId,     // Ableitung fuer jeden Dialog!
    1125                 :            :                                                                 long            nCurrent,
    1126                 :            :                                                                 long            nDefault,
    1127                 :            :                                                                 int nId ,
    1128                 :            :                                                                 FieldUnit       eFUnit,
    1129                 :            :                                                                 sal_uInt16      nDecimals,
    1130                 :            :                                                                 long            nMaximum ,
    1131                 :            :                                                                 long            nMinimum,
    1132                 :            :                                                                 long            nFirst,
    1133                 :            :                                                                 long          nLast )
    1134                 :            : {
    1135                 :          0 :     ScMetricInputDlg * pDlg=NULL;
    1136                 :          0 :     switch ( nId )
    1137                 :            :     {
    1138                 :            :         case RID_SCDLG_ROW_MAN :
    1139                 :            :         case RID_SCDLG_ROW_OPT :
    1140                 :            :         case RID_SCDLG_COL_MAN :
    1141                 :            :         case RID_SCDLG_COL_OPT :
    1142                 :            :             pDlg = new ScMetricInputDlg( pParent , nResId,nCurrent ,nDefault, eFUnit,
    1143                 :          0 :                                         nDecimals, nMaximum , nMinimum , nFirst, nLast);
    1144                 :          0 :             break;
    1145                 :            :         default:
    1146                 :          0 :             break;
    1147                 :            :     }
    1148                 :            : 
    1149                 :          0 :     if ( pDlg )
    1150                 :          0 :         return new AbstractScMetricInputDlg_Impl( pDlg );
    1151                 :          0 :     return 0;
    1152                 :            : }
    1153                 :            : 
    1154                 :            : 
    1155                 :            : 
    1156                 :            : 
    1157                 :          0 : AbstractScMoveTableDlg * ScAbstractDialogFactory_Impl::CreateScMoveTableDlg(  Window* pParent,
    1158                 :            :                                                                               const String& rDefault,
    1159                 :            :                                                                               int nId )
    1160                 :            : {
    1161                 :          0 :     ScMoveTableDlg * pDlg=NULL;
    1162                 :          0 :     switch ( nId )
    1163                 :            :     {
    1164                 :            :         case RID_SCDLG_MOVETAB :
    1165                 :          0 :             pDlg = new ScMoveTableDlg( pParent, rDefault );
    1166                 :          0 :             break;
    1167                 :            :         default:
    1168                 :          0 :             break;
    1169                 :            :     }
    1170                 :            : 
    1171                 :          0 :     if ( pDlg )
    1172                 :          0 :         return new AbstractScMoveTableDlg_Impl( pDlg );
    1173                 :          0 :     return 0;
    1174                 :            : }
    1175                 :            : 
    1176                 :            : 
    1177                 :            : 
    1178                 :            : 
    1179                 :          0 : AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg ( Window * pParent, sal_uInt16 nFlags, int nId )
    1180                 :            : {
    1181                 :          0 :     ScNameCreateDlg * pDlg=NULL;
    1182                 :          0 :     switch ( nId )
    1183                 :            :     {
    1184                 :            :         case RID_SCDLG_NAMES_CREATE :
    1185                 :          0 :             pDlg = new ScNameCreateDlg( pParent, nFlags );
    1186                 :          0 :             break;
    1187                 :            :         default:
    1188                 :          0 :             break;
    1189                 :            :     }
    1190                 :            : 
    1191                 :          0 :     if ( pDlg )
    1192                 :          0 :         return new AbstractScNameCreateDlg_Impl( pDlg );
    1193                 :          0 :     return 0;
    1194                 :            : }
    1195                 :            : 
    1196                 :            : 
    1197                 :            : 
    1198                 :            : 
    1199                 :          0 : AbstractScNamePasteDlg * ScAbstractDialogFactory_Impl::CreateScNamePasteDlg ( Window * pParent, ScDocShell* pShell, int nId , bool bInsList )
    1200                 :            : {
    1201                 :          0 :     ScNamePasteDlg * pDlg=NULL;
    1202                 :          0 :     switch ( nId )
    1203                 :            :     {
    1204                 :            :         case RID_SCDLG_NAMES_PASTE :
    1205                 :          0 :             pDlg = new ScNamePasteDlg( pParent, pShell, bInsList );
    1206                 :          0 :             break;
    1207                 :            :         default:
    1208                 :          0 :             break;
    1209                 :            :     }
    1210                 :            : 
    1211                 :          0 :     if ( pDlg )
    1212                 :          0 :         return new AbstractScNamePasteDlg_Impl( pDlg );
    1213                 :          0 :     return 0;
    1214                 :            : }
    1215                 :            : 
    1216                 :            : 
    1217                 :          0 : AbstractScPivotFilterDlg * ScAbstractDialogFactory_Impl::CreateScPivotFilterDlg ( Window* pParent,
    1218                 :            :                                                                 const SfxItemSet&   rArgSet, sal_uInt16 nSourceTab , int nId )
    1219                 :            : {
    1220                 :          0 :     ScPivotFilterDlg * pDlg=NULL;
    1221                 :          0 :     switch ( nId )
    1222                 :            :     {
    1223                 :            :         case RID_SCDLG_PIVOTFILTER :
    1224                 :          0 :             pDlg = new ScPivotFilterDlg( pParent, rArgSet, nSourceTab );
    1225                 :          0 :             break;
    1226                 :            :         default:
    1227                 :          0 :             break;
    1228                 :            :     }
    1229                 :            : 
    1230                 :          0 :     if ( pDlg )
    1231                 :          0 :         return new AbstractScPivotFilterDlg_Impl( pDlg );
    1232                 :          0 :     return 0;
    1233                 :            : }
    1234                 :            : 
    1235                 :            : 
    1236                 :            : 
    1237                 :            : 
    1238                 :          0 : AbstractScDPFunctionDlg * ScAbstractDialogFactory_Impl::CreateScDPFunctionDlg ( Window* pParent,
    1239                 :            :                                                                 int nId,
    1240                 :            :                                                                 const ScDPLabelDataVec& rLabelVec,
    1241                 :            :                                                                 const ScDPLabelData& rLabelData,
    1242                 :            :                                                                 const ScDPFuncData& rFuncData )
    1243                 :            : {
    1244                 :          0 :     ScDPFunctionDlg * pDlg=NULL;
    1245                 :          0 :     switch ( nId )
    1246                 :            :     {
    1247                 :            :         case RID_SCDLG_DPDATAFIELD :
    1248                 :          0 :             pDlg = new ScDPFunctionDlg( pParent, rLabelVec, rLabelData, rFuncData );
    1249                 :          0 :             break;
    1250                 :            :         default:
    1251                 :          0 :             break;
    1252                 :            :     }
    1253                 :            : 
    1254                 :          0 :     if ( pDlg )
    1255                 :          0 :         return new AbstractScDPFunctionDlg_Impl( pDlg );
    1256                 :          0 :     return 0;
    1257                 :            : }
    1258                 :            : 
    1259                 :            : 
    1260                 :            : 
    1261                 :          0 : AbstractScDPSubtotalDlg * ScAbstractDialogFactory_Impl::CreateScDPSubtotalDlg ( Window* pParent,
    1262                 :            :                                                                 int nId,
    1263                 :            :                                                                 ScDPObject& rDPObj,
    1264                 :            :                                                                 const ScDPLabelData& rLabelData,
    1265                 :            :                                                                 const ScDPFuncData& rFuncData,
    1266                 :            :                                                                 const ScDPNameVec& rDataFields,
    1267                 :            :                                                                 bool bEnableLayout )
    1268                 :            : {
    1269                 :          0 :     ScDPSubtotalDlg * pDlg=NULL;
    1270                 :          0 :     switch ( nId )
    1271                 :            :     {
    1272                 :            :         case RID_SCDLG_PIVOTSUBT :
    1273                 :          0 :             pDlg = new ScDPSubtotalDlg( pParent, rDPObj, rLabelData, rFuncData, rDataFields, bEnableLayout );
    1274                 :          0 :             break;
    1275                 :            :         default:
    1276                 :          0 :             break;
    1277                 :            :     }
    1278                 :            : 
    1279                 :          0 :     if ( pDlg )
    1280                 :          0 :         return new AbstractScDPSubtotalDlg_Impl( pDlg );
    1281                 :          0 :     return 0;
    1282                 :            : }
    1283                 :            : 
    1284                 :            : 
    1285                 :          0 : AbstractScDPNumGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPNumGroupDlg(
    1286                 :            :         Window* pParent, int nId, const ScDPNumGroupInfo& rInfo )
    1287                 :            : {
    1288                 :          0 :     if( nId == RID_SCDLG_DPNUMGROUP )
    1289                 :          0 :         return new AbstractScDPNumGroupDlg_Impl( new ScDPNumGroupDlg( pParent, rInfo ) );
    1290                 :          0 :     return 0;
    1291                 :            : }
    1292                 :            : 
    1293                 :          0 : AbstractScDPDateGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPDateGroupDlg(
    1294                 :            :         Window* pParent, int nId,
    1295                 :            :         const ScDPNumGroupInfo& rInfo, sal_Int32 nDatePart, const Date& rNullDate )
    1296                 :            : {
    1297                 :          0 :     if( nId == RID_SCDLG_DPDATEGROUP )
    1298                 :          0 :         return new AbstractScDPDateGroupDlg_Impl( new ScDPDateGroupDlg( pParent, rInfo, nDatePart, rNullDate ) );
    1299                 :          0 :     return 0;
    1300                 :            : }
    1301                 :            : 
    1302                 :            : 
    1303                 :          0 : AbstractScDPShowDetailDlg * ScAbstractDialogFactory_Impl::CreateScDPShowDetailDlg (
    1304                 :            :         Window* pParent, int nId, ScDPObject& rDPObj, sal_uInt16 nOrient )
    1305                 :            : {
    1306                 :          0 :     if( nId == RID_SCDLG_DPSHOWDETAIL )
    1307                 :          0 :         return new AbstractScDPShowDetailDlg_Impl( new ScDPShowDetailDlg( pParent, rDPObj, nOrient ) );
    1308                 :          0 :     return 0;
    1309                 :            : }
    1310                 :            : 
    1311                 :            : 
    1312                 :            : 
    1313                 :          0 : AbstractScNewScenarioDlg * ScAbstractDialogFactory_Impl::CreateScNewScenarioDlg ( Window* pParent, const String& rName,
    1314                 :            :                                                                 int nId,
    1315                 :            :                                                                 sal_Bool bEdit , sal_Bool bSheetProtected )
    1316                 :            : {
    1317                 :          0 :     ScNewScenarioDlg * pDlg=NULL;
    1318                 :          0 :     switch ( nId )
    1319                 :            :     {
    1320                 :            :         case RID_SCDLG_NEWSCENARIO :
    1321                 :          0 :             pDlg = new ScNewScenarioDlg( pParent, rName, bEdit,bSheetProtected );
    1322                 :          0 :             break;
    1323                 :            :         default:
    1324                 :          0 :             break;
    1325                 :            :     }
    1326                 :            : 
    1327                 :          0 :     if ( pDlg )
    1328                 :          0 :         return new AbstractScNewScenarioDlg_Impl( pDlg );
    1329                 :          0 :     return 0;
    1330                 :            : }
    1331                 :            : 
    1332                 :            : 
    1333                 :            : 
    1334                 :          0 : AbstractScShowTabDlg * ScAbstractDialogFactory_Impl::CreateScShowTabDlg ( Window* pParent, int nId )
    1335                 :            : {
    1336                 :          0 :     ScShowTabDlg * pDlg=NULL;
    1337                 :          0 :     switch ( nId )
    1338                 :            :     {
    1339                 :            :         case RID_SCDLG_SHOW_TAB :
    1340                 :          0 :             pDlg = new ScShowTabDlg( pParent);
    1341                 :          0 :             break;
    1342                 :            :         default:
    1343                 :          0 :             break;
    1344                 :            :     }
    1345                 :            : 
    1346                 :          0 :     if ( pDlg )
    1347                 :          0 :         return new AbstractScShowTabDlg_Impl( pDlg );
    1348                 :          0 :     return 0;
    1349                 :            : }
    1350                 :            : 
    1351                 :            : 
    1352                 :            : 
    1353                 :            : 
    1354                 :            : 
    1355                 :          0 :  AbstractScStringInputDlg * ScAbstractDialogFactory_Impl::CreateScStringInputDlg (  Window* pParent,
    1356                 :            :                                                                 const String& rTitle,
    1357                 :            :                                                                 const String& rEditTitle,
    1358                 :            :                                                                 const String& rDefault,
    1359                 :            :                                                                 const rtl::OString& sHelpId, const rtl::OString& sEditHelpId,
    1360                 :            :                                                                 int nId )
    1361                 :            : {
    1362                 :          0 :     ScStringInputDlg * pDlg=NULL;
    1363                 :          0 :     switch ( nId )
    1364                 :            :     {
    1365                 :            :         case RID_SCDLG_STRINPUT :
    1366                 :          0 :             pDlg = new ScStringInputDlg( pParent, rTitle, rEditTitle, rDefault, sHelpId, sEditHelpId );
    1367                 :          0 :             break;
    1368                 :            :         default:
    1369                 :          0 :             break;
    1370                 :            :     }
    1371                 :            : 
    1372                 :          0 :     if ( pDlg )
    1373                 :          0 :         return new AbstractScStringInputDlg_Impl( pDlg );
    1374                 :          0 :     return 0;
    1375                 :            : }
    1376                 :            : 
    1377                 :            : 
    1378                 :            : 
    1379                 :          0 : AbstractScTabBgColorDlg * ScAbstractDialogFactory_Impl::CreateScTabBgColorDlg (
    1380                 :            :                                                             Window* pParent,
    1381                 :            :                                                             const String& rTitle,
    1382                 :            :                                                             const String& rTabBgColorNoColorText,
    1383                 :            :                                                             const Color& rDefaultColor,
    1384                 :            :                                                             const rtl::OString& sHelpId ,
    1385                 :            :                                                             int nId )
    1386                 :            : {
    1387                 :          0 : ScTabBgColorDlg * pDlg=NULL;
    1388                 :          0 : switch ( nId )
    1389                 :            : {
    1390                 :            :     case RID_SCDLG_TAB_BG_COLOR :
    1391                 :          0 :         pDlg = new ScTabBgColorDlg( pParent, rTitle, rTabBgColorNoColorText, rDefaultColor, sHelpId );
    1392                 :          0 :         break;
    1393                 :            :     default:
    1394                 :          0 :         break;
    1395                 :            : }
    1396                 :            : 
    1397                 :          0 : if ( pDlg )
    1398                 :          0 :     return new AbstractScTabBgColorDlg_Impl( pDlg );
    1399                 :          0 : return 0;
    1400                 :            : }
    1401                 :            : 
    1402                 :            : 
    1403                 :            : 
    1404                 :          0 : AbstractScImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScImportOptionsDlg ( Window*               pParent,
    1405                 :            :                                                                     int nId,
    1406                 :            :                                                                     sal_Bool                    bAscii,
    1407                 :            :                                                                     const ScImportOptions*  pOptions,
    1408                 :            :                                                                     const String*           pStrTitle,
    1409                 :            :                                                                     sal_Bool                    bMultiByte,
    1410                 :            :                                                                     sal_Bool                    bOnlyDbtoolsEncodings,
    1411                 :            :                                                                     sal_Bool                    bImport )
    1412                 :            : {
    1413                 :          0 :     ScImportOptionsDlg * pDlg=NULL;
    1414                 :          0 :     switch ( nId )
    1415                 :            :     {
    1416                 :            :         case RID_SCDLG_IMPORTOPT :
    1417                 :          0 :             pDlg = new ScImportOptionsDlg( pParent, bAscii, pOptions,pStrTitle, bMultiByte,bOnlyDbtoolsEncodings, bImport );
    1418                 :          0 :             break;
    1419                 :            :         default:
    1420                 :          0 :             break;
    1421                 :            :     }
    1422                 :            : 
    1423                 :          0 :     if ( pDlg )
    1424                 :          0 :         return new AbstractScImportOptionsDlg_Impl( pDlg );
    1425                 :          0 :     return 0;
    1426                 :            : }
    1427                 :            : 
    1428                 :            : 
    1429                 :          0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScAttrDlg( SfxViewFrame*  pFrame,
    1430                 :            :                                                                         Window*          pParent,
    1431                 :            :                                                                         const SfxItemSet* pCellAttrs,
    1432                 :            :                                                                         int nId)
    1433                 :            : {
    1434                 :          0 :     SfxTabDialog* pDlg=NULL;
    1435                 :          0 :     switch ( nId )
    1436                 :            :     {
    1437                 :            :         case RID_SCDLG_ATTR :
    1438                 :          0 :             pDlg = new ScAttrDlg( pFrame, pParent, pCellAttrs );
    1439                 :          0 :             break;
    1440                 :            :         default:
    1441                 :          0 :             break;
    1442                 :            :     }
    1443                 :            : 
    1444                 :          0 :     if ( pDlg )
    1445                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1446                 :          0 :     return 0;
    1447                 :            : 
    1448                 :            : }
    1449                 :            : 
    1450                 :            : #undef SfxTabDialog
    1451                 :            : #undef AbstractTabDialog_Impl
    1452                 :            : 
    1453                 :            : 
    1454                 :          0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScHFEditDlg( SfxViewFrame*       pFrame,
    1455                 :            :                                                                         Window*         pParent,
    1456                 :            :                                                                         const SfxItemSet&   rCoreSet,
    1457                 :            :                                                                         const String&       rPageStyle,
    1458                 :            :                                                                         int nId,
    1459                 :            :                                                                         sal_uInt16              nResId )
    1460                 :            : {
    1461                 :          0 :     SfxTabDialog* pDlg=NULL;
    1462                 :          0 :     switch ( nId )
    1463                 :            :     {
    1464                 :            :         case RID_SCDLG_HFEDIT :
    1465                 :          0 :             pDlg = new ScHFEditDlg( pFrame, pParent, rCoreSet,rPageStyle, nResId );
    1466                 :          0 :             break;
    1467                 :            :         default:
    1468                 :          0 :             break;
    1469                 :            :     }
    1470                 :            : 
    1471                 :          0 :     if ( pDlg )
    1472                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1473                 :          0 :     return 0;
    1474                 :            : }
    1475                 :            : 
    1476                 :            : 
    1477                 :            : 
    1478                 :          0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScStyleDlg( Window*              pParent,
    1479                 :            :                                                                         SfxStyleSheetBase&  rStyleBase,
    1480                 :            :                                                                         sal_uInt16              nRscId,
    1481                 :            :                                                                         int nId)
    1482                 :            : {
    1483                 :          0 :     SfxTabDialog* pDlg=NULL;
    1484                 :          0 :     switch ( nId )
    1485                 :            :     {
    1486                 :            :         case RID_SCDLG_STYLES_PAGE :
    1487                 :            :         case RID_SCDLG_STYLES_PAR :
    1488                 :          0 :             pDlg = new ScStyleDlg( pParent, rStyleBase, nRscId );
    1489                 :          0 :             break;
    1490                 :            :         default:
    1491                 :          0 :             break;
    1492                 :            :     }
    1493                 :            : 
    1494                 :          0 :     if ( pDlg )
    1495                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1496                 :          0 :     return 0;
    1497                 :            : }
    1498                 :            : 
    1499                 :            : 
    1500                 :            : 
    1501                 :          0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSubTotalDlg( Window*               pParent,
    1502                 :            :                                                                         const SfxItemSet*   pArgSet,
    1503                 :            :                                                                         int nId)
    1504                 :            : {
    1505                 :          0 :     SfxTabDialog* pDlg=NULL;
    1506                 :          0 :     switch ( nId )
    1507                 :            :     {
    1508                 :            :         case RID_SCDLG_SUBTOTALS :
    1509                 :          0 :             pDlg = new ScSubTotalDlg( pParent, pArgSet );
    1510                 :          0 :             break;
    1511                 :            :         default:
    1512                 :          0 :             break;
    1513                 :            :     }
    1514                 :            : 
    1515                 :          0 :     if ( pDlg )
    1516                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1517                 :          0 :     return 0;
    1518                 :            : }
    1519                 :            : 
    1520                 :            : 
    1521                 :            : 
    1522                 :          0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScCharDlg( Window* pParent, const SfxItemSet* pAttr,
    1523                 :            :                                                     const SfxObjectShell* pDocShell, int nId )
    1524                 :            : {
    1525                 :          0 :     SfxTabDialog* pDlg=NULL;
    1526                 :          0 :     switch ( nId )
    1527                 :            :     {
    1528                 :            :         case RID_SCDLG_CHAR :
    1529                 :          0 :             pDlg = new ScCharDlg( pParent, pAttr, pDocShell );
    1530                 :          0 :             break;
    1531                 :            :         default:
    1532                 :          0 :             break;
    1533                 :            :     }
    1534                 :            : 
    1535                 :          0 :     if ( pDlg )
    1536                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1537                 :          0 :     return 0;
    1538                 :            : }
    1539                 :            : 
    1540                 :            : 
    1541                 :            : 
    1542                 :          0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ,
    1543                 :            :                                                                             int nId )
    1544                 :            : {
    1545                 :          0 :     SfxTabDialog* pDlg=NULL;
    1546                 :          0 :     switch ( nId )
    1547                 :            :     {
    1548                 :            :         case RID_SCDLG_PARAGRAPH :
    1549                 :          0 :             pDlg = new ScParagraphDlg( pParent, pAttr );
    1550                 :          0 :             break;
    1551                 :            :         default:
    1552                 :          0 :             break;
    1553                 :            :     }
    1554                 :            : 
    1555                 :          0 :     if ( pDlg )
    1556                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1557                 :          0 :     return 0;
    1558                 :            : }
    1559                 :            : 
    1560                 :            : 
    1561                 :            : 
    1562                 :          0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScValidationDlg( Window* pParent,
    1563                 :            :                                                         const SfxItemSet* pArgSet,int nId, ScTabViewShell *pTabVwSh  )
    1564                 :            : {
    1565                 :          0 :     SfxTabDialog* pDlg=NULL;
    1566                 :          0 :     switch ( nId )
    1567                 :            :     {
    1568                 :            :         case TAB_DLG_VALIDATION :
    1569                 :          0 :             pDlg = new ScValidationDlg( pParent, pArgSet, pTabVwSh );
    1570                 :          0 :             break;
    1571                 :            :         default:
    1572                 :          0 :             break;
    1573                 :            :     }
    1574                 :            : 
    1575                 :          0 :     if ( pDlg )
    1576                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1577                 :          0 :     return 0;
    1578                 :            : }
    1579                 :            : 
    1580                 :            : 
    1581                 :          0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSortDlg( Window*            pParent,
    1582                 :            :                                                     const SfxItemSet* pArgSet,int nId )
    1583                 :            : {
    1584                 :          0 :     SfxTabDialog* pDlg=NULL;
    1585                 :          0 :     switch ( nId )
    1586                 :            :     {
    1587                 :            :         case RID_SCDLG_SORT :
    1588                 :          0 :             pDlg = new ScSortDlg( pParent, pArgSet );
    1589                 :          0 :             break;
    1590                 :            :         default:
    1591                 :          0 :             break;
    1592                 :            :     }
    1593                 :            : 
    1594                 :          0 :     if ( pDlg )
    1595                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1596                 :          0 :     return 0;
    1597                 :            : }
    1598                 :            : #undef SfxTabDialog
    1599                 :            : #undef AbstractTabDialog_Impl
    1600                 :            : 
    1601                 :            : 
    1602                 :            : //------------------ Factories for TabPages--------------------
    1603                 :          0 : CreateTabPage ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
    1604                 :            : {
    1605                 :          0 :     switch ( nId )
    1606                 :            :     {
    1607                 :            :         case RID_SCPAGE_OPREDLINE :
    1608                 :          0 :             return ScRedlineOptionsTabPage::Create;
    1609                 :            :             //break;
    1610                 :            :         case    RID_SCPAGE_CALC :
    1611                 :          0 :             return ScTpCalcOptions::Create;
    1612                 :            :             //break;
    1613                 :            :         case RID_SCPAGE_FORMULA:
    1614                 :          0 :             return ScTpFormulaOptions::Create;
    1615                 :            :         case RID_SCPAGE_COMPATIBILITY:
    1616                 :          0 :             return ScTpCompatOptions::Create;
    1617                 :            :         case RID_SCPAGE_DEFAULTS:
    1618                 :          0 :             return ScTpDefaultsOptions::Create;
    1619                 :            :         case    RID_SCPAGE_PRINT :
    1620                 :          0 :             return ScTpPrintOptions::Create;
    1621                 :            :             //break;
    1622                 :            :         case    RID_SCPAGE_STAT :
    1623                 :          0 :             return ScDocStatPage::Create;
    1624                 :            :             //break;
    1625                 :            :         case RID_SCPAGE_USERLISTS :
    1626                 :          0 :              return ScTpUserLists::Create;
    1627                 :            :             //break;
    1628                 :            :         case RID_SCPAGE_CONTENT :
    1629                 :          0 :             return ScTpContentOptions::Create;
    1630                 :            :             //break;
    1631                 :            :         case RID_SCPAGE_LAYOUT :
    1632                 :          0 :             return ScTpLayoutOptions::Create;
    1633                 :            :             //break;
    1634                 :            : 
    1635                 :            :         default:
    1636                 :          0 :             break;
    1637                 :            :     }
    1638                 :            : 
    1639                 :          0 :     return 0;
    1640                 :            : }
    1641                 :            : 
    1642                 :          0 : GetTabPageRanges ScAbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId )
    1643                 :            : {
    1644                 :          0 :     switch ( nId )
    1645                 :            :     {
    1646                 :            :     case TP_VALIDATION_VALUES :
    1647                 :          0 :             return ScTPValidationValue::GetRanges;
    1648                 :            :             //break;
    1649                 :            :         default:
    1650                 :          0 :             break;
    1651                 :            :     }
    1652                 :            : 
    1653                 :          0 :     return 0;
    1654                 :          0 : }
    1655                 :            : 
    1656                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10