/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cuiimapwnd.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: kz $ $Date: 2007-05-10 14:36:20 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. * * * GNU Lesser General Public License Version 2.1 * ============================================= * Copyright 2005 by Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, CA 94303, USA * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * ************************************************************************/ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_svx.hxx" #ifdef SVX_DLLIMPLEMENTATION #undef SVX_DLLIMPLEMENTATION #endif #ifndef _URLOBJ_HXX //autogen #include #endif #ifndef _SV_MSGBOX_HXX #include #endif #ifndef _SV_HELP_HXX //autogen #include #endif #ifndef _SFXSIDS_HRC #include // SID_ATTR_MACROITEM #endif #define _ANIMATION #ifndef _MACROPG_HXX //autogen #include #endif #ifndef _GOODIES_IMAPRECT_HXX //autogen #include #endif #ifndef _GOODIES_IMAPCIRC_HXX //autogen #include #endif #ifndef _GOODIES_IMAPPOLY_HXX //autogen #include #endif #ifndef _URLBMK_HXX //autogen #include #endif #include #include #include #include #include #include #include "svdpage.hxx" #include "svdorect.hxx" #include "svdocirc.hxx" #include "svdopath.hxx" #include "xfltrit.hxx" #include "svdpagv.hxx" #ifndef SVTOOLS_URIHELPER_HXX #include #endif #ifndef _SVX_FILLITEM_HXX //autogen #include #endif #ifndef _SVX_XLINIIT_HXX //autogen #include #endif #include #include "cuiimapwnd.hxx" //CHINA001 #ifdef MAC #define TRANSCOL Color( COL_LIGHTGRAY ) #else #define TRANSCOL Color( COL_WHITE ) #endif /************************************************************************* |* |* URLDlg |* \************************************************************************/ URLDlg::URLDlg( Window* pWindow, const String& rURL, const String& rDescription, const String& rTarget, const String& rName, TargetList& rTargetList ) : ModalDialog ( pWindow, SVX_RES( RID_SVXDLG_IMAPURL ) ), aFlURL ( this, SVX_RES( FL_URL ) ), aFtURL1 ( this, SVX_RES( FT_URL1 ) ), aEdtURL ( this, SVX_RES( EDT_URL ) ), aFtURLDescription ( this, SVX_RES( FT_URLDESCRIPTION ) ), aEdtURLDescription ( this, SVX_RES( EDT_URLDESCRIPTION ) ), aFtTarget ( this, SVX_RES( FT_TARGET ) ), aCbbTargets ( this, SVX_RES( CBB_TARGETS ) ), aFtName ( this, SVX_RES( FT_NAME ) ), aEdtName ( this, SVX_RES( EDT_NAME ) ), aBtnOk ( this, SVX_RES( BTN_OK ) ), aBtnCancel ( this, SVX_RES( BTN_CANCEL1 ) ) { FreeResource(); aEdtURL.SetText( rURL ); aEdtURLDescription.SetText( rDescription ); aEdtName.SetText( rName ); for( String* pStr = rTargetList.First(); pStr; pStr = rTargetList.Next() ) aCbbTargets.InsertEntry( *pStr ); if( !rTarget.Len() ) aCbbTargets.SetText( String::CreateFromAscii( "_self" ) ); else aCbbTargets.SetText( rTarget ); }