1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
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>
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>
44 #include <sot/formats.hxx>
46 /*************************************************************************
50 \************************************************************************/
52 URLDlg::URLDlg( Window
* pWindow
, const String
& rURL
, const String
& rAlternativeText
, const String
& rDescription
, const String
& rTarget
, const String
& rName
, TargetList
& rTargetList
)
53 : ModalDialog( pWindow
, CUI_RES( RID_SVXDLG_IMAPURL
) )
54 , maFtURL( this, CUI_RES( FT_URL1
) )
55 , maEdtURL( this, CUI_RES( EDT_URL
) )
56 , maFtTarget( this, CUI_RES( FT_TARGET
) )
57 , maCbbTargets( this, CUI_RES( CBB_TARGETS
) )
58 , maFtName( this, CUI_RES( FT_NAME
) )
59 , maEdtName( this, CUI_RES( EDT_NAME
) )
60 , maFtAlternativeText( this, CUI_RES( FT_URLDESCRIPTION
) )
61 , maEdtAlternativeText( this, CUI_RES( EDT_URLDESCRIPTION
) )
62 , maFtDescription( this, CUI_RES( FT_DESCRIPTION
) )
63 , maEdtDescription( this, CUI_RES( EDT_DESCRIPTION
) )
64 , maFlURL( this, CUI_RES( FL_URL
) )
65 , maBtnHelp( this, CUI_RES( BTN_HELP1
) )
66 , maBtnOk( this, CUI_RES( BTN_OK1
) )
67 , maBtnCancel( this, CUI_RES( BTN_CANCEL1
) )
71 maEdtURL
.SetText( rURL
);
72 maEdtAlternativeText
.SetText( rAlternativeText
);
73 maEdtDescription
.SetText( rDescription
);
74 maEdtName
.SetText( rName
);
76 for( size_t i
= 0, n
= rTargetList
.size(); i
< n
; ++i
)
77 maCbbTargets
.InsertEntry( *rTargetList
[ i
] );
80 maCbbTargets
.SetText( OUString("_self") );
82 maCbbTargets
.SetText( rTarget
);
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */