LCOV - code coverage report
Current view: top level - sw/source/ui/dialog - swdlgfact.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 761 0.0 %
Date: 2012-08-25 Functions: 0 246 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                 :            : #include "swdlgfact.hxx"
      30                 :            : #include <svl/style.hxx>
      31                 :            : #include <svx/svxids.hrc>
      32                 :            : #include "dialog.hrc"
      33                 :            : #include "misc.hrc"
      34                 :            : #include "chrdlg.hrc"
      35                 :            : #include "table.hrc"
      36                 :            : #include "frmui.hrc"
      37                 :            : #include "dbui.hrc"
      38                 :            : #include "globals.hrc"
      39                 :            : #include "fldui.hrc"
      40                 :            : #include "envelp.hrc"
      41                 :            : #include "dochdl.hrc"
      42                 :            : #include <index.hrc>
      43                 :            : #include <regionsw.hrc>
      44                 :            : #include <fmtui.hrc>
      45                 :            : 
      46                 :            : #include <wordcountdialog.hxx>
      47                 :            : #include "abstract.hxx" // add for SwInsertAbstractDlg
      48                 :            : #include "addrdlg.hxx" // add for SwAddrDlg
      49                 :            : #include "ascfldlg.hxx" // add for SwAsciiFilterDlg
      50                 :            : #include "bookmark.hxx" //add for SwInsertBookmarkDlg
      51                 :            : #include "break.hxx" //add for SwBreakDlg
      52                 :            : #include "changedb.hxx" //add for SwChangeDBDlg
      53                 :            : #include "chrdlg.hxx" // add for SwCharDlg
      54                 :            : #include "convert.hxx" //add for SwConvertTableDlg
      55                 :            : #include "cption.hxx" //add for SwCaptionDialog
      56                 :            : #include "dbinsdlg.hxx" //add for  SwInsertDBColAutoPilot
      57                 :            : #include "docfnote.hxx" //add for SwFootNoteOptionDlg
      58                 :            : #include "docstdlg.hxx" //add for SwDocStatPage
      59                 :            : #include "DropDownFieldDialog.hxx" //add for DropDownFieldDialog
      60                 :            : #include "envlop.hxx" //add for SwEnvDlg
      61                 :            : #include "label.hxx" //add for SwLabDlg
      62                 :            : #include "drpcps.hxx" //add for SwDropCapsDlg
      63                 :            : #include "swuipardlg.hxx" //add for SwParaDlg
      64                 :            : #include "pattern.hxx" //add for SwBackgroundDlg
      65                 :            : #include "rowht.hxx" //add for SwTableHeightDlg
      66                 :            : #include "selglos.hxx" //add for SwSelGlossaryDlg
      67                 :            : #include "splittbl.hxx" //add for SwSplitTblDlg
      68                 :            : #include "srtdlg.hxx" //add for SwSortDlg
      69                 :            : #include "tautofmt.hxx" //add for SwAutoFormatDlg
      70                 :            : #include "tblnumfm.hxx" //add for SwNumFmtDlg
      71                 :            : #include "uiborder.hxx" //add for SwBorderDlg
      72                 :            : #include "wrap.hxx" //add for SwWrapDlg
      73                 :            : #include "colwd.hxx" //add for SwTableWidthDlg
      74                 :            : #include "tabledlg.hxx" //add for SwTableTabDlg
      75                 :            : #include "fldtdlg.hxx" //add for SwFldDlg
      76                 :            : #include "fldedt.hxx" //add for SwFldEditDlg
      77                 :            : #include "swrenamexnameddlg.hxx" //add for SwRenameXNamedDlg
      78                 :            : #include "swmodalredlineacceptdlg.hxx" //add for SwModalRedlineAcceptDlg
      79                 :            : #include <frmdlg.hxx> //add for SwFrmDlg
      80                 :            : #include <tmpdlg.hxx> //add for SwTemplateDlg
      81                 :            : #include <glossary.hxx> //add for SwGlossaryDlg
      82                 :            : #include <inpdlg.hxx> //add for SwFldInputDlg
      83                 :            : #include <insfnote.hxx> //add for SwInsFootNoteDlg
      84                 :            : #include <insrule.hxx> //add for SwInsertGrfRulerDlg
      85                 :            : #include <instable.hxx> //add for SwInsTableDlg
      86                 :            : #include <javaedit.hxx> //add for SwJavaEditDialog
      87                 :            : #include <linenum.hxx> //add for SwLineNumberingDlg
      88                 :            : #include <titlepage.hxx> //add for SwTitlePageDlg
      89                 :            : #include <mailmrge.hxx> //add for SwMailMergeDlg, SwMailMergeCreateFromDlg, SwMailMergeFieldConnectionsDlg
      90                 :            : #include <mergetbl.hxx> //add for SwMergeTblDlg
      91                 :            : #include <multmrk.hxx> //add for SwMultiTOXMarkDlg
      92                 :            : #include <num.hxx> //add for SwSvxNumBulletTabDialog
      93                 :            : #include <outline.hxx> //add for SwOutlineTabDialog
      94                 :            : #include <column.hxx> //add for SwColumnDlg
      95                 :            : #include <cnttab.hxx> //add for SwMultiTOXTabDialog
      96                 :            : #include <swuicnttab.hxx> //add for SwMultiTOXTabDialog
      97                 :            : #include <regionsw.hxx> //add for SwEditRegionDlg, SwInsertSectionTabDialog
      98                 :            : #include <optcomp.hxx> //add for SwCompatibilityOptPage
      99                 :            : #include <optload.hxx> //add for SwLoadOptPage
     100                 :            : #include <optpage.hxx> //add for OptPage
     101                 :            : #include <swuiidxmrk.hxx> //add for SwIndexMarkDlg, SwAuthMarkDlg, SwIndexMarkModalDlg, SwAuthMarkModalDlg
     102                 :            : #include <svx/dialogs.hrc>
     103                 :            : #include <mailmergewizard.hxx>
     104                 :            : #include <mailconfigpage.hxx>
     105                 :            : 
     106                 :            : using namespace ::com::sun::star;
     107                 :            : 
     108                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwWordCountFloatDlg_Impl);
     109                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwInsertAbstractDlg_Impl);
     110                 :          0 : IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl);
     111                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwAsciiFilterDlg_Impl);
     112                 :          0 : IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl);
     113                 :          0 : IMPL_ABSTDLG_BASE(AbstractSplitTableDialog_Impl);
     114                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwBreakDlg_Impl); //add for SwBreakDlg
     115                 :          0 : IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for SwCharDlg, SwFootNoteOptionDlg, SwEnvDlg  SwParaDlg SwTableTabDlg
     116                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwConvertTableDlg_Impl); //add for SwConvertTableDlg
     117                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwInsertDBColAutoPilot_Impl); //add for SwInsertDBColAutoPilot
     118                 :          0 : IMPL_ABSTDLG_BASE(AbstractDropDownFieldDialog_Impl); //add for DropDownFieldDialog
     119                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwLabDlg_Impl);//add for SwLabDlg
     120                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwSelGlossaryDlg_Impl);//add for SwSelGlossaryDlg
     121                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwAutoFormatDlg_Impl); //add for SwAutoFormatDlg
     122                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwFldDlg_Impl); //add for SwFldDlg
     123                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwRenameXNamedDlg_Impl); //add for SwRenameXNamedDlg
     124                 :          0 : IMPL_ABSTDLG_BASE(AbstractSwModalRedlineAcceptDlg_Impl); //add for SwModalRedlineAcceptDlg
     125                 :          0 : IMPL_ABSTDLG_BASE(AbstractGlossaryDlg_Impl);
     126                 :          0 : IMPL_ABSTDLG_BASE(AbstractFldInputDlg_Impl);
     127                 :          0 : IMPL_ABSTDLG_BASE(AbstractInsFootNoteDlg_Impl);
     128                 :          0 : IMPL_ABSTDLG_BASE(AbstractInsertGrfRulerDlg_Impl);
     129                 :          0 : IMPL_ABSTDLG_BASE(AbstractInsTableDlg_Impl);
     130                 :          0 : IMPL_ABSTDLG_BASE(AbstractJavaEditDialog_Impl);
     131                 :          0 : IMPL_ABSTDLG_BASE(AbstractMailMergeDlg_Impl);
     132                 :          0 : IMPL_ABSTDLG_BASE(AbstractMailMergeCreateFromDlg_Impl);
     133                 :          0 : IMPL_ABSTDLG_BASE(AbstractMailMergeFieldConnectionsDlg_Impl);
     134                 :          0 : IMPL_ABSTDLG_BASE(AbstractMultiTOXTabDialog_Impl);
     135                 :          0 : IMPL_ABSTDLG_BASE(AbstractEditRegionDlg_Impl);
     136                 :          0 : IMPL_ABSTDLG_BASE(AbstractInsertSectionTabDialog_Impl);
     137                 :          0 : IMPL_ABSTDLG_BASE(AbstractIndexMarkFloatDlg_Impl);
     138                 :          0 : IMPL_ABSTDLG_BASE(AbstractAuthMarkFloatDlg_Impl);
     139                 :            : 
     140                 :          0 : void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
     141                 :            : {
     142                 :          0 :     pDlg->SetCurPageId( nId );
     143                 :          0 : }
     144                 :            : 
     145                 :          0 : const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
     146                 :            : {
     147                 :          0 :     return pDlg->GetOutputItemSet();
     148                 :            : }
     149                 :            : 
     150                 :          0 : const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
     151                 :            : {
     152                 :          0 :     return pDlg->GetInputRanges( pItem );
     153                 :            : }
     154                 :            : 
     155                 :          0 : void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
     156                 :            : {
     157                 :          0 :      pDlg->SetInputSet( pInSet );
     158                 :          0 : }
     159                 :            : 
     160                 :            : //From class Window.
     161                 :          0 : void AbstractTabDialog_Impl::SetText( const XubString& rStr )
     162                 :            : {
     163                 :          0 :     pDlg->SetText( rStr );
     164                 :          0 : }
     165                 :            : 
     166                 :          0 : String AbstractTabDialog_Impl::GetText() const
     167                 :            : {
     168                 :          0 :     return pDlg->GetText();
     169                 :            : }
     170                 :            : 
     171                 :          0 : sal_uInt8 AbstractSwInsertAbstractDlg_Impl::GetLevel() const
     172                 :            : {
     173                 :          0 :     return pDlg->GetLevel();
     174                 :            : }
     175                 :          0 : sal_uInt8 AbstractSwInsertAbstractDlg_Impl::GetPara() const
     176                 :            : {
     177                 :          0 :     return pDlg->GetPara();
     178                 :            : }
     179                 :            : 
     180                 :            : //add for SwAddrDlg, SwDropCapsDlg ,SwBackgroundDlg, SwNumFmtDlg SwBorderDlg SwWrapDlg  SwFldEditDlg begin
     181                 :          0 : const SfxItemSet* AbstractSfxDialog_Impl::GetOutputItemSet() const
     182                 :            : {
     183                 :          0 :     return pDlg->GetOutputItemSet();
     184                 :            : }
     185                 :            : 
     186                 :          0 : void AbstractSfxDialog_Impl::SetText( const XubString& rStr )
     187                 :            : {
     188                 :          0 :     pDlg->SetText( rStr );
     189                 :          0 : }
     190                 :            : 
     191                 :          0 : String AbstractSfxDialog_Impl::GetText() const
     192                 :            : {
     193                 :          0 :     return pDlg->GetText();
     194                 :            : }
     195                 :            : 
     196                 :          0 : void AbstractSwAsciiFilterDlg_Impl::FillOptions( SwAsciiOptions& rOptions )
     197                 :            : {
     198                 :          0 :     pDlg->FillOptions(rOptions);
     199                 :          0 : }
     200                 :            : 
     201                 :          0 : sal_uInt16 AbstractSplitTableDialog_Impl::GetSplitMode()
     202                 :            : {
     203                 :          0 :     return pDlg->GetSplitMode();
     204                 :            : }
     205                 :            : 
     206                 :          0 : String AbstractSwBreakDlg_Impl::GetTemplateName()
     207                 :            : {
     208                 :          0 :     return pDlg->GetTemplateName();
     209                 :            : }
     210                 :            : 
     211                 :          0 : sal_uInt16 AbstractSwBreakDlg_Impl:: GetKind()
     212                 :            : {
     213                 :          0 :     return pDlg->GetKind();
     214                 :            : }
     215                 :            : 
     216                 :          0 : sal_uInt16 AbstractSwBreakDlg_Impl:: GetPageNumber()
     217                 :            : {
     218                 :          0 :     return pDlg->GetPageNumber();
     219                 :            : }
     220                 :            : 
     221                 :          0 : void AbstractSwConvertTableDlg_Impl::GetValues( sal_Unicode& rDelim,SwInsertTableOptions& rInsTblFlags,
     222                 :            :                                                 SwTableAutoFmt const*& prTAFmt)
     223                 :            : {
     224                 :          0 :     pDlg->GetValues(rDelim,rInsTblFlags, prTAFmt);
     225                 :          0 : }
     226                 :            : 
     227                 :          0 : void AbstractSwInsertDBColAutoPilot_Impl::DataToDoc( const uno::Sequence< uno::Any >& rSelection,
     228                 :            :         uno::Reference< sdbc::XDataSource> rxSource,
     229                 :            :         uno::Reference< sdbc::XConnection> xConnection,
     230                 :            :         uno::Reference< sdbc::XResultSet > xResultSet)
     231                 :            : {
     232                 :          0 :     pDlg->DataToDoc(rSelection, rxSource, xConnection, xResultSet);
     233                 :          0 : }
     234                 :            : 
     235                 :          0 : rtl::OString AbstractDropDownFieldDialog_Impl::GetWindowState( sal_uLong nMask  ) const
     236                 :            : {
     237                 :          0 :     return pDlg->GetWindowState(nMask);
     238                 :            : }
     239                 :            : 
     240                 :          0 : void AbstractDropDownFieldDialog_Impl::SetWindowState( const rtl::OString& rStr )
     241                 :            : {
     242                 :          0 :     pDlg->SetWindowState(rStr);
     243                 :          0 : }
     244                 :            : 
     245                 :          0 : void AbstractSwLabDlg_Impl::SetCurPageId( sal_uInt16 nId )
     246                 :            : {
     247                 :          0 :     pDlg->SetCurPageId( nId );
     248                 :          0 : }
     249                 :            : 
     250                 :          0 : const SfxItemSet* AbstractSwLabDlg_Impl::GetOutputItemSet() const
     251                 :            : {
     252                 :          0 :     return pDlg->GetOutputItemSet();
     253                 :            : }
     254                 :            : 
     255                 :          0 : const sal_uInt16* AbstractSwLabDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
     256                 :            : {
     257                 :          0 :     return pDlg->GetInputRanges( pItem );
     258                 :            : }
     259                 :            : 
     260                 :          0 : void AbstractSwLabDlg_Impl::SetInputSet( const SfxItemSet* pInSet )
     261                 :            : {
     262                 :          0 :      pDlg->SetInputSet( pInSet );
     263                 :          0 : }
     264                 :            : 
     265                 :          0 : void AbstractSwLabDlg_Impl::SetText( const XubString& rStr )
     266                 :            : {
     267                 :          0 :     pDlg->SetText( rStr );
     268                 :          0 : }
     269                 :            : 
     270                 :          0 : String AbstractSwLabDlg_Impl::GetText() const
     271                 :            : {
     272                 :          0 :     return pDlg->GetText();
     273                 :            : }
     274                 :            : 
     275                 :          0 : const String& AbstractSwLabDlg_Impl::GetBusinessCardStr() const
     276                 :            : {
     277                 :          0 :     return pDlg->GetBusinessCardStr();
     278                 :            : }
     279                 :            : 
     280                 :          0 : Printer * AbstractSwLabDlg_Impl::GetPrt()
     281                 :            : {
     282                 :          0 :     return pDlg->GetPrt();
     283                 :            : }
     284                 :            : 
     285                 :          0 : void AbstractSwSelGlossaryDlg_Impl::InsertGlos(const String &rRegion, const String &rGlosName)
     286                 :            : {
     287                 :          0 :     pDlg->InsertGlos( rRegion, rGlosName );
     288                 :          0 : }
     289                 :            : 
     290                 :          0 : sal_uInt16 AbstractSwSelGlossaryDlg_Impl::GetSelectedIdx() const
     291                 :            : {
     292                 :          0 :     return pDlg->GetSelectedIdx();
     293                 :            : }
     294                 :            : 
     295                 :          0 : void AbstractSwSelGlossaryDlg_Impl::SelectEntryPos(sal_uInt16 nIdx)
     296                 :            : {
     297                 :          0 :     pDlg->SelectEntryPos( nIdx );
     298                 :          0 : }
     299                 :            : 
     300                 :          0 : void AbstractSwAutoFormatDlg_Impl::FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const
     301                 :            : {
     302                 :          0 :     pDlg->FillAutoFmtOfIndex(rToFill);
     303                 :          0 : }
     304                 :            : 
     305                 :          0 : void AbstractSwFldDlg_Impl::SetCurPageId( sal_uInt16 nId )
     306                 :            : {
     307                 :          0 :     pDlg->SetCurPageId( nId );
     308                 :          0 : }
     309                 :            : 
     310                 :          0 : const SfxItemSet* AbstractSwFldDlg_Impl::GetOutputItemSet() const
     311                 :            : {
     312                 :          0 :     return pDlg->GetOutputItemSet();
     313                 :            : }
     314                 :            : 
     315                 :          0 : const sal_uInt16* AbstractSwFldDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
     316                 :            : {
     317                 :          0 :     return pDlg->GetInputRanges( pItem );
     318                 :            : }
     319                 :            : 
     320                 :          0 : void AbstractSwFldDlg_Impl::SetInputSet( const SfxItemSet* pInSet )
     321                 :            : {
     322                 :          0 :      pDlg->SetInputSet( pInSet );
     323                 :          0 : }
     324                 :            : 
     325                 :          0 : void AbstractSwFldDlg_Impl::SetText( const XubString& rStr )
     326                 :            : {
     327                 :          0 :     pDlg->SetText( rStr );
     328                 :          0 : }
     329                 :            : 
     330                 :          0 : String AbstractSwFldDlg_Impl::GetText() const
     331                 :            : {
     332                 :          0 :     return pDlg->GetText();
     333                 :            : }
     334                 :            : 
     335                 :          0 : void AbstractSwFldDlg_Impl::Start( sal_Bool bShowl )
     336                 :            : {
     337                 :          0 :     pDlg->Start( bShowl );
     338                 :          0 : }
     339                 :            : 
     340                 :          0 : void AbstractSwFldDlg_Impl::Initialize(SfxChildWinInfo *pInfo)
     341                 :            : {
     342                 :          0 :     pDlg->Initialize( pInfo );
     343                 :          0 : }
     344                 :            : 
     345                 :          0 : void AbstractSwFldDlg_Impl::ReInitDlg()
     346                 :            : {
     347                 :          0 :     pDlg->ReInitDlg();
     348                 :          0 : }
     349                 :            : 
     350                 :          0 : void AbstractSwFldDlg_Impl::ActivateDatabasePage()
     351                 :            : {
     352                 :          0 :     pDlg->ActivateDatabasePage();
     353                 :          0 : }
     354                 :            : 
     355                 :          0 : Window* AbstractSwFldDlg_Impl::GetWindow()
     356                 :            : {
     357                 :          0 :     return (Window*)pDlg;
     358                 :            : }
     359                 :          0 : void    AbstractSwFldDlg_Impl::ShowPage( sal_uInt16 nId )
     360                 :            : {
     361                 :          0 :     pDlg->ShowPage(nId);
     362                 :          0 : }
     363                 :            : 
     364                 :          0 : void AbstractSwRenameXNamedDlg_Impl::SetForbiddenChars( const String& rSet )
     365                 :            : {
     366                 :          0 :     pDlg->SetForbiddenChars( rSet );
     367                 :          0 : }
     368                 :            : 
     369                 :          0 : void    AbstractSwRenameXNamedDlg_Impl::SetAlternativeAccess(
     370                 :            :              ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xSecond,
     371                 :            :              ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xThird )
     372                 :            : {
     373                 :          0 :     pDlg->SetAlternativeAccess( xSecond, xThird);
     374                 :          0 : }
     375                 :            : 
     376                 :          0 : void    AbstractSwModalRedlineAcceptDlg_Impl::AcceptAll( sal_Bool bAccept )
     377                 :            : {
     378                 :          0 :     pDlg->AcceptAll( bAccept);
     379                 :          0 : }
     380                 :            : 
     381                 :          0 : String AbstractGlossaryDlg_Impl::GetCurrGrpName() const
     382                 :            : {
     383                 :          0 :     return pDlg->GetCurrGrpName();
     384                 :            : }
     385                 :            : 
     386                 :          0 : String AbstractGlossaryDlg_Impl::GetCurrShortName() const
     387                 :            : {
     388                 :          0 :     return pDlg->GetCurrShortName();
     389                 :            : }
     390                 :            : 
     391                 :          0 : void AbstractFldInputDlg_Impl::SetWindowState( const rtl::OString& rStr )
     392                 :            : {
     393                 :          0 :     pDlg->SetWindowState( rStr );
     394                 :          0 : }
     395                 :            : 
     396                 :          0 : rtl::OString AbstractFldInputDlg_Impl::GetWindowState( sal_uLong nMask ) const
     397                 :            : {
     398                 :          0 :     return pDlg->GetWindowState( nMask );
     399                 :            : }
     400                 :            : 
     401                 :          0 : String AbstractInsFootNoteDlg_Impl::GetFontName()
     402                 :            : {
     403                 :          0 :     return pDlg->GetFontName();
     404                 :            : }
     405                 :          0 : sal_Bool AbstractInsFootNoteDlg_Impl::IsEndNote()
     406                 :            : {
     407                 :          0 :     return pDlg->IsEndNote();
     408                 :            : }
     409                 :            : 
     410                 :          0 : String AbstractInsFootNoteDlg_Impl::GetStr()
     411                 :            : {
     412                 :          0 :     return pDlg->GetStr();
     413                 :            : }
     414                 :          0 : void AbstractInsFootNoteDlg_Impl::SetHelpId( const rtl::OString& sHelpId )
     415                 :            : {
     416                 :          0 :     pDlg->SetHelpId( sHelpId );
     417                 :          0 : }
     418                 :            : 
     419                 :          0 : void AbstractInsFootNoteDlg_Impl::SetText( const XubString& rStr )
     420                 :            : {
     421                 :          0 :     pDlg->SetText( rStr );
     422                 :          0 : }
     423                 :            : 
     424                 :          0 : String AbstractInsertGrfRulerDlg_Impl::GetGraphicName()
     425                 :            : {
     426                 :          0 :     return pDlg->GetGraphicName();
     427                 :            : }
     428                 :          0 : sal_Bool AbstractInsertGrfRulerDlg_Impl::IsSimpleLine()
     429                 :            : {
     430                 :          0 :     return pDlg->IsSimpleLine();
     431                 :            : }
     432                 :          0 : sal_Bool AbstractInsertGrfRulerDlg_Impl::HasImages() const
     433                 :            : {
     434                 :          0 :     return pDlg->HasImages();
     435                 :            : }
     436                 :            : 
     437                 :          0 : void AbstractInsTableDlg_Impl::GetValues( String& rName, sal_uInt16& rRow, sal_uInt16& rCol,
     438                 :            :                                 SwInsertTableOptions& rInsTblFlags, String& rTableAutoFmtName,
     439                 :            :                                 SwTableAutoFmt *& prTAFmt )
     440                 :            : {
     441                 :          0 :     pDlg->GetValues( rName, rRow, rCol, rInsTblFlags, rTableAutoFmtName, prTAFmt);
     442                 :          0 : }
     443                 :            : 
     444                 :          0 : String AbstractJavaEditDialog_Impl::GetText()
     445                 :            : {
     446                 :          0 :     return pDlg->GetText();
     447                 :            : }
     448                 :            : 
     449                 :          0 : String AbstractJavaEditDialog_Impl::GetType()
     450                 :            : {
     451                 :          0 :     return pDlg->GetType();
     452                 :            : }
     453                 :          0 : sal_Bool AbstractJavaEditDialog_Impl::IsUrl()
     454                 :            : {
     455                 :          0 :     return pDlg->IsUrl();
     456                 :            : }
     457                 :          0 : sal_Bool AbstractJavaEditDialog_Impl::IsNew()
     458                 :            : {
     459                 :          0 :     return pDlg->IsNew();
     460                 :            : }
     461                 :          0 : sal_Bool AbstractJavaEditDialog_Impl::IsUpdate()
     462                 :            : {
     463                 :          0 :     return pDlg->IsUpdate();
     464                 :            : }
     465                 :            : 
     466                 :          0 : sal_uInt16 AbstractMailMergeDlg_Impl::GetMergeType()
     467                 :            : {
     468                 :          0 :     return pDlg->GetMergeType();
     469                 :            : }
     470                 :            : 
     471                 :          0 : const ::rtl::OUString& AbstractMailMergeDlg_Impl::GetSaveFilter() const
     472                 :            : {
     473                 :          0 :     return pDlg->GetSaveFilter();
     474                 :            : }
     475                 :            : 
     476                 :          0 : const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > AbstractMailMergeDlg_Impl::GetSelection() const
     477                 :            : {
     478                 :          0 :     return pDlg->GetSelection();
     479                 :            : }
     480                 :            : 
     481                 :          0 : uno::Reference< sdbc::XResultSet> AbstractMailMergeDlg_Impl::GetResultSet() const
     482                 :            : {
     483                 :          0 :     return pDlg->GetResultSet();
     484                 :            : }
     485                 :          0 : bool AbstractMailMergeDlg_Impl::IsSaveIndividualDocs() const
     486                 :            : {
     487                 :          0 :     return pDlg->IsSaveIndividualDocs();
     488                 :            : }
     489                 :          0 : bool AbstractMailMergeDlg_Impl::IsGenerateFromDataBase() const
     490                 :            : {
     491                 :          0 :     return pDlg->IsGenerateFromDataBase();
     492                 :            : }
     493                 :          0 : String AbstractMailMergeDlg_Impl::GetColumnName() const
     494                 :            : {
     495                 :          0 :     return pDlg->GetColumnName();
     496                 :            : }
     497                 :          0 : String AbstractMailMergeDlg_Impl::GetPath() const
     498                 :            : {
     499                 :          0 :     return pDlg->GetPath();
     500                 :            : }
     501                 :            : 
     502                 :          0 : sal_Bool AbstractMailMergeCreateFromDlg_Impl::IsThisDocument() const
     503                 :            : {
     504                 :          0 :     return pDlg->IsThisDocument();
     505                 :            : }
     506                 :            : 
     507                 :          0 : sal_Bool AbstractMailMergeFieldConnectionsDlg_Impl::IsUseExistingConnections() const
     508                 :            : {
     509                 :          0 :     return pDlg->IsUseExistingConnections();
     510                 :            : }
     511                 :            : 
     512                 :          0 : SwForm* AbstractMultiTOXTabDialog_Impl::GetForm(CurTOXType eType)
     513                 :            : {
     514                 :          0 :     return pDlg->GetForm(eType);
     515                 :            : }
     516                 :            : 
     517                 :          0 : CurTOXType AbstractMultiTOXTabDialog_Impl::GetCurrentTOXType() const
     518                 :            : {
     519                 :          0 :     return pDlg->GetCurrentTOXType();
     520                 :            : }
     521                 :            : 
     522                 :          0 : SwTOXDescription& AbstractMultiTOXTabDialog_Impl::GetTOXDescription(CurTOXType eTOXTypes)
     523                 :            : {
     524                 :          0 :     return pDlg->GetTOXDescription(eTOXTypes);
     525                 :            : }
     526                 :            : 
     527                 :          0 : const SfxItemSet* AbstractMultiTOXTabDialog_Impl::GetOutputItemSet() const
     528                 :            : {
     529                 :          0 :     return pDlg->GetOutputItemSet();
     530                 :            : }
     531                 :            : 
     532                 :          0 : void AbstractEditRegionDlg_Impl::SelectSection(const String& rSectionName)
     533                 :            : {
     534                 :          0 :     pDlg->SelectSection(rSectionName);
     535                 :          0 : }
     536                 :            : 
     537                 :            : void
     538                 :          0 : AbstractInsertSectionTabDialog_Impl::SetSectionData(SwSectionData const& rSect)
     539                 :            : {
     540                 :          0 :     pDlg->SetSectionData(rSect);
     541                 :          0 : }
     542                 :            : 
     543                 :          0 : void AbstractIndexMarkFloatDlg_Impl::ReInitDlg(SwWrtShell& rWrtShell)
     544                 :            : {
     545                 :          0 :     pDlg->ReInitDlg( rWrtShell);
     546                 :          0 : }
     547                 :            : 
     548                 :          0 : Window* AbstractIndexMarkFloatDlg_Impl::GetWindow()
     549                 :            : {
     550                 :          0 :     return (Window*)pDlg;
     551                 :            : }
     552                 :            : 
     553                 :          0 : void AbstractAuthMarkFloatDlg_Impl::ReInitDlg(SwWrtShell& rWrtShell)
     554                 :            : {
     555                 :          0 :     pDlg->ReInitDlg( rWrtShell);
     556                 :          0 : }
     557                 :            : 
     558                 :          0 : Window* AbstractAuthMarkFloatDlg_Impl::GetWindow()
     559                 :            : {
     560                 :          0 :     return (Window*)pDlg;
     561                 :            : }
     562                 :            : 
     563                 :            : 
     564                 :          0 : Window* AbstractSwWordCountFloatDlg_Impl::GetWindow()
     565                 :            : {
     566                 :          0 :     return (Window*)pDlg;
     567                 :            : }
     568                 :            : 
     569                 :          0 : void AbstractSwWordCountFloatDlg_Impl::UpdateCounts()
     570                 :            : {
     571                 :          0 :     pDlg->UpdateCounts();
     572                 :          0 : }
     573                 :            : 
     574                 :            : 
     575                 :          0 : AbstractMailMergeWizard_Impl::~AbstractMailMergeWizard_Impl()
     576                 :            : {
     577                 :          0 :     delete pDlg;
     578                 :          0 : }
     579                 :            : 
     580                 :          0 : void AbstractMailMergeWizard_Impl::StartExecuteModal( const Link& rEndDialogHdl )
     581                 :            : {
     582                 :          0 :     aEndDlgHdl = rEndDialogHdl;
     583                 :            :     pDlg->StartExecuteModal(
     584                 :          0 :         LINK( this, AbstractMailMergeWizard_Impl, EndDialogHdl ) );
     585                 :          0 : }
     586                 :            : 
     587                 :          0 : long AbstractMailMergeWizard_Impl::GetResult()
     588                 :            : {
     589                 :          0 :     return pDlg->GetResult();
     590                 :            : }
     591                 :            : 
     592                 :          0 : IMPL_LINK( AbstractMailMergeWizard_Impl, EndDialogHdl, SwMailMergeWizard*, pDialog )
     593                 :            : {
     594                 :            :     OSL_ENSURE( pDialog == pDlg, "wrong dialog passed to EndDialogHdl!" );
     595                 :            :     (void) pDialog; // unused in non-debug
     596                 :            : 
     597                 :          0 :     aEndDlgHdl.Call( this );
     598                 :          0 :     aEndDlgHdl = Link();
     599                 :            : 
     600                 :          0 :     return 0L;
     601                 :            : }
     602                 :            : 
     603                 :          0 : void AbstractMailMergeWizard_Impl::SetReloadDocument(const String& rURL)
     604                 :            : {
     605                 :          0 :     pDlg->SetReloadDocument(rURL);
     606                 :          0 : }
     607                 :            : 
     608                 :          0 : const String&       AbstractMailMergeWizard_Impl::GetReloadDocument() const
     609                 :            : {
     610                 :          0 :     return pDlg->GetReloadDocument();
     611                 :            : }
     612                 :          0 : sal_Bool AbstractMailMergeWizard_Impl::ShowPage( sal_uInt16 nLevel )
     613                 :            : {
     614                 :          0 :     return pDlg->skipUntil(nLevel);
     615                 :            : }
     616                 :            : 
     617                 :          0 : sal_uInt16 AbstractMailMergeWizard_Impl::GetRestartPage() const
     618                 :            : {
     619                 :          0 :     return pDlg->GetRestartPage();
     620                 :            : }
     621                 :            : 
     622                 :          0 : AbstractSwInsertAbstractDlg * SwAbstractDialogFactory_Impl::CreateSwInsertAbstractDlg( Window* pParent,
     623                 :            :                                                                                       int nResId )
     624                 :            : {
     625                 :          0 :     SwInsertAbstractDlg* pDlg=NULL;
     626                 :          0 :     switch ( nResId )
     627                 :            :     {
     628                 :            :         case DLG_INSERT_ABSTRACT :
     629                 :          0 :             pDlg = new SwInsertAbstractDlg( pParent);
     630                 :          0 :             break;
     631                 :            :         default:
     632                 :          0 :             break;
     633                 :            :     }
     634                 :            : 
     635                 :          0 :     if ( pDlg )
     636                 :          0 :         return new AbstractSwInsertAbstractDlg_Impl( pDlg );
     637                 :          0 :     return 0;
     638                 :            : }
     639                 :            : 
     640                 :          0 : SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
     641                 :            :                                                                         const SfxItemSet& rSet,
     642                 :            :                                     const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >&,
     643                 :            :                                                                         sal_uInt32 nResId
     644                 :            :                                                                 )
     645                 :            : {
     646                 :          0 :     SfxModalDialog* pDlg=NULL;
     647                 :          0 :     switch ( nResId )
     648                 :            :     {
     649                 :            :         case RC_DLG_ADDR :
     650                 :          0 :             pDlg = new SwAddrDlg( pParent, rSet );
     651                 :          0 :             break;
     652                 :            :         case DLG_SWDROPCAPS :
     653                 :          0 :             pDlg = new SwDropCapsDlg( pParent, rSet );
     654                 :          0 :             break;
     655                 :            :         case RC_SWDLG_BACKGROUND :
     656                 :          0 :             pDlg = new SwBackgroundDlg( pParent, rSet );
     657                 :          0 :             break;
     658                 :            :         case RC_DLG_SWNUMFMTDLG :
     659                 :          0 :             pDlg = new SwNumFmtDlg( pParent, rSet );
     660                 :          0 :             break;
     661                 :            :         default:
     662                 :          0 :             break;
     663                 :            :     }
     664                 :            : 
     665                 :          0 :     if ( pDlg )
     666                 :          0 :         return new AbstractSfxDialog_Impl( pDlg );
     667                 :          0 :     return 0;
     668                 :            : }
     669                 :            : 
     670                 :          0 : AbstractSwAsciiFilterDlg* SwAbstractDialogFactory_Impl::CreateSwAsciiFilterDlg( Window* pParent,
     671                 :            :                                                                                SwDocShell& rDocSh,
     672                 :            :                                                                                 SvStream* pStream,
     673                 :            :                                                                                 int nResId )
     674                 :            : {
     675                 :          0 :     SwAsciiFilterDlg* pDlg=NULL;
     676                 :          0 :     switch ( nResId )
     677                 :            :     {
     678                 :            :         case DLG_ASCII_FILTER :
     679                 :          0 :             pDlg = new SwAsciiFilterDlg( pParent, rDocSh, pStream );
     680                 :          0 :             break;
     681                 :            : 
     682                 :            :         default:
     683                 :          0 :             break;
     684                 :            :     }
     685                 :            : 
     686                 :          0 :     if ( pDlg )
     687                 :          0 :         return new AbstractSwAsciiFilterDlg_Impl( pDlg );
     688                 :          0 :     return 0;
     689                 :            : }
     690                 :            : 
     691                 :          0 : VclAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwInsertBookmarkDlg( Window *pParent,
     692                 :            :                                                                            SwWrtShell &rSh,
     693                 :            :                                                                            SfxRequest& rReq,
     694                 :            :                                                                            int nResId )
     695                 :            : {
     696                 :          0 :     Dialog* pDlg=NULL;
     697                 :          0 :     switch ( nResId )
     698                 :            :     {
     699                 :            :         case DLG_INSERT_BOOKMARK :
     700                 :          0 :             pDlg = new SwInsertBookmarkDlg( pParent, rSh, rReq );
     701                 :          0 :             break;
     702                 :            : 
     703                 :            :         default:
     704                 :          0 :             break;
     705                 :            :     }
     706                 :            : 
     707                 :          0 :     if ( pDlg )
     708                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
     709                 :          0 :     return 0;
     710                 :            : }
     711                 :            : 
     712                 :          0 : AbstractSwBreakDlg * SwAbstractDialogFactory_Impl::CreateSwBreakDlg ( Window *pParent,
     713                 :            :                                                                      SwWrtShell &rSh,
     714                 :            :                                                                      int nResId )
     715                 :            : {
     716                 :          0 :     SwBreakDlg* pDlg=NULL;
     717                 :          0 :     switch ( nResId )
     718                 :            :     {
     719                 :            :         case DLG_BREAK :
     720                 :          0 :             pDlg = new SwBreakDlg( pParent, rSh );
     721                 :          0 :             break;
     722                 :            : 
     723                 :            :         default:
     724                 :          0 :             break;
     725                 :            :     }
     726                 :            : 
     727                 :          0 :     if ( pDlg )
     728                 :          0 :         return new AbstractSwBreakDlg_Impl( pDlg );
     729                 :          0 :     return 0;
     730                 :            : }
     731                 :            : 
     732                 :          0 : VclAbstractDialog   * SwAbstractDialogFactory_Impl::CreateSwChangeDBDlg( SwView& rVw, int nResId  )
     733                 :            : {
     734                 :          0 :     Dialog* pDlg=NULL;
     735                 :          0 :     switch ( nResId )
     736                 :            :     {
     737                 :            :         case DLG_CHANGE_DB :
     738                 :          0 :             pDlg = new SwChangeDBDlg( rVw );
     739                 :          0 :             break;
     740                 :            : 
     741                 :            :         default:
     742                 :          0 :             break;
     743                 :            :     }
     744                 :            : 
     745                 :          0 :     if ( pDlg )
     746                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
     747                 :          0 :     return 0;
     748                 :            : }
     749                 :            : 
     750                 :            : 
     751                 :          0 : SfxAbstractTabDialog *  SwAbstractDialogFactory_Impl::CreateSwCharDlg(Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet, int nResId, // add for SwCharDlg
     752                 :            :                                                 const String* pFmtStr , sal_Bool bIsDrwTxtDlg )
     753                 :            : {
     754                 :            : 
     755                 :          0 :     SfxTabDialog* pDlg=NULL;
     756                 :          0 :     switch ( nResId )
     757                 :            :     {
     758                 :            :         case DLG_CHAR :
     759                 :          0 :             pDlg = new SwCharDlg( pParent, pVw, rCoreSet, pFmtStr, bIsDrwTxtDlg );
     760                 :          0 :             break;
     761                 :            :         default:
     762                 :          0 :             break;
     763                 :            :     }
     764                 :            : 
     765                 :          0 :     if ( pDlg )
     766                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
     767                 :          0 :     return 0;
     768                 :            : 
     769                 :            : }
     770                 :            : 
     771                 :          0 : AbstractSwConvertTableDlg* SwAbstractDialogFactory_Impl::CreateSwConvertTableDlg (
     772                 :            :                                     SwView& rView,int nResId, bool bToTable )
     773                 :            : {
     774                 :          0 :     SwConvertTableDlg* pDlg=NULL;
     775                 :          0 :     switch ( nResId )
     776                 :            :     {
     777                 :            :         case DLG_CONV_TEXT_TABLE :
     778                 :          0 :             pDlg = new SwConvertTableDlg( rView, bToTable );
     779                 :          0 :             break;
     780                 :            :         default:
     781                 :          0 :             break;
     782                 :            :     }
     783                 :            : 
     784                 :          0 :     if ( pDlg )
     785                 :          0 :         return new AbstractSwConvertTableDlg_Impl( pDlg );
     786                 :          0 :     return 0;
     787                 :            : }
     788                 :            : 
     789                 :          0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwCaptionDialog ( Window *pParent, SwView &rV,int nResId)
     790                 :            : {
     791                 :          0 :     Dialog* pDlg=NULL;
     792                 :          0 :     switch ( nResId )
     793                 :            :     {
     794                 :            :         case DLG_CAPTION :
     795                 :          0 :             pDlg = new SwCaptionDialog( pParent, rV );
     796                 :          0 :             break;
     797                 :            : 
     798                 :            :         default:
     799                 :          0 :             break;
     800                 :            :     }
     801                 :            : 
     802                 :          0 :     if ( pDlg )
     803                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
     804                 :          0 :     return 0;
     805                 :            : }
     806                 :            : 
     807                 :          0 : AbstractSwInsertDBColAutoPilot* SwAbstractDialogFactory_Impl::CreateSwInsertDBColAutoPilot( SwView& rView, // add for SwInsertDBColAutoPilot
     808                 :            :         uno::Reference< sdbc::XDataSource> rxSource,
     809                 :            :         uno::Reference<sdbcx::XColumnsSupplier> xColSupp,
     810                 :            :         const SwDBData& rData,  int nResId)
     811                 :            : {
     812                 :          0 :     SwInsertDBColAutoPilot* pDlg=NULL;
     813                 :          0 :     switch ( nResId )
     814                 :            :     {
     815                 :            :         case DLG_AP_INSERT_DB_SEL :
     816                 :          0 :             pDlg = new SwInsertDBColAutoPilot( rView, rxSource, xColSupp, rData );
     817                 :          0 :             break;
     818                 :            : 
     819                 :            :         default:
     820                 :          0 :             break;
     821                 :            :     }
     822                 :            : 
     823                 :          0 :     if ( pDlg )
     824                 :          0 :         return new AbstractSwInsertDBColAutoPilot_Impl( pDlg );
     825                 :          0 :     return 0;
     826                 :            : }
     827                 :            : 
     828                 :          0 : SfxAbstractTabDialog *  SwAbstractDialogFactory_Impl::CreateSwFootNoteOptionDlg( Window *pParent, SwWrtShell &rSh,int nResId)
     829                 :            : {
     830                 :          0 :     SfxTabDialog* pDlg=NULL;
     831                 :          0 :     switch ( nResId )
     832                 :            :     {
     833                 :            :         case DLG_DOC_FOOTNOTE :
     834                 :          0 :             pDlg = new SwFootNoteOptionDlg( pParent, rSh );
     835                 :          0 :             break;
     836                 :            : 
     837                 :            :         default:
     838                 :          0 :             break;
     839                 :            :     }
     840                 :            : 
     841                 :          0 :     if ( pDlg )
     842                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
     843                 :          0 :     return 0;
     844                 :            : }
     845                 :            : 
     846                 :          0 : AbstractDropDownFieldDialog *  SwAbstractDialogFactory_Impl::CreateDropDownFieldDialog ( Window *pParent, SwWrtShell &rSh, //add for DropDownFieldDialog
     847                 :            :                                 SwField* pField,int nResId, sal_Bool bNextButton )
     848                 :            : {
     849                 :          0 :     sw::DropDownFieldDialog* pDlg=NULL;
     850                 :          0 :     switch ( nResId )
     851                 :            :     {
     852                 :            :         case DLG_FLD_DROPDOWN :
     853                 :          0 :             pDlg = new sw::DropDownFieldDialog( pParent, rSh, pField, bNextButton );
     854                 :          0 :             break;
     855                 :            : 
     856                 :            :         default:
     857                 :          0 :             break;
     858                 :            :     }
     859                 :            : 
     860                 :          0 :     if ( pDlg )
     861                 :          0 :         return new AbstractDropDownFieldDialog_Impl( pDlg );
     862                 :          0 :     return 0;
     863                 :            : }
     864                 :            : 
     865                 :          0 : SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwEnvDlg ( Window* pParent, const SfxItemSet& rSet,
     866                 :            :                                                                  SwWrtShell* pWrtSh, Printer* pPrt,
     867                 :            :                                                                  sal_Bool bInsert,int nResId ) //add for SwEnvDlg
     868                 :            : {
     869                 :          0 :     SfxTabDialog* pDlg=NULL;
     870                 :          0 :     switch ( nResId )
     871                 :            :     {
     872                 :            :         case DLG_ENV :
     873                 :          0 :             pDlg = new SwEnvDlg( pParent, rSet, pWrtSh,pPrt, bInsert  );
     874                 :          0 :             break;
     875                 :            : 
     876                 :            :         default:
     877                 :          0 :             break;
     878                 :            :     }
     879                 :            : 
     880                 :          0 :     if ( pDlg )
     881                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
     882                 :          0 :     return 0;
     883                 :            : }
     884                 :            : 
     885                 :          0 : AbstractSwLabDlg* SwAbstractDialogFactory_Impl::CreateSwLabDlg ( Window* pParent, const SfxItemSet& rSet, //add for SwLabDlg
     886                 :            :                                                      SwNewDBMgr* pNewDBMgr, sal_Bool bLabel,int nResId  )
     887                 :            : {
     888                 :          0 :     SwLabDlg* pDlg=NULL;
     889                 :          0 :     switch ( nResId )
     890                 :            :     {
     891                 :            :         case DLG_LAB :
     892                 :          0 :             pDlg = new SwLabDlg( pParent, rSet, pNewDBMgr,bLabel  );
     893                 :          0 :             break;
     894                 :            : 
     895                 :            :         default:
     896                 :          0 :             break;
     897                 :            :     }
     898                 :            : 
     899                 :          0 :     if ( pDlg )
     900                 :          0 :         return new AbstractSwLabDlg_Impl( pDlg );
     901                 :          0 :     return 0;
     902                 :            : }
     903                 :            : 
     904                 :          0 : SwLabDlgMethod SwAbstractDialogFactory_Impl::GetSwLabDlgStaticMethod ()
     905                 :            : {
     906                 :          0 :     return SwLabDlg::UpdateFieldInformation;
     907                 :            : }
     908                 :            : 
     909                 :            : 
     910                 :          0 : SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwParaDlg ( Window *pParent, SwView& rVw,
     911                 :            :                                                     const SfxItemSet& rCoreSet  ,
     912                 :            :                                                     sal_uInt8 nDialogMode,
     913                 :            :                                                     int nResId,
     914                 :            :                                                     const String *pCollName,
     915                 :            :                                                     sal_Bool bDraw , sal_uInt16 nDefPage)
     916                 :            : {
     917                 :          0 :     SfxTabDialog* pDlg=NULL;
     918                 :          0 :     switch ( nResId )
     919                 :            :     {
     920                 :            :         case DLG_DRAWPARA :
     921                 :            :         case DLG_PARA :
     922                 :          0 :             pDlg = new SwParaDlg( pParent, rVw, rCoreSet,nDialogMode, pCollName, bDraw, nDefPage );
     923                 :          0 :             break;
     924                 :            : 
     925                 :            :         default:
     926                 :          0 :             break;
     927                 :            :     }
     928                 :            : 
     929                 :          0 :     if ( pDlg )
     930                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
     931                 :          0 :     return 0;
     932                 :            : }
     933                 :            : 
     934                 :          0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclAbstractDialog ( Window *pParent, SwWrtShell &rSh, int nResId )
     935                 :            : {
     936                 :          0 :     Dialog* pDlg=NULL;
     937                 :          0 :     switch ( nResId )
     938                 :            :     {
     939                 :            :         case DLG_ROW_HEIGHT :
     940                 :          0 :             pDlg = new SwTableHeightDlg( pParent, rSh);
     941                 :          0 :             break;
     942                 :            : 
     943                 :            :         case DLG_SORTING :
     944                 :          0 :             pDlg = new SwSortDlg( pParent, rSh);
     945                 :          0 :             break;
     946                 :            :         case DLG_COLUMN :
     947                 :          0 :             pDlg = new SwColumnDlg( pParent, rSh );
     948                 :          0 :             break;
     949                 :            :         case DLG_EDIT_AUTHMARK :
     950                 :          0 :             pDlg = new SwAuthMarkModalDlg( pParent, rSh );
     951                 :          0 :             break;
     952                 :            :         default:
     953                 :          0 :             break;
     954                 :            :     }
     955                 :            : 
     956                 :          0 :     if ( pDlg )
     957                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
     958                 :          0 :     return 0;
     959                 :            : }
     960                 :            : 
     961                 :          0 : AbstractSplitTableDialog * SwAbstractDialogFactory_Impl::CreateSplitTblDialog ( Window *pParent, SwWrtShell &rSh )
     962                 :            : {
     963                 :          0 :     return new AbstractSplitTableDialog_Impl( new SwSplitTblDlg( pParent, rSh) );
     964                 :            : }
     965                 :            : 
     966                 :          0 : AbstractSwSelGlossaryDlg * SwAbstractDialogFactory_Impl::CreateSwSelGlossaryDlg ( Window * pParent, const String &rShortName, int nResId )
     967                 :            : {
     968                 :          0 :     SwSelGlossaryDlg* pDlg=NULL;
     969                 :          0 :     switch ( nResId )
     970                 :            :     {
     971                 :            :         case DLG_SEL_GLOS :
     972                 :          0 :             pDlg = new SwSelGlossaryDlg( pParent, rShortName);
     973                 :          0 :             break;
     974                 :            : 
     975                 :            :         default:
     976                 :          0 :             break;
     977                 :            :     }
     978                 :            : 
     979                 :          0 :     if ( pDlg )
     980                 :          0 :         return new AbstractSwSelGlossaryDlg_Impl( pDlg );
     981                 :          0 :     return 0;
     982                 :            : }
     983                 :            : 
     984                 :          0 : AbstractSwAutoFormatDlg * SwAbstractDialogFactory_Impl::CreateSwAutoFormatDlg( Window* pParent, SwWrtShell* pShell,
     985                 :            :                                                                                     int nResId,
     986                 :            :                                                                                     sal_Bool bSetAutoFmt,
     987                 :            :                                                                                     const SwTableAutoFmt* pSelFmt )
     988                 :            : {
     989                 :          0 :     SwAutoFormatDlg* pDlg=NULL;
     990                 :          0 :     switch ( nResId )
     991                 :            :     {
     992                 :            :         case DLG_AUTOFMT_TABLE :
     993                 :          0 :             pDlg = new SwAutoFormatDlg( pParent, pShell,bSetAutoFmt,pSelFmt);
     994                 :          0 :             break;
     995                 :            : 
     996                 :            :         default:
     997                 :          0 :             break;
     998                 :            :     }
     999                 :            : 
    1000                 :          0 :     if ( pDlg )
    1001                 :          0 :         return new AbstractSwAutoFormatDlg_Impl( pDlg );
    1002                 :          0 :     return 0;
    1003                 :            : }
    1004                 :            : 
    1005                 :          0 : SfxAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwBorderDlg (Window* pParent, SfxItemSet& rSet, sal_uInt16 nType,int nResId )
    1006                 :            : {
    1007                 :          0 :     SfxModalDialog* pDlg=NULL;
    1008                 :          0 :     switch ( nResId )
    1009                 :            :     {
    1010                 :            :         case RC_DLG_SWBORDERDLG :
    1011                 :          0 :             pDlg = new SwBorderDlg( pParent, rSet, nType );
    1012                 :          0 :             break;
    1013                 :            :         default:
    1014                 :          0 :             break;
    1015                 :            :     }
    1016                 :            : 
    1017                 :          0 :     if ( pDlg )
    1018                 :          0 :         return new AbstractSfxDialog_Impl( pDlg );
    1019                 :          0 :     return 0;
    1020                 :            : }
    1021                 :            : 
    1022                 :          0 : SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwWrapDlg ( Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, sal_Bool bDrawMode, int nResId )
    1023                 :            : {
    1024                 :          0 :     SfxModalDialog* pDlg=NULL;
    1025                 :          0 :     switch ( nResId )
    1026                 :            :     {
    1027                 :            :         case RC_DLG_SWWRAPDLG :
    1028                 :          0 :             pDlg = new SwWrapDlg( pParent, rSet, pSh, bDrawMode );
    1029                 :          0 :             break;
    1030                 :            :         default:
    1031                 :          0 :             break;
    1032                 :            :     }
    1033                 :            : 
    1034                 :          0 :     if ( pDlg )
    1035                 :          0 :         return new AbstractSfxDialog_Impl( pDlg );
    1036                 :          0 :     return 0;
    1037                 :            : }
    1038                 :            : 
    1039                 :          0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwTableWidthDlg ( Window *pParent, SwTableFUNC &rFnc , int nResId )
    1040                 :            : {
    1041                 :          0 :     Dialog* pDlg=NULL;
    1042                 :          0 :     switch ( nResId )
    1043                 :            :     {
    1044                 :            :         case DLG_COL_WIDTH :
    1045                 :          0 :             pDlg = new SwTableWidthDlg( pParent, rFnc);
    1046                 :          0 :             break;
    1047                 :            : 
    1048                 :            :         default:
    1049                 :          0 :             break;
    1050                 :            :     }
    1051                 :            : 
    1052                 :          0 :     if ( pDlg )
    1053                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
    1054                 :          0 :     return 0;
    1055                 :            : }
    1056                 :            : 
    1057                 :          0 : SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTableTabDlg( Window* pParent, SfxItemPool& Pool,
    1058                 :            :                                                         const SfxItemSet* pItemSet, SwWrtShell* pSh,int nResId )
    1059                 :            : {
    1060                 :          0 :     SfxTabDialog* pDlg=NULL;
    1061                 :          0 :     switch ( nResId )
    1062                 :            :     {
    1063                 :            :         case DLG_FORMAT_TABLE :
    1064                 :          0 :             pDlg = new SwTableTabDlg( pParent, Pool, pItemSet,pSh );
    1065                 :          0 :             break;
    1066                 :            : 
    1067                 :            :         default:
    1068                 :          0 :             break;
    1069                 :            :     }
    1070                 :            : 
    1071                 :          0 :     if ( pDlg )
    1072                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1073                 :          0 :     return 0;
    1074                 :            : }
    1075                 :            : 
    1076                 :          0 : AbstractSwFldDlg * SwAbstractDialogFactory_Impl::CreateSwFldDlg ( SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent, int nResId )
    1077                 :            : {
    1078                 :          0 :     SwFldDlg* pDlg=NULL;
    1079                 :          0 :     switch ( nResId )
    1080                 :            :     {
    1081                 :            :         case DLG_FLD_INSERT :
    1082                 :          0 :             pDlg = new SwFldDlg( pB, pCW,pParent);
    1083                 :          0 :             break;
    1084                 :            : 
    1085                 :            :         default:
    1086                 :          0 :             break;
    1087                 :            :     }
    1088                 :            : 
    1089                 :          0 :     if ( pDlg )
    1090                 :          0 :         return new AbstractSwFldDlg_Impl( pDlg );
    1091                 :          0 :     return 0;
    1092                 :            : }
    1093                 :            : 
    1094                 :          0 : SfxAbstractDialog*   SwAbstractDialogFactory_Impl::CreateSwFldEditDlg ( SwView& rVw, int nResId )
    1095                 :            : {
    1096                 :          0 :     SfxModalDialog* pDlg=NULL;
    1097                 :          0 :     switch ( nResId )
    1098                 :            :     {
    1099                 :            :         case RC_DLG_SWFLDEDITDLG :
    1100                 :          0 :             pDlg = new SwFldEditDlg( rVw );
    1101                 :          0 :             break;
    1102                 :            :         default:
    1103                 :          0 :             break;
    1104                 :            :     }
    1105                 :            : 
    1106                 :          0 :     if ( pDlg )
    1107                 :          0 :         return new AbstractSfxDialog_Impl( pDlg );
    1108                 :          0 :     return 0;
    1109                 :            : }
    1110                 :            : 
    1111                 :          0 : AbstractSwRenameXNamedDlg * SwAbstractDialogFactory_Impl::CreateSwRenameXNamedDlg( Window* pParent,
    1112                 :            :                                                                 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > & xNamed,
    1113                 :            :                                                                 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xNameAccess,int nResId )
    1114                 :            : {
    1115                 :          0 :     SwRenameXNamedDlg* pDlg=NULL;
    1116                 :          0 :     switch ( nResId )
    1117                 :            :     {
    1118                 :            :         case DLG_RENAME_XNAMED :
    1119                 :          0 :             pDlg = new SwRenameXNamedDlg( pParent,xNamed, xNameAccess);
    1120                 :          0 :             break;
    1121                 :            :         default:
    1122                 :          0 :             break;
    1123                 :            :     }
    1124                 :            : 
    1125                 :          0 :     if ( pDlg )
    1126                 :          0 :         return new AbstractSwRenameXNamedDlg_Impl( pDlg );
    1127                 :          0 :     return 0;
    1128                 :            : }
    1129                 :            : 
    1130                 :          0 : AbstractSwModalRedlineAcceptDlg * SwAbstractDialogFactory_Impl::CreateSwModalRedlineAcceptDlg ( Window *pParent, int nResId )
    1131                 :            : {
    1132                 :          0 :     SwModalRedlineAcceptDlg* pDlg=NULL;
    1133                 :          0 :     switch ( nResId )
    1134                 :            :     {
    1135                 :            :         case DLG_MOD_REDLINE_ACCEPT :
    1136                 :          0 :             pDlg = new SwModalRedlineAcceptDlg( pParent );
    1137                 :          0 :             break;
    1138                 :            :         default:
    1139                 :          0 :             break;
    1140                 :            :     }
    1141                 :            : 
    1142                 :          0 :     if ( pDlg )
    1143                 :          0 :         return new AbstractSwModalRedlineAcceptDlg_Impl( pDlg );
    1144                 :          0 :     return 0;
    1145                 :            : }
    1146                 :            : 
    1147                 :          0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwVclDialog( int nResId,
    1148                 :            :                                                 Window* pParent, sal_Bool& rWithPrev ) //add for SwMergeTblDlg
    1149                 :            : {
    1150                 :          0 :     Dialog* pDlg=NULL;
    1151                 :          0 :     switch ( nResId )
    1152                 :            :     {
    1153                 :            :         case DLG_MERGE_TABLE :
    1154                 :          0 :             pDlg = new SwMergeTblDlg( pParent, rWithPrev );
    1155                 :          0 :             break;
    1156                 :            :         default:
    1157                 :          0 :             break;
    1158                 :            :     }
    1159                 :          0 :     if ( pDlg )
    1160                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
    1161                 :          0 :     return 0;
    1162                 :            : }
    1163                 :            : 
    1164                 :          0 : SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateFrmTabDialog( int nResId,
    1165                 :            :                                                 SfxViewFrame *pFrame, Window *pParent,
    1166                 :            :                                                 const SfxItemSet& rCoreSet,
    1167                 :            :                                                 sal_Bool            bNewFrm,
    1168                 :            :                                                 sal_uInt16          nResType,
    1169                 :            :                                                 sal_Bool            bFmt,
    1170                 :            :                                                 sal_uInt16          nDefPage,
    1171                 :            :                                                 const String*   pFmtStr ) //add for SwFrmDlg
    1172                 :            : {
    1173                 :          0 :     SfxTabDialog* pDlg=NULL;
    1174                 :          0 :     switch ( nResId )
    1175                 :            :     {
    1176                 :            :         case DLG_FRM_GRF :
    1177                 :            :         case DLG_FRM_OLE :
    1178                 :            :         case DLG_FRM_STD :
    1179                 :          0 :             pDlg = new SwFrmDlg( pFrame, pParent, rCoreSet, bNewFrm, nResType, bFmt, nDefPage, pFmtStr );
    1180                 :          0 :             break;
    1181                 :            :         default:
    1182                 :          0 :             break;
    1183                 :            :     }
    1184                 :            : 
    1185                 :          0 :     if ( pDlg )
    1186                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1187                 :          0 :     return 0;
    1188                 :            : }
    1189                 :            : 
    1190                 :          0 : SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateTemplateDialog( int nResId,
    1191                 :            :                                                 Window*             pParent,
    1192                 :            :                                                 SfxStyleSheetBase&  rBase,
    1193                 :            :                                                 sal_uInt16              nRegion,
    1194                 :            :                                                 sal_uInt16              nPageId,
    1195                 :            :                                                 SwWrtShell*         pActShell,
    1196                 :            :                                                 sal_Bool                bNew ) //add for SwTemplateDlg
    1197                 :            : {
    1198                 :          0 :     SfxTabDialog* pDlg=NULL;
    1199                 :          0 :     switch ( nResId )
    1200                 :            :     {
    1201                 :            :         case DLG_TEMPLATE_BASE :
    1202                 :          0 :             pDlg = new SwTemplateDlg( pParent, rBase, nRegion, nPageId, pActShell, bNew );
    1203                 :          0 :             break;
    1204                 :            :         default:
    1205                 :          0 :             break;
    1206                 :            :     }
    1207                 :            : 
    1208                 :          0 :     if ( pDlg )
    1209                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1210                 :          0 :     return 0;
    1211                 :            : }
    1212                 :            : 
    1213                 :          0 : AbstractGlossaryDlg* SwAbstractDialogFactory_Impl::CreateGlossaryDlg( int nResId,
    1214                 :            :                                                 SfxViewFrame* pViewFrame,
    1215                 :            :                                                 SwGlossaryHdl* pGlosHdl,
    1216                 :            :                                                 SwWrtShell *pWrtShell) //add for SwGlossaryDlg
    1217                 :            : {
    1218                 :          0 :     SwGlossaryDlg* pDlg=NULL;
    1219                 :          0 :     switch ( nResId )
    1220                 :            :     {
    1221                 :            :         case DLG_RENAME_GLOS :
    1222                 :          0 :             pDlg = new SwGlossaryDlg( pViewFrame, pGlosHdl, pWrtShell );
    1223                 :          0 :             break;
    1224                 :            :         default:
    1225                 :          0 :             break;
    1226                 :            :     }
    1227                 :          0 :     if ( pDlg )
    1228                 :          0 :         return new AbstractGlossaryDlg_Impl( pDlg );
    1229                 :          0 :     return 0;
    1230                 :            : }
    1231                 :            : 
    1232                 :          0 : AbstractFldInputDlg* SwAbstractDialogFactory_Impl::CreateFldInputDlg( int nResId,
    1233                 :            :                                                 Window *pParent, SwWrtShell &rSh,
    1234                 :            :                                                 SwField* pField, sal_Bool bNextButton ) //add for SwFldInputDlg
    1235                 :            : {
    1236                 :          0 :     SwFldInputDlg* pDlg=NULL;
    1237                 :          0 :     switch ( nResId )
    1238                 :            :     {
    1239                 :            :         case DLG_FLD_INPUT :
    1240                 :          0 :             pDlg = new SwFldInputDlg( pParent, rSh, pField, bNextButton );
    1241                 :          0 :             break;
    1242                 :            :         default:
    1243                 :          0 :             break;
    1244                 :            :     }
    1245                 :          0 :     if ( pDlg )
    1246                 :          0 :         return new AbstractFldInputDlg_Impl( pDlg );
    1247                 :          0 :     return 0;
    1248                 :            : }
    1249                 :            : 
    1250                 :          0 : AbstractInsFootNoteDlg* SwAbstractDialogFactory_Impl::CreateInsFootNoteDlg( int nResId,
    1251                 :            :                                                 Window * pParent, SwWrtShell &rSh, sal_Bool bEd ) //add for SwInsFootNoteDlg
    1252                 :            : {
    1253                 :          0 :     SwInsFootNoteDlg* pDlg=NULL;
    1254                 :          0 :     switch ( nResId )
    1255                 :            :     {
    1256                 :            :         case DLG_INS_FOOTNOTE :
    1257                 :          0 :             pDlg = new SwInsFootNoteDlg( pParent, rSh, bEd );
    1258                 :          0 :             break;
    1259                 :            :         default:
    1260                 :          0 :             break;
    1261                 :            :     }
    1262                 :          0 :     if ( pDlg )
    1263                 :          0 :         return new AbstractInsFootNoteDlg_Impl( pDlg );
    1264                 :          0 :     return 0;
    1265                 :            : }
    1266                 :            : 
    1267                 :          0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateTitlePageDlg ( Window *pParent )
    1268                 :            : {
    1269                 :          0 :     Dialog* pDlg = new SwTitlePageDlg( pParent );
    1270                 :          0 :     if ( pDlg )
    1271                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
    1272                 :          0 :     return 0;
    1273                 :            : }
    1274                 :            : 
    1275                 :          0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclSwViewDialog( int nResId,
    1276                 :            :                                             SwView& rView, sal_Bool /*bCol*/ ) //add for SwInsRowColDlg, SwLineNumberingDlg
    1277                 :            : {
    1278                 :          0 :     Dialog* pDlg=NULL;
    1279                 :          0 :     switch ( nResId )
    1280                 :            :     {
    1281                 :            :         case DLG_LINE_NUMBERING :
    1282                 :          0 :             pDlg = new SwLineNumberingDlg( &rView );
    1283                 :          0 :             break;
    1284                 :            :         default:
    1285                 :          0 :             break;
    1286                 :            :     }
    1287                 :            : 
    1288                 :          0 :     if ( pDlg )
    1289                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
    1290                 :          0 :     return 0;
    1291                 :            : }
    1292                 :            : 
    1293                 :          0 : AbstractInsertGrfRulerDlg * SwAbstractDialogFactory_Impl::CreateInsertGrfRulerDlg( int nResId,
    1294                 :            :                                             Window * pParent ) //add for SwInsertGrfRulerDlg
    1295                 :            : {
    1296                 :          0 :     SwInsertGrfRulerDlg* pDlg=NULL;
    1297                 :          0 :     switch ( nResId )
    1298                 :            :     {
    1299                 :            :         case DLG_INSERT_RULER :
    1300                 :          0 :             pDlg = new SwInsertGrfRulerDlg( pParent );
    1301                 :          0 :             break;
    1302                 :            :         default:
    1303                 :          0 :             break;
    1304                 :            :     }
    1305                 :            : 
    1306                 :          0 :     if ( pDlg )
    1307                 :          0 :         return new AbstractInsertGrfRulerDlg_Impl( pDlg );
    1308                 :          0 :     return 0;
    1309                 :            : }
    1310                 :            : 
    1311                 :          0 : AbstractInsTableDlg * SwAbstractDialogFactory_Impl::CreateInsTableDlg( int nResId,
    1312                 :            :                                             SwView& rView ) //add for SwInsTableDlg
    1313                 :            : {
    1314                 :          0 :     SwInsTableDlg* pDlg=NULL;
    1315                 :          0 :     switch ( nResId )
    1316                 :            :     {
    1317                 :            :         case DLG_INSERT_TABLE :
    1318                 :          0 :             pDlg = new SwInsTableDlg( rView );
    1319                 :          0 :             break;
    1320                 :            :         default:
    1321                 :          0 :             break;
    1322                 :            :     }
    1323                 :          0 :     if ( pDlg )
    1324                 :          0 :         return new AbstractInsTableDlg_Impl( pDlg );
    1325                 :          0 :     return 0;
    1326                 :            : }
    1327                 :            : 
    1328                 :          0 : AbstractJavaEditDialog * SwAbstractDialogFactory_Impl::CreateJavaEditDialog( int nResId,
    1329                 :            :                                                 Window* pParent, SwWrtShell* pWrtSh ) //add for SwJavaEditDialog
    1330                 :            : {
    1331                 :          0 :     SwJavaEditDialog* pDlg=NULL;
    1332                 :          0 :     switch ( nResId )
    1333                 :            :     {
    1334                 :            :         case DLG_JAVAEDIT :
    1335                 :          0 :             pDlg = new SwJavaEditDialog( pParent, pWrtSh );
    1336                 :          0 :             break;
    1337                 :            :         default:
    1338                 :          0 :             break;
    1339                 :            :     }
    1340                 :          0 :     if ( pDlg )
    1341                 :          0 :         return new AbstractJavaEditDialog_Impl( pDlg );
    1342                 :          0 :     return 0;
    1343                 :            : }
    1344                 :            : 
    1345                 :          0 : AbstractMailMergeDlg * SwAbstractDialogFactory_Impl::CreateMailMergeDlg( int nResId,
    1346                 :            :                                                 Window* pParent, SwWrtShell& rSh,
    1347                 :            :                                                  const String& rSourceName,
    1348                 :            :                                                 const String& rTblName,
    1349                 :            :                                                 sal_Int32 nCommandType,
    1350                 :            :                                                 const uno::Reference< sdbc::XConnection>& xConnection,
    1351                 :            :                                                 uno::Sequence< uno::Any >* pSelection ) //add for SwMailMergeDlg
    1352                 :            : {
    1353                 :          0 :     SwMailMergeDlg* pDlg=NULL;
    1354                 :          0 :     switch ( nResId )
    1355                 :            :     {
    1356                 :            :         case DLG_MAILMERGE :
    1357                 :          0 :             pDlg = new SwMailMergeDlg( pParent, rSh, rSourceName, rTblName, nCommandType, xConnection, pSelection );
    1358                 :          0 :             break;
    1359                 :            :         default:
    1360                 :          0 :             break;
    1361                 :            :     }
    1362                 :          0 :     if ( pDlg )
    1363                 :          0 :         return new AbstractMailMergeDlg_Impl( pDlg );
    1364                 :          0 :     return 0;
    1365                 :            : }
    1366                 :            : 
    1367                 :          0 : AbstractMailMergeCreateFromDlg * SwAbstractDialogFactory_Impl::CreateMailMergeCreateFromDlg( int nResId,
    1368                 :            :                                                                     Window* pParent ) //add for SwMailMergeCreateFromDlg
    1369                 :            : {
    1370                 :          0 :     SwMailMergeCreateFromDlg* pDlg=NULL;
    1371                 :          0 :     switch ( nResId )
    1372                 :            :     {
    1373                 :            :         case DLG_MERGE_CREATE :
    1374                 :          0 :             pDlg = new SwMailMergeCreateFromDlg( pParent );
    1375                 :          0 :             break;
    1376                 :            :         default:
    1377                 :          0 :             break;
    1378                 :            :     }
    1379                 :          0 :     if ( pDlg )
    1380                 :          0 :         return new AbstractMailMergeCreateFromDlg_Impl( pDlg );
    1381                 :          0 :     return 0;
    1382                 :            : }
    1383                 :            : 
    1384                 :          0 : AbstractMailMergeFieldConnectionsDlg * SwAbstractDialogFactory_Impl::CreateMailMergeFieldConnectionsDlg( int nResId,
    1385                 :            :                                                             Window* pParent ) //add for SwMailMergeFieldConnectionsDlg
    1386                 :            : {
    1387                 :          0 :     SwMailMergeFieldConnectionsDlg* pDlg=NULL;
    1388                 :          0 :     switch ( nResId )
    1389                 :            :     {
    1390                 :            :         case DLG_MERGE_FIELD_CONNECTIONS :
    1391                 :          0 :             pDlg = new SwMailMergeFieldConnectionsDlg( pParent );
    1392                 :          0 :             break;
    1393                 :            :         default:
    1394                 :          0 :             break;
    1395                 :            :     }
    1396                 :          0 :     if ( pDlg )
    1397                 :          0 :         return new AbstractMailMergeFieldConnectionsDlg_Impl( pDlg );
    1398                 :          0 :     return 0;
    1399                 :            : }
    1400                 :            : 
    1401                 :          0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateMultiTOXMarkDlg( int nResId,
    1402                 :            :                                                 Window* pParent, SwTOXMgr &rTOXMgr ) //add for SwMultiTOXMarkDlg
    1403                 :            : {
    1404                 :          0 :     Dialog* pDlg=NULL;
    1405                 :          0 :     switch ( nResId )
    1406                 :            :     {
    1407                 :            :         case DLG_MULTMRK :
    1408                 :          0 :             pDlg = new SwMultiTOXMarkDlg( pParent, rTOXMgr );
    1409                 :          0 :             break;
    1410                 :            :         default:
    1411                 :          0 :             break;
    1412                 :            :     }
    1413                 :          0 :     if ( pDlg )
    1414                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
    1415                 :          0 :     return 0;
    1416                 :            : }
    1417                 :            : 
    1418                 :          0 : SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTabDialog( int nResId,
    1419                 :            :                                                 Window* pParent,
    1420                 :            :                                                 const SfxItemSet* pSwItemSet,
    1421                 :            :                                                 SwWrtShell & rWrtSh ) //add for SwSvxNumBulletTabDialog, SwOutlineTabDialog
    1422                 :            : {
    1423                 :          0 :     SfxTabDialog* pDlg=NULL;
    1424                 :          0 :     switch ( nResId )
    1425                 :            :     {
    1426                 :            :         case DLG_SVXTEST_NUM_BULLET :
    1427                 :          0 :             pDlg = new SwSvxNumBulletTabDialog( pParent, pSwItemSet, rWrtSh );
    1428                 :          0 :             break;
    1429                 :            :         case DLG_TAB_OUTLINE :
    1430                 :          0 :             pDlg = new SwOutlineTabDialog( pParent, pSwItemSet, rWrtSh );
    1431                 :          0 :             break;
    1432                 :            : 
    1433                 :            :         default:
    1434                 :          0 :             break;
    1435                 :            :     }
    1436                 :          0 :     if ( pDlg )
    1437                 :          0 :         return new AbstractTabDialog_Impl( pDlg );
    1438                 :          0 :     return 0;
    1439                 :            : }
    1440                 :            : 
    1441                 :          0 : AbstractMultiTOXTabDialog * SwAbstractDialogFactory_Impl::CreateMultiTOXTabDialog( int nResId,
    1442                 :            :                                                 Window* pParent, const SfxItemSet& rSet,
    1443                 :            :                                                 SwWrtShell &rShell,
    1444                 :            :                                                 SwTOXBase* pCurTOX, sal_uInt16 nToxType,
    1445                 :            :                                                 sal_Bool bGlobal ) //add for SwMultiTOXTabDialog
    1446                 :            : {
    1447                 :          0 :     SwMultiTOXTabDialog* pDlg=NULL;
    1448                 :          0 :     switch ( nResId )
    1449                 :            :     {
    1450                 :            :         case DLG_MULTI_TOX :
    1451                 :          0 :             pDlg = new SwMultiTOXTabDialog( pParent, rSet, rShell, pCurTOX, nToxType, bGlobal );
    1452                 :          0 :             break;
    1453                 :            :         default:
    1454                 :          0 :             break;
    1455                 :            :     }
    1456                 :          0 :     if ( pDlg )
    1457                 :          0 :         return new AbstractMultiTOXTabDialog_Impl( pDlg );
    1458                 :          0 :     return 0;
    1459                 :            : }
    1460                 :            : 
    1461                 :          0 : AbstractEditRegionDlg * SwAbstractDialogFactory_Impl::CreateEditRegionDlg( int nResId,
    1462                 :            :                                                 Window* pParent, SwWrtShell& rWrtSh ) //add for SwEditRegionDlg
    1463                 :            : {
    1464                 :          0 :     SwEditRegionDlg* pDlg=NULL;
    1465                 :          0 :     switch ( nResId )
    1466                 :            :     {
    1467                 :            :         case MD_EDIT_REGION :
    1468                 :          0 :             pDlg = new SwEditRegionDlg( pParent, rWrtSh );
    1469                 :          0 :             break;
    1470                 :            :         default:
    1471                 :          0 :             break;
    1472                 :            :     }
    1473                 :          0 :     if ( pDlg )
    1474                 :          0 :         return new AbstractEditRegionDlg_Impl( pDlg );
    1475                 :          0 :     return 0;
    1476                 :            : }
    1477                 :            : 
    1478                 :          0 : AbstractInsertSectionTabDialog * SwAbstractDialogFactory_Impl::CreateInsertSectionTabDialog( int nResId,
    1479                 :            :                                                     Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh) //add for SwInsertSectionTabDialog
    1480                 :            : {
    1481                 :          0 :     SwInsertSectionTabDialog* pDlg=NULL;
    1482                 :          0 :     switch ( nResId )
    1483                 :            :     {
    1484                 :            :         case DLG_INSERT_SECTION :
    1485                 :          0 :             pDlg = new SwInsertSectionTabDialog( pParent, rSet, rSh );
    1486                 :          0 :             break;
    1487                 :            :         default:
    1488                 :          0 :             break;
    1489                 :            :     }
    1490                 :          0 :     if ( pDlg )
    1491                 :          0 :         return new AbstractInsertSectionTabDialog_Impl( pDlg );
    1492                 :          0 :     return 0;
    1493                 :            : }
    1494                 :            : 
    1495                 :          0 : AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateIndexMarkFloatDlg( int nResId,
    1496                 :            :                                                     SfxBindings* pBindings,
    1497                 :            :                                                        SfxChildWindow* pChild,
    1498                 :            :                                                        Window *pParent,
    1499                 :            :                                                     SfxChildWinInfo* pInfo,
    1500                 :            :                                                        sal_Bool bNew ) //add for SwIndexMarkFloatDlg
    1501                 :            : {
    1502                 :          0 :     SwIndexMarkFloatDlg* pDlg=NULL;
    1503                 :          0 :     switch ( nResId )
    1504                 :            :     {
    1505                 :            :         case DLG_INSIDXMARK_CJK :
    1506                 :            :         case DLG_INSIDXMARK :
    1507                 :          0 :             pDlg = new SwIndexMarkFloatDlg( pBindings, pChild, pParent, pInfo, bNew );
    1508                 :          0 :             break;
    1509                 :            :         default:
    1510                 :          0 :             break;
    1511                 :            :     }
    1512                 :          0 :     if ( pDlg )
    1513                 :          0 :         return new AbstractIndexMarkFloatDlg_Impl( pDlg );
    1514                 :          0 :     return 0;
    1515                 :            : }
    1516                 :            : 
    1517                 :          0 : AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateAuthMarkFloatDlg( int nResId,
    1518                 :            :                                                     SfxBindings* pBindings,
    1519                 :            :                                                        SfxChildWindow* pChild,
    1520                 :            :                                                        Window *pParent,
    1521                 :            :                                                     SfxChildWinInfo* pInfo,
    1522                 :            :                                                        sal_Bool bNew ) //add for SwAuthMarkFloatDlg
    1523                 :            : {
    1524                 :          0 :     SwAuthMarkFloatDlg* pDlg=NULL;
    1525                 :          0 :     switch ( nResId )
    1526                 :            :     {
    1527                 :            :         case DLG_INSAUTHMARK :
    1528                 :          0 :             pDlg = new SwAuthMarkFloatDlg( pBindings, pChild, pParent, pInfo, bNew );
    1529                 :          0 :             break;
    1530                 :            :         default:
    1531                 :          0 :             break;
    1532                 :            :     }
    1533                 :          0 :     if ( pDlg )
    1534                 :          0 :         return new AbstractAuthMarkFloatDlg_Impl( pDlg );
    1535                 :          0 :     return 0;
    1536                 :            : }
    1537                 :            : 
    1538                 :          0 : AbstractSwWordCountFloatDlg * SwAbstractDialogFactory_Impl::CreateSwWordCountDialog( int nResId,
    1539                 :            :                                                                               SfxBindings* pBindings,
    1540                 :            :                                                                               SfxChildWindow* pChild,
    1541                 :            :                                                                               Window *pParent,
    1542                 :            :                                                                               SfxChildWinInfo* pInfo )
    1543                 :            : {
    1544                 :          0 :     SwWordCountFloatDlg* pDlg=NULL;
    1545                 :          0 :     switch ( nResId )
    1546                 :            :     {
    1547                 :            :         case DLG_WORDCOUNT :
    1548                 :          0 :             pDlg = new SwWordCountFloatDlg( pBindings, pChild, pParent, pInfo );
    1549                 :          0 :             break;
    1550                 :            :         default:
    1551                 :          0 :             break;
    1552                 :            :     }
    1553                 :          0 :     if ( pDlg )
    1554                 :          0 :         return new AbstractSwWordCountFloatDlg_Impl( pDlg );
    1555                 :          0 :     return 0;
    1556                 :            : }
    1557                 :            : 
    1558                 :            : //add for SwIndexMarkModalDlg begin
    1559                 :          0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateIndexMarkModalDlg( int nResId,
    1560                 :            :                                                 Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark ) //add for SwIndexMarkModalDlg
    1561                 :            : {
    1562                 :          0 :     Dialog* pDlg=NULL;
    1563                 :          0 :     switch ( nResId )
    1564                 :            :     {
    1565                 :            :         case DLG_EDIT_IDXMARK_CJK :
    1566                 :            :         case DLG_EDIT_IDXMARK :
    1567                 :          0 :             pDlg = new SwIndexMarkModalDlg( pParent, rSh, pCurTOXMark );
    1568                 :          0 :             break;
    1569                 :            : 
    1570                 :            :         default:
    1571                 :          0 :             break;
    1572                 :            :     }
    1573                 :            : 
    1574                 :          0 :     if ( pDlg )
    1575                 :          0 :         return new VclAbstractDialog_Impl( pDlg );
    1576                 :          0 :     return 0;
    1577                 :            : }
    1578                 :            : 
    1579                 :            : //add for SwIndexMarkModalDlg end
    1580                 :          0 : AbstractMailMergeWizard*    SwAbstractDialogFactory_Impl::CreateMailMergeWizard(
    1581                 :            :                                     SwView& rView, SwMailMergeConfigItem& rConfigItem)
    1582                 :            : {
    1583                 :          0 :     return new AbstractMailMergeWizard_Impl( new SwMailMergeWizard(rView, rConfigItem));
    1584                 :            : }
    1585                 :            : 
    1586                 :            : //add for static func in SwGlossaryDlg
    1587                 :          0 : GlossaryGetCurrGroup    SwAbstractDialogFactory_Impl::GetGlossaryCurrGroupFunc( sal_uInt16 nId )
    1588                 :            : {
    1589                 :          0 :     switch ( nId )
    1590                 :            :     {
    1591                 :            :         case DLG_RENAME_GLOS :
    1592                 :          0 :             return SwGlossaryDlg::GetCurrGroup;
    1593                 :            :         default:
    1594                 :          0 :             break;
    1595                 :            :     }
    1596                 :          0 :     return 0;
    1597                 :            : }
    1598                 :          0 : GlossarySetActGroup SwAbstractDialogFactory_Impl::SetGlossaryActGroupFunc( sal_uInt16 nId )
    1599                 :            : {
    1600                 :          0 :     switch ( nId )
    1601                 :            :     {
    1602                 :            :         case DLG_RENAME_GLOS :
    1603                 :          0 :             return SwGlossaryDlg::SetActGroup;
    1604                 :            :         default:
    1605                 :          0 :             break;
    1606                 :            :     }
    1607                 :          0 :     return 0;
    1608                 :            : }
    1609                 :            : 
    1610                 :            : 
    1611                 :            : //------------------ Factories for TabPages
    1612                 :          0 : CreateTabPage SwAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
    1613                 :            : {
    1614                 :          0 :     CreateTabPage pRet = 0;
    1615                 :          0 :     switch ( nId )
    1616                 :            :     {
    1617                 :            :         case TP_OPTCOMPATIBILITY_PAGE :
    1618                 :            :         case RID_SW_TP_OPTCOMPATIBILITY_PAGE :
    1619                 :          0 :             pRet = SwCompatibilityOptPage::Create;
    1620                 :          0 :             break;
    1621                 :            :         case TP_OPTLOAD_PAGE :
    1622                 :            :         case RID_SW_TP_OPTLOAD_PAGE :
    1623                 :          0 :             pRet = SwLoadOptPage::Create;
    1624                 :          0 :             break;
    1625                 :            :         case TP_OPTCAPTION_PAGE:
    1626                 :            :         case RID_SW_TP_OPTCAPTION_PAGE:
    1627                 :          0 :             return SwCaptionOptPage::Create;
    1628                 :            :         case TP_CONTENT_OPT :
    1629                 :            :         case RID_SW_TP_CONTENT_OPT:
    1630                 :            :         case RID_SW_TP_HTML_CONTENT_OPT:
    1631                 :          0 :             pRet = SwContentOptPage::Create;
    1632                 :          0 :             break;
    1633                 :            :         case TP_OPTSHDWCRSR :
    1634                 :            :         case RID_SW_TP_OPTSHDWCRSR:
    1635                 :            :         case RID_SW_TP_HTML_OPTSHDWCRSR:
    1636                 :          0 :             pRet = SwShdwCrsrOptionsTabPage::Create;
    1637                 :          0 :             break;
    1638                 :            :         case RID_SW_TP_REDLINE_OPT :
    1639                 :            :         case TP_REDLINE_OPT :
    1640                 :          0 :             pRet = SwRedlineOptionsTabPage::Create;
    1641                 :          0 :             break;
    1642                 :            :         case RID_SW_TP_OPTTEST_PAGE :
    1643                 :            :         case TP_OPTTEST_PAGE :
    1644                 :            : #ifdef DBG_UTIL
    1645                 :            :             pRet = SwTestTabPage::Create;
    1646                 :            : #endif
    1647                 :          0 :             break;
    1648                 :            :         case TP_OPTPRINT_PAGE :
    1649                 :            :         case RID_SW_TP_HTML_OPTPRINT_PAGE:
    1650                 :            :         case RID_SW_TP_OPTPRINT_PAGE:
    1651                 :          0 :             pRet = SwAddPrinterTabPage::Create;
    1652                 :          0 :             break;
    1653                 :            :         case TP_STD_FONT :
    1654                 :            :         case RID_SW_TP_STD_FONT:
    1655                 :            :         case RID_SW_TP_STD_FONT_CJK:
    1656                 :            :         case RID_SW_TP_STD_FONT_CTL:
    1657                 :          0 :             pRet = SwStdFontTabPage::Create;
    1658                 :          0 :             break;
    1659                 :            :         case TP_OPTTABLE_PAGE :
    1660                 :            :         case RID_SW_TP_HTML_OPTTABLE_PAGE:
    1661                 :            :         case RID_SW_TP_OPTTABLE_PAGE:
    1662                 :          0 :             pRet = SwTableOptionsTabPage::Create;
    1663                 :          0 :             break;
    1664                 :            :         case TP_DOC_STAT :
    1665                 :          0 :             pRet = SwDocStatPage::Create;
    1666                 :          0 :             break;
    1667                 :            :         case RID_SW_TP_MAILCONFIG:
    1668                 :          0 :             pRet = SwMailConfigPage::Create;
    1669                 :          0 :         break;
    1670                 :            :         case RID_SW_TP_COMPARISON_OPT :
    1671                 :            :         case TP_COMPARISON_OPT :
    1672                 :          0 :             pRet = SwCompareOptionsTabPage::Create;
    1673                 :          0 :         break;
    1674                 :            :     }
    1675                 :            : 
    1676                 :          0 :     return pRet;
    1677                 :            : }
    1678                 :            : 
    1679                 :          0 : GetTabPageRanges SwAbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId )
    1680                 :            : {
    1681                 :          0 :     switch ( nId )
    1682                 :            :     {
    1683                 :            :     case 1 : //RID_SVXPAGE_TEXTANIMATION :
    1684                 :            :             //return SvxTextAnimationPage::GetRanges;
    1685                 :          0 :             break;
    1686                 :            :         default:
    1687                 :          0 :             break;
    1688                 :            :     }
    1689                 :            : 
    1690                 :          0 :     return 0;
    1691                 :            : }
    1692                 :            : 
    1693                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10