LCOV - code coverage report
Current view: top level - reportdesign/source/ui/dlg - dlgpage.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 23 0.0 %
Date: 2014-04-14 Functions: 0 3 0.0 %
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( Window* pParent, const SfxItemSet* pAttr, const OString &rDialog)
      41           0 :     : SfxTabDialog (pParent, rDialog, OUString("modules/dbreport/ui/") +
      42           0 :         OStringToOUString(rDialog, RTL_TEXTENCODING_UTF8).toAsciiLowerCase() +
      43           0 :         OUString(".ui"), pAttr)
      44           0 :     , rOutAttrs(*pAttr)
      45             : {
      46           0 :     SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
      47             :     OSL_ENSURE(pFact, "Dialogdiet fail!");
      48             : 
      49           0 :     if (rDialog == "BackgroundDialog")
      50             :     {
      51           0 :         AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0 );
      52             :     }
      53           0 :     else if (rDialog == "PageDialog")
      54             :     {
      55           0 :         AddTabPage("page", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_PAGE ), 0 );
      56           0 :         AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0 );
      57             :     }
      58           0 :     else if (rDialog == "CharDialog")
      59             :     {
      60           0 :         AddTabPage("font", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_NAME ), 0 );
      61           0 :         AddTabPage("fonteffects", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_EFFECTS ), 0 );
      62           0 :         AddTabPage("position", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_POSITION ), 0 );
      63           0 :         AddTabPage("asianlayout", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_TWOLINES ), 0 );
      64           0 :         AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0 );
      65           0 :         AddTabPage("alignment", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_ALIGNMENT ), 0 );
      66             :     }
      67             :     else
      68             :         OSL_FAIL("Unknown page id");
      69             : 
      70           0 :     SvtCJKOptions aCJKOptions;
      71           0 :     if ( !aCJKOptions.IsDoubleLinesEnabled() )
      72           0 :         RemoveTabPage("asianlayout");
      73           0 : }
      74             : 
      75           0 : } // namespace rptui
      76             : 
      77             : 
      78             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10