LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/index - idxmrk.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 29 10.3 %
Date: 2012-12-27 Functions: 6 14 42.9 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include <hintids.hxx>
      21             : #include <helpid.h>
      22             : #include <comphelper/processfactory.hxx>
      23             : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      24             : #include <com/sun/star/beans/PropertyValue.hpp>
      25             : #include <com/sun/star/beans/XPropertySet.hpp>
      26             : #include <com/sun/star/util/SearchOptions.hpp>
      27             : #include <com/sun/star/util/SearchFlags.hpp>
      28             : #include <com/sun/star/i18n/TransliterationModules.hpp>
      29             : #include <svl/stritem.hxx>
      30             : #include <vcl/msgbox.hxx>
      31             : #include <sfx2/dispatch.hxx>
      32             : #include <svl/eitem.hxx>
      33             : #include <svtools/txtcmp.hxx>
      34             : #include <editeng/scripttypeitem.hxx>
      35             : #include <svl/itemset.hxx>
      36             : #include <editeng/langitem.hxx>
      37             : #include <swtypes.hxx>
      38             : #include <idxmrk.hxx>
      39             : #include <txttxmrk.hxx>
      40             : #include <wrtsh.hxx>
      41             : #include <view.hxx>
      42             : #include <multmrk.hxx>
      43             : #include <swundo.hxx>                   // for Undo-Ids
      44             : #include <cmdid.h>
      45             : #include <index.hrc>
      46             : #include <idxmrk.hrc>
      47             : #include <swmodule.hxx>
      48             : #include <fldmgr.hxx>
      49             : #include <fldbas.hxx>
      50             : #include <utlui.hrc>
      51             : #include <swcont.hxx>
      52             : #include <svl/cjkoptions.hxx>
      53             : #include <ndtxt.hxx>
      54             : #include <breakit.hxx>
      55             : 
      56         246 : SFX_IMPL_CHILDWINDOW_WITHID(SwInsertIdxMarkWrapper, FN_INSERT_IDX_ENTRY_DLG)
      57             : 
      58           0 : SwInsertIdxMarkWrapper::SwInsertIdxMarkWrapper( Window *pParentWindow,
      59             :                             sal_uInt16 nId,
      60             :                             SfxBindings* pBindings,
      61             :                             SfxChildWinInfo* pInfo ) :
      62           0 :         SfxChildWindow(pParentWindow, nId)
      63             : {
      64           0 :     SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
      65             :     OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
      66           0 :     pAbstDlg = pFact->CreateIndexMarkFloatDlg(pBindings, this, pParentWindow, pInfo);
      67             :     OSL_ENSURE(pAbstDlg, "Dialogdiet fail!");
      68           0 :     pWindow = pAbstDlg->GetWindow();
      69           0 :     pWindow->Show();    // at this point,because before pSh has to be initialized in ReInitDlg()
      70             :                         // -> Show() will invoke StateChanged() and save pos
      71           0 :     eChildAlignment = SFX_ALIGN_NOALIGNMENT;
      72           0 : }
      73             : 
      74           0 : SfxChildWinInfo SwInsertIdxMarkWrapper::GetInfo() const
      75             : {
      76           0 :     SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
      77             : 
      78           0 :     return aInfo;
      79             : }
      80             : 
      81           0 : void    SwInsertIdxMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
      82             : {
      83           0 :     pAbstDlg->ReInitDlg(rWrtShell);
      84           0 : }
      85             : 
      86         246 : SFX_IMPL_CHILDWINDOW_WITHID(SwInsertAuthMarkWrapper, FN_INSERT_AUTH_ENTRY_DLG)
      87             : 
      88           0 : SwInsertAuthMarkWrapper::SwInsertAuthMarkWrapper(   Window *pParentWindow,
      89             :                             sal_uInt16 nId,
      90             :                             SfxBindings* pBindings,
      91             :                             SfxChildWinInfo* pInfo ) :
      92           0 :         SfxChildWindow(pParentWindow, nId)
      93             : {
      94           0 :     SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
      95             :     OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
      96           0 :     pAbstDlg = pFact->CreateAuthMarkFloatDlg(pBindings, this, pParentWindow, pInfo);
      97             :     OSL_ENSURE(pAbstDlg, "Dialogdiet fail!");
      98           0 :     pWindow = pAbstDlg->GetWindow();
      99             : 
     100           0 :     eChildAlignment = SFX_ALIGN_NOALIGNMENT;
     101           0 : }
     102             : 
     103           0 : SfxChildWinInfo SwInsertAuthMarkWrapper::GetInfo() const
     104             : {
     105           0 :     SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
     106           0 :     return aInfo;
     107             : }
     108             : 
     109           0 : void    SwInsertAuthMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
     110             : {
     111           0 :     pAbstDlg->ReInitDlg(rWrtShell);
     112          30 : }
     113             : 
     114             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10