bump product version to 4.2.0.1
[LibreOffice.git] / include / svtools / inetimg.hxx
blob5c19d429d6a55b0eee4fe0443d525f6ae2f1001e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SVTOOLS_INETIMG_HXX
20 #define INCLUDED_SVTOOLS_INETIMG_HXX
22 #include <tools/gen.hxx>
24 class SvData;
25 class SotDataObject;
27 //=========================================================================
29 class INetImage
31 OUString aImageURL;
32 OUString aTargetURL;
33 OUString aTargetFrame;
34 OUString aAlternateText;
35 Size aSizePixel;
37 protected:
38 OUString CopyExchange() const;
39 void PasteExchange( const OUString& rString );
41 void SetImageURL( const OUString& rS ) { aImageURL = rS; }
42 void SetTargetURL( const OUString& rS ) { aTargetURL = rS; }
43 void SetTargetFrame( const OUString& rS ) { aTargetFrame = rS; }
44 void SetAlternateText( const OUString& rS ){ aAlternateText = rS; }
45 void SetSizePixel( const Size& rSize ) { aSizePixel = rSize; }
47 public:
48 INetImage(
49 const OUString& rImageURL,
50 const OUString& rTargetURL,
51 const OUString& rTargetFrame,
52 const OUString& rAlternateText,
53 const Size& rSizePixel )
54 : aImageURL( rImageURL ),
55 aTargetURL( rTargetURL ),
56 aTargetFrame( rTargetFrame ),
57 aAlternateText( rAlternateText ),
58 aSizePixel( rSizePixel )
60 INetImage()
63 const OUString& GetImageURL() const { return aImageURL; }
64 const OUString& GetTargetURL() const { return aTargetURL; }
65 const OUString& GetTargetFrame() const { return aTargetFrame; }
66 const OUString& GetAlternateText() const { return aAlternateText; }
67 const Size& GetSizePixel() const { return aSizePixel; }
69 // Im-/Export
70 sal_Bool Write( SvStream& rOStm, sal_uLong nFormat ) const;
71 sal_Bool Read( SvStream& rIStm, sal_uLong nFormat );
74 #endif // INCLUDED_SVTOOLS_INETIMG_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */