LCOV - code coverage report
Current view: top level - sw/source/ui/app - swmodule.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 169 187 90.4 %
Date: 2012-08-25 Functions: 12 16 75.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 46 120 38.3 %

           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 <hintids.hxx>
      30                 :            : #include <swerror.h>
      31                 :            : #include <vcl/wrkwin.hxx>
      32                 :            : #include <vcl/graph.hxx>
      33                 :            : #include <svx/galbrws.hxx>
      34                 :            : #include <svx/svdobj.hxx>
      35                 :            : #include <svtools/ehdl.hxx>
      36                 :            : #include <svx/fntszctl.hxx>
      37                 :            : #include <svx/fntctl.hxx>
      38                 :            : #include <svx/SmartTagCtl.hxx>
      39                 :            : #include <svx/pszctrl.hxx>
      40                 :            : #include <svx/insctrl.hxx>
      41                 :            : #include <svx/selctrl.hxx>
      42                 :            : #include <svx/linectrl.hxx>
      43                 :            : #include <svx/tbxctl.hxx>            // at the moment wrong include-protection!
      44                 :            : #include <svx/fillctrl.hxx>
      45                 :            : #include <svx/tbcontrl.hxx>
      46                 :            : #include <svx/verttexttbxctrl.hxx>
      47                 :            : #include <svx/formatpaintbrushctrl.hxx>
      48                 :            : #include <svx/contdlg.hxx>
      49                 :            : #include <svx/layctrl.hxx>
      50                 :            : #include <svx/fontwork.hxx>
      51                 :            : #include <SwSpellDialogChildWindow.hxx>
      52                 :            : #include <svx/tbxalign.hxx>
      53                 :            : #include <svx/grafctrl.hxx>
      54                 :            : #include <svx/tbxcolor.hxx>
      55                 :            : #include <svx/clipboardctl.hxx>
      56                 :            : #include <svx/lboxctrl.hxx>
      57                 :            : #include <svx/tbxcustomshapes.hxx>
      58                 :            : #include <svx/imapdlg.hxx>
      59                 :            : #include <svx/srchdlg.hxx>
      60                 :            : #include <svx/hyperdlg.hxx>
      61                 :            : #include <svx/extrusioncolorcontrol.hxx>
      62                 :            : #include <svx/fontworkgallery.hxx>
      63                 :            : #include <svx/modctrl.hxx>
      64                 :            : #include <com/sun/star/scanner/XScannerManager2.hpp>
      65                 :            : #include <com/sun/star/container/XSet.hpp>
      66                 :            : #include <comphelper/processfactory.hxx>
      67                 :            : #include <docsh.hxx>
      68                 :            : #include <swmodule.hxx>
      69                 :            : #include <swevent.hxx>
      70                 :            : #include <swacorr.hxx>
      71                 :            : #include <cmdid.h>
      72                 :            : #include <dobjfac.hxx>
      73                 :            : #include <init.hxx>
      74                 :            : #include <pview.hxx>
      75                 :            : #include <wview.hxx>
      76                 :            : #include <wdocsh.hxx>
      77                 :            : #include <globdoc.hxx>
      78                 :            : #include <srcview.hxx>
      79                 :            : #include <glshell.hxx>
      80                 :            : #include <tabsh.hxx>
      81                 :            : #include <listsh.hxx>
      82                 :            : #include <grfsh.hxx>
      83                 :            : #include <mediash.hxx>
      84                 :            : #include <olesh.hxx>
      85                 :            : #include <drawsh.hxx>
      86                 :            : #include <wformsh.hxx>
      87                 :            : #include <drwtxtsh.hxx>
      88                 :            : #include <beziersh.hxx>
      89                 :            : #include <wtextsh.hxx>
      90                 :            : #include <wfrmsh.hxx>
      91                 :            : #include <drformsh.hxx>
      92                 :            : #include <wgrfsh.hxx>
      93                 :            : #include <wolesh.hxx>
      94                 :            : #include <wlistsh.hxx>
      95                 :            : #include <wtabsh.hxx>
      96                 :            : #include <navipi.hxx>
      97                 :            : #include <chartins.hxx>
      98                 :            : #include <inputwin.hxx>
      99                 :            : #include <usrpref.hxx>
     100                 :            : #include <uinums.hxx>
     101                 :            : #include <prtopt.hxx>
     102                 :            : #include <bookctrl.hxx>
     103                 :            : #include <tmplctrl.hxx>
     104                 :            : #include <viewlayoutctrl.hxx>
     105                 :            : #include <svx/zoomsliderctrl.hxx>
     106                 :            : #include <tblctrl.hxx>
     107                 :            : #include <zoomctrl.hxx>
     108                 :            : #include <wordcountctrl.hxx>
     109                 :            : #include <workctrl.hxx>
     110                 :            : #include <tbxanchr.hxx>
     111                 :            : #include <fldwrap.hxx>
     112                 :            : #include <redlndlg.hxx>
     113                 :            : #include <syncbtn.hxx>
     114                 :            : #include <mailmergechildwindow.hxx>
     115                 :            : #include <modcfg.hxx>
     116                 :            : #include <fontcfg.hxx>
     117                 :            : #include <sfx2/taskpane.hxx>
     118                 :            : #include <sfx2/evntconf.hxx>
     119                 :            : #include <sfx2/appuno.hxx>
     120                 :            : #include <swatrset.hxx>
     121                 :            : #include <idxmrk.hxx>
     122                 :            : #include <wordcountdialog.hxx>
     123                 :            : #include <dlelstnr.hxx>
     124                 :            : #include <barcfg.hxx>
     125                 :            : #include <svx/rubydialog.hxx>
     126                 :            : #include <svtools/colorcfg.hxx>
     127                 :            : 
     128                 :            : #include <editeng/acorrcfg.hxx>
     129                 :            : #include <unotools/moduleoptions.hxx>
     130                 :            : 
     131                 :            : #include <avmedia/mediaplayer.hxx>
     132                 :            : #include <avmedia/mediatoolbox.hxx>
     133                 :            : 
     134                 :            : #include <annotsh.hxx>
     135                 :            : #include <navsh.hxx>
     136                 :            : 
     137                 :            : #include <app.hrc>
     138                 :            : #include <svx/xmlsecctrl.hxx>
     139                 :            : ResMgr *pSwResMgr = 0;
     140                 :            : sal_Bool     bNoInterrupt     = sal_False;
     141                 :            : 
     142                 :            : #include <sfx2/app.hxx>
     143                 :            : 
     144                 :            : #include <svx/svxerr.hxx>
     145                 :            : 
     146                 :            : #include <unomid.h>
     147                 :            : 
     148                 :            : #include "swdllimpl.hxx"
     149                 :            : 
     150                 :            : using namespace com::sun::star;
     151                 :            : 
     152                 :            : 
     153 [ -  + ][ +  - ]:      11073 : TYPEINIT1( SwModule, SfxModule );
     154                 :            : 
     155                 :            : using namespace ::com::sun::star;
     156                 :            : using namespace ::com::sun::star::uno;
     157                 :            : 
     158                 :         73 : SwModule::SwModule( SfxObjectFactory* pWebFact,
     159                 :            :                     SfxObjectFactory* pFact,
     160                 :            :                     SfxObjectFactory* pGlobalFact )
     161                 :            :     : SfxModule( SfxApplication::CreateResManager( "sw" ), sal_False, pWebFact,
     162                 :            :                      pFact, pGlobalFact, NULL ),
     163                 :            :     pModuleConfig(0),
     164                 :            :     pUsrPref(0),
     165                 :            :     pWebUsrPref(0),
     166                 :            :     pPrtOpt(0),
     167                 :            :     pWebPrtOpt(0),
     168                 :            :     pChapterNumRules(0),
     169                 :            :     pStdFontConfig(0),
     170                 :            :     pNavigationConfig(0),
     171                 :            :     pToolbarConfig(0),
     172                 :            :     pWebToolbarConfig(0),
     173                 :            :     pDBConfig(0),
     174                 :            :     pColorConfig(0),
     175                 :            :     pAccessibilityOptions(0),
     176                 :            :     pCTLOptions(0),
     177                 :            :     pUserOptions(0),
     178                 :            :     pAttrPool(0),
     179                 :            :     pView(0),
     180                 :            :     bAuthorInitialised(sal_False),
     181                 :            :     bEmbeddedLoadSave( sal_False ),
     182                 :            :     pDragDrop( 0 ),
     183 [ +  - ][ +  - ]:         73 :     pXSelection( 0 )
     184                 :            : {
     185 [ +  - ][ +  - ]:         73 :     SetName( rtl::OUString("StarWriter") );
                 [ +  - ]
     186         [ +  - ]:         73 :     pSwResMgr = GetResMgr();
     187         [ +  - ]:         73 :     SvxErrorHandler::ensure();
     188                 :            :     pErrorHdl = new SfxErrorHandler( RID_SW_ERRHDL,
     189                 :            :                                      ERRCODE_AREA_SW,
     190                 :            :                                      ERRCODE_AREA_SW_END,
     191 [ +  - ][ +  - ]:         73 :                                      pSwResMgr );
     192                 :            : 
     193 [ +  - ][ +  - ]:         73 :     pModuleConfig = new SwModuleOptions;
     194                 :            : 
     195                 :            :     // We need them anyways
     196 [ +  - ][ +  - ]:         73 :     pToolbarConfig = new SwToolbarConfigItem( sal_False );
     197 [ +  - ][ +  - ]:         73 :     pWebToolbarConfig = new SwToolbarConfigItem( sal_True );
     198                 :            : 
     199 [ +  - ][ +  - ]:         73 :     pStdFontConfig = new SwStdFontConfig;
     200                 :            : 
     201 [ +  - ][ +  - ]:         73 :     pAuthorNames = new std::vector<String>;    // All Redlining-Authors
     202                 :            : 
     203                 :            :     // replace SvxAutocorrect with SwAutocorrect
     204         [ +  - ]:         73 :     SvxAutoCorrCfg& rACfg = SvxAutoCorrCfg::Get();
     205                 :         73 :     const SvxAutoCorrect* pOld = rACfg.GetAutoCorrect();
     206 [ +  - ][ +  - ]:         73 :     rACfg.SetAutoCorrect(new SwAutoCorrect( *pOld ));
                 [ +  - ]
     207                 :            : 
     208 [ +  - ][ +  - ]:         73 :     StartListening( *SFX_APP() );
     209                 :            : 
     210                 :            :     // OD 14.02.2003 #107424# - init color configuration
     211                 :            :     // member <pColorConfig> is created and the color configuration is applied
     212                 :            :     // at the view options.
     213         [ +  - ]:         73 :     GetColorConfig();
     214                 :         73 : }
     215                 :            : uno::Reference< scanner::XScannerManager2 >
     216                 :          0 : SwModule::GetScannerManager()
     217                 :            : {
     218         [ #  # ]:          0 :     if (!m_xScannerManager.is())
     219                 :            :     {
     220                 :            :         uno::Reference< lang::XMultiServiceFactory > xMgr (
     221         [ #  # ]:          0 :             comphelper::getProcessServiceFactory() );
     222         [ #  # ]:          0 :         if( xMgr.is() )
     223                 :            :         {
     224                 :            :             m_xScannerManager =
     225                 :            :                 uno::Reference< scanner::XScannerManager2 >(
     226         [ #  # ]:          0 :                     xMgr->createInstance(
     227                 :            :                         rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
     228                 :          0 :                             "com.sun.star.scanner.ScannerManager")) ),
     229 [ #  # ][ #  # ]:          0 :                     uno::UNO_QUERY );
         [ #  # ][ #  # ]
     230                 :          0 :         }
     231                 :            :     }
     232                 :          0 :     return m_xScannerManager;
     233                 :            : }
     234                 :            : 
     235                 :          0 : uno::Reference< linguistic2::XLanguageGuessing > SwModule::GetLanguageGuesser()
     236                 :            : {
     237         [ #  # ]:          0 :     if (!m_xLanguageGuesser.is())
     238                 :            :     {
     239         [ #  # ]:          0 :         uno::Reference< lang::XMultiServiceFactory > xMgr ( comphelper::getProcessServiceFactory() );
     240         [ #  # ]:          0 :         if (xMgr.is())
     241                 :            :         {
     242                 :            :             m_xLanguageGuesser = uno::Reference< linguistic2::XLanguageGuessing >(
     243         [ #  # ]:          0 :                     xMgr->createInstance(
     244                 :          0 :                         rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.linguistic2.LanguageGuessing"))),
     245 [ #  # ][ #  # ]:          0 :                         uno::UNO_QUERY );
         [ #  # ][ #  # ]
     246                 :          0 :         }
     247                 :            :     }
     248                 :          0 :     return m_xLanguageGuesser;
     249                 :            : }
     250                 :            : 
     251 [ +  - ][ +  - ]:         40 : SwModule::~SwModule()
                 [ +  - ]
     252                 :            : {
     253 [ +  - ][ +  - ]:         40 :     delete pErrorHdl;
     254 [ +  - ][ +  - ]:         40 :     EndListening( *SFX_APP() );
     255         [ -  + ]:         80 : }
     256                 :            : 
     257                 :         47 : void SwModule::CreateLngSvcEvtListener()
     258                 :            : {
     259         [ +  - ]:         47 :     if (!xLngSvcEvtListener.is())
     260 [ +  - ][ +  - ]:         47 :         xLngSvcEvtListener = new SwLinguServiceEventListener;
     261                 :         47 : }
     262                 :            : 
     263                 :         73 : void SwDLL::RegisterFactories()
     264                 :            : {
     265                 :            :     // These Id's must not be changed. Through these Id's the View (resume Documentview)
     266                 :            :     // is created by Sfx.
     267 [ +  - ][ +  + ]:         73 :     if ( SvtModuleOptions().IsWriter() )
     268                 :         67 :         SwView::RegisterFactory         ( 2 );
     269                 :            : 
     270                 :         73 :     SwWebView::RegisterFactory        ( 5 );
     271                 :            : 
     272 [ +  + ][ +  - ]:         73 :     if ( SvtModuleOptions().IsWriter() )
     273                 :            :     {
     274                 :         67 :         SwSrcView::RegisterFactory      ( 6 );
     275                 :         67 :         SwPagePreView::RegisterFactory  ( 7 );
     276                 :            :     }
     277                 :         73 : }
     278                 :            : 
     279                 :         73 : void SwDLL::RegisterInterfaces()
     280                 :            : {
     281                 :         73 :     SwModule* pMod = SW_MOD();
     282                 :         73 :     SwModule::RegisterInterface( pMod );
     283                 :         73 :     SwDocShell::RegisterInterface( pMod );
     284                 :         73 :     SwWebDocShell::RegisterInterface( pMod );
     285                 :         73 :     SwGlosDocShell::RegisterInterface( pMod );
     286                 :         73 :     SwWebGlosDocShell::RegisterInterface( pMod );
     287                 :         73 :     SwView::RegisterInterface( pMod );
     288                 :         73 :     SwWebView::RegisterInterface( pMod );
     289                 :         73 :     SwPagePreView::RegisterInterface( pMod );
     290                 :         73 :     SwSrcView::RegisterInterface( pMod );
     291                 :            : 
     292                 :            : 
     293                 :         73 :     SwBaseShell::RegisterInterface(pMod);
     294                 :         73 :     SwTextShell::RegisterInterface(pMod);
     295                 :         73 :     SwTableShell::RegisterInterface(pMod);
     296                 :         73 :     SwListShell::RegisterInterface(pMod);
     297                 :         73 :     SwFrameShell::RegisterInterface(pMod);
     298                 :         73 :     SwDrawBaseShell::RegisterInterface(pMod);
     299                 :         73 :     SwDrawShell::RegisterInterface(pMod);
     300                 :         73 :     SwDrawFormShell::RegisterInterface(pMod);
     301                 :         73 :     SwDrawTextShell::RegisterInterface(pMod);
     302                 :         73 :     SwBezierShell::RegisterInterface(pMod);
     303                 :         73 :     SwGrfShell::RegisterInterface(pMod);
     304                 :         73 :     SwOleShell::RegisterInterface(pMod);
     305                 :         73 :     SwNavigationShell::RegisterInterface(pMod);
     306                 :         73 :     SwWebTextShell::RegisterInterface(pMod);
     307                 :         73 :     SwWebFrameShell::RegisterInterface(pMod);
     308                 :         73 :     SwWebGrfShell::RegisterInterface(pMod);
     309                 :         73 :     SwWebListShell::RegisterInterface(pMod);
     310                 :         73 :     SwWebTableShell::RegisterInterface(pMod);
     311                 :         73 :     SwWebDrawFormShell::RegisterInterface(pMod);
     312                 :         73 :     SwWebOleShell::RegisterInterface(pMod);
     313                 :         73 :     SwMediaShell::RegisterInterface(pMod);
     314                 :         73 :     SwAnnotationShell::RegisterInterface(pMod);
     315                 :         73 : }
     316                 :            : 
     317                 :         73 : void SwDLL::RegisterControls()
     318                 :            : {
     319                 :         73 :     SwModule* pMod = SW_MOD();
     320                 :         73 :     SvxTbxCtlDraw::RegisterControl(SID_INSERT_DRAW, pMod );
     321                 :         73 :     SvxTbxCtlAlign::RegisterControl(SID_OBJECT_ALIGN, pMod );
     322                 :         73 :     SwTbxAnchor::RegisterControl(FN_TOOL_ANCHOR, pMod );
     323                 :         73 :     SwTbxInsertCtrl::RegisterControl(FN_INSERT_CTRL, pMod );
     324                 :         73 :     SwTbxInsertCtrl::RegisterControl(FN_INSERT_OBJ_CTRL, pMod );
     325                 :         73 :     SwTbxAutoTextCtrl::RegisterControl(FN_INSERT_FIELD_CTRL, pMod );
     326                 :         73 :     SwTbxAutoTextCtrl::RegisterControl(FN_GLOSSARY_DLG, pMod );
     327                 :            : 
     328                 :         73 :     SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod );
     329                 :         73 :     SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod );
     330                 :         73 :     SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod );
     331                 :         73 :     SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod );
     332                 :         73 :     SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod );
     333                 :         73 :     SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod );
     334                 :            : 
     335                 :         73 :     svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
     336                 :         73 :     svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod );
     337                 :            : 
     338                 :         73 :     SvxClipBoardControl::RegisterControl(SID_PASTE, pMod );
     339                 :         73 :     SvxUndoRedoControl::RegisterControl(SID_UNDO, pMod );
     340                 :         73 :     SvxUndoRedoControl::RegisterControl(SID_REDO, pMod );
     341                 :         73 :     svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
     342                 :            : 
     343                 :         73 :     SvxFillToolBoxControl::RegisterControl(SID_ATTR_FILL_STYLE, pMod );
     344                 :         73 :     SvxLineStyleToolBoxControl::RegisterControl(SID_ATTR_LINE_STYLE, pMod );
     345                 :         73 :     SvxLineWidthToolBoxControl::RegisterControl(SID_ATTR_LINE_WIDTH, pMod );
     346                 :         73 :     SvxLineColorToolBoxControl::RegisterControl(SID_ATTR_LINE_COLOR, pMod );
     347                 :         73 :     SvxLineEndToolBoxControl::RegisterControl(SID_ATTR_LINEEND_STYLE, pMod );
     348                 :            : 
     349                 :         73 :     SvxFontNameToolBoxControl::RegisterControl(SID_ATTR_CHAR_FONT, pMod );
     350                 :         73 :     SvxFontColorToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR, pMod );
     351                 :         73 :     SvxColorExtToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR2, pMod );
     352                 :         73 :     SvxColorExtToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR_BACKGROUND, pMod );
     353                 :         73 :     SvxStyleToolBoxControl::RegisterControl(SID_STYLE_APPLY, pMod );
     354                 :         73 :     SvxColorExtToolBoxControl::RegisterControl( SID_BACKGROUND_COLOR, pMod );
     355                 :         73 :     SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod );
     356                 :         73 :     SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod );
     357                 :         73 :     SvxColorExtToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod );
     358                 :            : 
     359                 :         73 :     SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_FRAME_INTERACT, pMod );
     360                 :         73 :     SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_FRAME, pMod );
     361                 :         73 :     SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_REGION, pMod );
     362                 :         73 :     SvxTableToolBoxControl::RegisterControl(FN_INSERT_TABLE, pMod );
     363                 :         73 :     SvxTableToolBoxControl::RegisterControl(FN_SHOW_MULTIPLE_PAGES, pMod );
     364                 :            : 
     365                 :         73 :     SvxFontMenuControl::RegisterControl(SID_ATTR_CHAR_FONT, pMod );
     366                 :         73 :     SvxFontSizeMenuControl::RegisterControl(SID_ATTR_CHAR_FONTHEIGHT, pMod );
     367                 :            : 
     368                 :         73 :     SwZoomControl::RegisterControl(SID_ATTR_ZOOM, pMod );
     369                 :         73 :     SwPreviewZoomControl::RegisterControl(FN_PREVIEW_ZOOM, pMod);
     370                 :         73 :     SvxPosSizeStatusBarControl::RegisterControl(0, pMod );
     371                 :         73 :     SvxInsertStatusBarControl::RegisterControl(SID_ATTR_INSERT, pMod );
     372                 :         73 :     SvxSelectionModeControl::RegisterControl(FN_STAT_SELMODE, pMod );
     373                 :         73 :     XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
     374                 :         73 :     SwWordCountStatusBarControl::RegisterControl(FN_STAT_WORDCOUNT, pMod);
     375                 :            : 
     376                 :         73 :     SwBookmarkControl::RegisterControl(FN_STAT_PAGE, pMod );
     377                 :         73 :     SwTemplateControl::RegisterControl(FN_STAT_TEMPLATE, pMod );
     378                 :         73 :     SwViewLayoutControl::RegisterControl( SID_ATTR_VIEWLAYOUT, pMod );
     379                 :         73 :     SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
     380                 :         73 :     SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
     381                 :            : 
     382                 :         73 :     SwTableOptimizeCtrl::RegisterControl(FN_OPTIMIZE_TABLE, pMod);
     383                 :            : 
     384                 :         73 :     SvxIMapDlgChildWindow::RegisterChildWindow( sal_False, pMod );
     385                 :         73 :     SvxSearchDialogWrapper::RegisterChildWindow( sal_False, pMod );
     386                 :         73 :     SvxHlinkDlgWrapper::RegisterChildWindow( sal_False, pMod );
     387                 :         73 :     SvxFontWorkChildWindow::RegisterChildWindow( sal_False, pMod );
     388                 :         73 :     SwFldDlgWrapper::RegisterChildWindow( sal_False, pMod );
     389                 :         73 :     SwFldDataOnlyDlgWrapper::RegisterChildWindow( sal_False, pMod );
     390                 :         73 :     SvxContourDlgChildWindow::RegisterChildWindow( sal_False, pMod );
     391                 :         73 :     SwNavigationChild::RegisterChildWindowContext( pMod );
     392                 :         73 :     SwInputChild::RegisterChildWindow( sal_False, pMod, SFX_CHILDWIN_FORCEDOCK );
     393                 :         73 :     SwRedlineAcceptChild::RegisterChildWindow( sal_False, pMod );
     394                 :         73 :     SwSyncChildWin::RegisterChildWindow( sal_True, pMod );
     395                 :         73 :     SwMailMergeChildWindow::RegisterChildWindow( sal_False, pMod );
     396                 :         73 :     SwInsertIdxMarkWrapper::RegisterChildWindow( sal_False, pMod );
     397                 :         73 :     SwInsertAuthMarkWrapper::RegisterChildWindow( sal_False, pMod );
     398                 :         73 :     SwWordCountWrapper::RegisterChildWindow( sal_False, pMod );
     399                 :         73 :     SvxRubyChildWindow::RegisterChildWindow( sal_False, pMod);
     400                 :         73 :     SwSpellDialogChildWindow::RegisterChildWindow(sal_False, pMod);
     401                 :            : 
     402                 :         73 :     SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
     403                 :         73 :     SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
     404                 :         73 :     SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
     405                 :         73 :     SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
     406                 :         73 :     SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
     407                 :         73 :     SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
     408                 :         73 :     SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
     409                 :         73 :     SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
     410                 :         73 :     SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod );
     411                 :         73 :     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod);
     412                 :         73 :     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod);
     413                 :         73 :     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod);
     414                 :         73 :     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod);
     415                 :            : 
     416                 :         73 :     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod);
     417                 :         73 :     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod);
     418                 :            : 
     419                 :         73 :     GalleryChildWindow::RegisterChildWindow(0, pMod);
     420                 :            : 
     421                 :         73 :     ::avmedia::MediaToolBoxControl::RegisterControl(SID_AVMEDIA_TOOLBOX, pMod);
     422                 :         73 :     ::avmedia::MediaPlayer::RegisterChildWindow(0, pMod);
     423                 :            : 
     424                 :         73 :     SvxSmartTagsControl::RegisterControl(SID_OPEN_SMARTTAGMENU, pMod);
     425                 :         73 :     ::sfx2::TaskPaneWrapper::RegisterChildWindow( sal_False, pMod );
     426                 :         73 : }
     427                 :            : 
     428                 :            : 
     429                 :            : 
     430                 :            : /*************************************************************************
     431                 :            : |*
     432                 :            : |* Load Module (only dummy for linking of the DLL)
     433                 :            : |*
     434                 :            : \************************************************************************/
     435                 :            : 
     436                 :         73 : void    SwModule::InitAttrPool()
     437                 :            : {
     438                 :            :     OSL_ENSURE(!pAttrPool, "Pool already exists!");
     439         [ +  - ]:         73 :     pAttrPool = new SwAttrPool(0);
     440                 :         73 :     SetPool(pAttrPool);
     441                 :         73 : }
     442                 :            : 
     443                 :         73 : void    SwModule::RemoveAttrPool()
     444                 :            : {
     445                 :         73 :     SetPool(0);
     446                 :         73 :     SfxItemPool::Free(pAttrPool);
     447                 :         73 : }
     448                 :            : 
     449                 :            : 
     450                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10