LCOV - code coverage report
Current view: top level - reportdesign/source/ui/dlg - dlgpage.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 23 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : 
      30                 :            : #include <svx/dialogs.hrc>
      31                 :            : #include <svx/flagsdef.hxx>
      32                 :            : #include <svx/svxdlg.hxx>
      33                 :            : #include <editeng/svxenum.hxx>
      34                 :            : #include "dlgpage.hxx"
      35                 :            : #include "ModuleHelper.hxx"
      36                 :            : #include "RptResId.hrc"
      37                 :            : #include <svl/intitem.hxx>
      38                 :            : #include <svl/cjkoptions.hxx>
      39                 :            : #include <svl/aeitem.hxx>
      40                 :            : 
      41                 :            : namespace rptui
      42                 :            : {
      43                 :            : /*************************************************************************
      44                 :            : |*
      45                 :            : |* Konstruktor des Tab-Dialogs: Fuegt die Seiten zum Dialog hinzu
      46                 :            : |*
      47                 :            : \************************************************************************/
      48                 :            : 
      49                 :          0 : ORptPageDialog::ORptPageDialog( Window* pParent, const SfxItemSet* pAttr,sal_uInt16 _nPageId) :
      50                 :            : SfxTabDialog ( pParent, ModuleRes( _nPageId ), pAttr ),
      51                 :          0 :         rOutAttrs           ( *pAttr )
      52                 :            : {
      53                 :          0 :     SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
      54                 :            :     OSL_ENSURE(pFact, "Dialogdiet fail!");
      55                 :          0 :     switch( _nPageId )
      56                 :            :     {
      57                 :            :         case RID_PAGEDIALOG_BACKGROUND:
      58                 :          0 :             AddTabPage( RID_SVXPAGE_BACKGROUND,String(ModuleRes(1)));
      59                 :          0 :             break;
      60                 :            :         case RID_PAGEDIALOG_PAGE:
      61                 :          0 :             AddTabPage(RID_SVXPAGE_PAGE, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_PAGE ), 0 );
      62                 :          0 :             AddTabPage(RID_SVXPAGE_BACKGROUND, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0 );
      63                 :          0 :             break;
      64                 :            :         case RID_PAGEDIALOG_CHAR:
      65                 :          0 :             AddTabPage(RID_PAGE_CHAR, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_NAME ), 0 );
      66                 :          0 :             AddTabPage(RID_PAGE_EFFECTS, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_EFFECTS ), 0 );
      67                 :          0 :             AddTabPage(RID_PAGE_POSITION, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_POSITION ), 0 );
      68                 :          0 :             AddTabPage(RID_PAGE_TWOLN, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_TWOLINES ), 0 );
      69                 :          0 :             AddTabPage(RID_PAGE_BACKGROUND, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0 );
      70                 :          0 :             AddTabPage(RID_PAGE_ALIGNMENT, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_ALIGNMENT ), 0 );
      71                 :            : 
      72                 :          0 :             break;
      73                 :            :         case RID_PAGEDIALOG_LINE:
      74                 :          0 :             AddTabPage( RID_SVXPAGE_LINE,pFact->GetTabPageCreatorFunc( RID_SVXPAGE_LINE ), 0 );
      75                 :          0 :             break;
      76                 :            :         default:
      77                 :            :             OSL_FAIL("Unknown page id");
      78                 :            :     }
      79                 :            : 
      80                 :          0 :     SvtCJKOptions aCJKOptions;
      81                 :          0 :     if ( !aCJKOptions.IsDoubleLinesEnabled() )
      82                 :          0 :         RemoveTabPage(RID_PAGE_TWOLN);
      83                 :            : 
      84                 :          0 :     FreeResource();
      85                 :          0 : }
      86                 :            : // =============================================================================
      87                 :            : } // namespace rptui
      88                 :            : // =============================================================================
      89                 :            : 
      90                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10