LCOV - code coverage report
Current view: top level - libreoffice/cui/source/dialogs - cuiimapwnd.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 27 3.7 %
Date: 2012-12-27 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             : #include <tools/urlobj.hxx>
      21             : #include <vcl/msgbox.hxx>
      22             : #include <vcl/help.hxx>
      23             : #include <sfx2/sfxsids.hrc>
      24             : #include "macroass.hxx"
      25             : #include <svtools/imaprect.hxx>
      26             : #include <svtools/imapcirc.hxx>
      27             : #include <svtools/imappoly.hxx>
      28             : #include <svl/urlbmk.hxx>
      29             : #include <svx/xoutbmp.hxx>
      30             : #include <dialmgr.hxx>
      31             : #include <cuires.hrc>
      32             : #include <cuiimapdlg.hrc>
      33             : #include <cuiimapwnd.hxx>
      34             : #include <svx/svdpage.hxx>
      35             : #include <svx/svdorect.hxx>
      36             : #include <svx/svdocirc.hxx>
      37             : #include <svx/svdopath.hxx>
      38             : #include <svx/xfltrit.hxx>
      39             : #include <svx/svdpagv.hxx>
      40             : #include <svl/urihelper.hxx>
      41             : #include <svx/xfillit.hxx>
      42             : #include <svx/xlineit.hxx>
      43             : 
      44             : #include <sot/formats.hxx>
      45             : 
      46             : /*************************************************************************
      47             : |*
      48             : |*  URLDlg
      49             : |*
      50             : \************************************************************************/
      51             : 
      52           0 : URLDlg::URLDlg( Window* pWindow, const String& rURL, const String& rAlternativeText, const String& rDescription, const String& rTarget, const String& rName, TargetList& rTargetList )
      53           0 : : ModalDialog( pWindow, CUI_RES( RID_SVXDLG_IMAPURL ) )
      54           0 : , maFtURL( this, CUI_RES( FT_URL1 ) )
      55           0 : , maEdtURL( this, CUI_RES( EDT_URL ) )
      56           0 : , maFtTarget( this, CUI_RES( FT_TARGET ) )
      57           0 : , maCbbTargets( this, CUI_RES( CBB_TARGETS ) )
      58           0 : , maFtName( this, CUI_RES( FT_NAME ) )
      59           0 : , maEdtName( this, CUI_RES( EDT_NAME ) )
      60           0 : , maFtAlternativeText( this, CUI_RES( FT_URLDESCRIPTION ) )
      61           0 : , maEdtAlternativeText( this, CUI_RES( EDT_URLDESCRIPTION ) )
      62           0 : , maFtDescription( this, CUI_RES( FT_DESCRIPTION ) )
      63           0 : , maEdtDescription( this, CUI_RES( EDT_DESCRIPTION ) )
      64           0 : , maFlURL( this, CUI_RES( FL_URL ) )
      65           0 : , maBtnHelp( this, CUI_RES( BTN_HELP1 ) )
      66           0 : , maBtnOk( this, CUI_RES( BTN_OK1 ) )
      67           0 : , maBtnCancel( this, CUI_RES( BTN_CANCEL1 ) )
      68             : {
      69           0 :     FreeResource();
      70             : 
      71           0 :     maEdtURL.SetText( rURL );
      72           0 :     maEdtAlternativeText.SetText( rAlternativeText );
      73           0 :     maEdtDescription.SetText( rDescription );
      74           0 :     maEdtName.SetText( rName );
      75             : 
      76           0 :     for( size_t i = 0, n = rTargetList.size(); i < n; ++i )
      77           0 :         maCbbTargets.InsertEntry( *rTargetList[ i ] );
      78             : 
      79           0 :     if( !rTarget.Len() )
      80           0 :         maCbbTargets.SetText( rtl::OUString("_self") );
      81             :     else
      82           0 :         maCbbTargets.SetText( rTarget );
      83           3 : }
      84             : 
      85             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10