LCOV - code coverage report
Current view: top level - reportdesign/source/ui/dlg - dlgpage.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 22 4.5 %
Date: 2015-06-13 12:38:46 Functions: 2 3 66.7 %
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             : 
      21             : #include <svx/dialogs.hrc>
      22             : #include <svx/flagsdef.hxx>
      23             : #include <svx/svxdlg.hxx>
      24             : #include <editeng/svxenum.hxx>
      25             : #include "dlgpage.hxx"
      26             : #include "ModuleHelper.hxx"
      27             : #include "RptResId.hrc"
      28             : #include <svl/intitem.hxx>
      29             : #include <svl/cjkoptions.hxx>
      30             : #include <svl/aeitem.hxx>
      31             : 
      32             : namespace rptui
      33             : {
      34             : /*************************************************************************
      35             : |*
      36             : |* Konstruktor des Tab-Dialogs: Fuegt die Seiten zum Dialog hinzu
      37             : |*
      38             : \************************************************************************/
      39             : 
      40           0 : ORptPageDialog::ORptPageDialog( vcl::Window* pParent, const SfxItemSet* pAttr, const OUString &rDialog)
      41           0 :     : SfxTabDialog (pParent, rDialog, "modules/dbreport/ui/" +
      42           0 :         rDialog.toAsciiLowerCase() +
      43           0 :         ".ui", pAttr)
      44             : {
      45           0 :     SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
      46             :     assert(pFact && "Dialog creation failed!");
      47             : 
      48           0 :     if (rDialog == "BackgroundDialog")
      49             :     {
      50           0 :         AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0 );
      51             :     }
      52           0 :     else if (rDialog == "PageDialog")
      53             :     {
      54           0 :         AddTabPage("page", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_PAGE ), 0 );
      55           0 :         AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0 );
      56             :     }
      57           0 :     else if (rDialog == "CharDialog")
      58             :     {
      59           0 :         AddTabPage("font", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_NAME ), 0 );
      60           0 :         AddTabPage("fonteffects", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_EFFECTS ), 0 );
      61           0 :         AddTabPage("position", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_POSITION ), 0 );
      62           0 :         AddTabPage("asianlayout", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_TWOLINES ), 0 );
      63           0 :         AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0 );
      64           0 :         AddTabPage("alignment", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_ALIGNMENT ), 0 );
      65             :     }
      66             :     else
      67             :         OSL_FAIL("Unknown page id");
      68             : 
      69           0 :     SvtCJKOptions aCJKOptions;
      70           0 :     if ( !aCJKOptions.IsDoubleLinesEnabled() )
      71           0 :         RemoveTabPage("asianlayout");
      72           0 : }
      73             : 
      74           3 : } // namespace rptui
      75             : 
      76             : 
      77             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11