LCOV - code coverage report
Current view: top level - include/svtools - place.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 10 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 9 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             : 
      10             : #ifndef INCLUDED_SVTOOLS_PLACE_HXX
      11             : #define INCLUDED_SVTOOLS_PLACE_HXX
      12             : 
      13             : #include <tools/urlobj.hxx>
      14             : 
      15           0 : class Place
      16             : {
      17             : private:
      18             :     OUString msName;
      19             :     INetURLObject maUrl;
      20             : 
      21             :     bool mbEditable;
      22             : 
      23             : public:
      24             : 
      25           0 :     Place( const OUString& sName, const OUString& sUrl, bool bEditable = false ) :
      26             :         msName( sName ),
      27             :         maUrl( sUrl ),
      28           0 :         mbEditable( bEditable ) {};
      29             : 
      30           0 :     void SetName(const OUString& aName ) { msName = aName; }
      31           0 :     void SetUrl(const  OUString& aUrl ) { maUrl.SetURL( aUrl ); }
      32             : 
      33           0 :     OUString& GetName( ) { return msName; }
      34           0 :     OUString GetUrl( ) { return maUrl.GetMainURL( INetURLObject::NO_DECODE ); }
      35           0 :     INetURLObject& GetUrlObject( ) { return maUrl; }
      36           0 :     bool  IsLocal( ) { return maUrl.GetProtocol() == INetProtocol::File; }
      37           0 :     bool  IsEditable( ) { return mbEditable; }
      38             : };
      39             : 
      40             : #endif // INCLUDED_SVTOOLS_PLACE_HXX
      41             : 
      42             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11