RID_SVXDLG_NEWHYPERLINK conversion to .ui

Conflicts:
	cui/UIConfig_cui.mk

Change-Id: I8f06518f2d84e333b553c247ca3d9a28d1280eea
This commit is contained in:
Szymon Kłos
2014-06-22 12:24:33 +02:00
committed by Caolán McNamara
parent 95e6cc2ecb
commit 360796b491
23 changed files with 2252 additions and 1239 deletions

View File

@@ -70,7 +70,12 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/hangulhanjaadddialog \ cui/uiconfig/ui/hangulhanjaadddialog \
cui/uiconfig/ui/hangulhanjaoptdialog \ cui/uiconfig/ui/hangulhanjaoptdialog \
cui/uiconfig/ui/hatchpage \ cui/uiconfig/ui/hatchpage \
cui/uiconfig/ui/hyperlinkdialog \
cui/uiconfig/ui/hyperlinkdocpage \
cui/uiconfig/ui/hyperlinkinternetpage \
cui/uiconfig/ui/hyperlinkmarkdialog \ cui/uiconfig/ui/hyperlinkmarkdialog \
cui/uiconfig/ui/hyperlinkmailpage \
cui/uiconfig/ui/hyperlinknewdocpage \
cui/uiconfig/ui/hyphenate \ cui/uiconfig/ui/hyphenate \
cui/uiconfig/ui/insertfloatingframe \ cui/uiconfig/ui/insertfloatingframe \
cui/uiconfig/ui/insertoleobject \ cui/uiconfig/ui/insertoleobject \

View File

@@ -24,7 +24,6 @@
#include "hlmailtp.hxx" #include "hlmailtp.hxx"
#include "hldoctp.hxx" #include "hldoctp.hxx"
#include "hldocntp.hxx" #include "hldocntp.hxx"
#include "hyperdlg.hrc"
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Reference;
@@ -83,7 +82,7 @@ void SvxHlinkCtrl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
|************************************************************************/ |************************************************************************/
SvxHpLinkDlg::SvxHpLinkDlg (Window* pParent, SfxBindings* pBindings) SvxHpLinkDlg::SvxHpLinkDlg (Window* pParent, SfxBindings* pBindings)
: IconChoiceDialog( pParent, CUI_RES ( RID_SVXDLG_NEWHYPERLINK ) ), : IconChoiceDialog( pParent, "HyperlinkDialog", "cui/ui/hyperlinkdialog.ui" ),
maCtrl ( SID_HYPERLINK_GETLINK, *pBindings, this ), maCtrl ( SID_HYPERLINK_GETLINK, *pBindings, this ),
mpBindings ( pBindings ), mpBindings ( pBindings ),
mbReadOnly ( false ), mbReadOnly ( false ),
@@ -112,6 +111,7 @@ SvxHpLinkDlg::SvxHpLinkDlg (Window* pParent, SfxBindings* pBindings)
aImage = Image( CUI_RES ( RID_SVXBMP_HLDOCNTP ) ); aImage = Image( CUI_RES ( RID_SVXBMP_HLDOCNTP ) );
pEntry = AddTabPage ( RID_SVXPAGE_HYPERLINK_NEWDOCUMENT, aStrTitle, aImage, SvxHyperlinkNewDocTp::Create ); pEntry = AddTabPage ( RID_SVXPAGE_HYPERLINK_NEWDOCUMENT, aStrTitle, aImage, SvxHyperlinkNewDocTp::Create );
pEntry->SetQuickHelpText( CUI_RESSTR( RID_SVXSTR_HYPERDLG_HLDOCNTP_HELP ) ); pEntry->SetQuickHelpText( CUI_RESSTR( RID_SVXSTR_HYPERDLG_HLDOCNTP_HELP ) );
SetCurPageId(RID_SVXPAGE_HYPERLINK_INTERNET);
// create itemset for tabpages // create itemset for tabpages
mpItemSet = new SfxItemSet( SFX_APP()->GetPool(), SID_HYPERLINK_GETLINK, mpItemSet = new SfxItemSet( SFX_APP()->GetPool(), SID_HYPERLINK_GETLINK,
@@ -301,14 +301,18 @@ sal_uInt16 SvxHpLinkDlg::SetPage ( SvxHyperlinkItem* pItem )
mbIsHTMLDoc = (pItem->GetInsertMode() & HLINK_HTMLMODE) ? true : false; mbIsHTMLDoc = (pItem->GetInsertMode() & HLINK_HTMLMODE) ? true : false;
SfxItemSet& aPageSet = (SfxItemSet&)GetTabPage (nPageId)->GetItemSet (); IconChoicePage* pPage = GetTabPage (nPageId);
aPageSet.Put ( *pItem ); if(pPage)
pCurrentPage->Reset( aPageSet );
if ( mbGrabFocus )
{ {
pCurrentPage->SetInitFocus(); // #92535# grab the focus only once at initialization SfxItemSet& aPageSet = (SfxItemSet&)pPage->GetItemSet ();
mbGrabFocus = false; aPageSet.Put ( *pItem );
pCurrentPage->Reset( aPageSet );
if ( mbGrabFocus )
{
pCurrentPage->SetInitFocus(); // #92535# grab the focus only once at initialization
mbGrabFocus = false;
}
} }
return nPageId; return nPageId;
} }

View File

@@ -33,7 +33,6 @@
#include <unotools/ucbstreamhelper.hxx> #include <unotools/ucbstreamhelper.hxx>
#include <unotools/ucbhelper.hxx> #include <unotools/ucbhelper.hxx>
#include "hyperdlg.hrc"
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/ui/dialogs/FolderPicker.hpp> #include <com/sun/star/ui/dialogs/FolderPicker.hpp>
@@ -84,9 +83,9 @@ bool SvxHyperlinkNewDocTp::ImplGetURLObject( const OUString& rPath, const OUStri
} }
if ( bIsValidURL ) if ( bIsValidURL )
{ {
sal_Int32 nPos = maLbDocTypes.GetSelectEntryPos(); sal_Int32 nPos = m_pLbDocTypes->GetSelectEntryPos();
if ( nPos != LISTBOX_ENTRY_NOTFOUND ) if ( nPos != LISTBOX_ENTRY_NOTFOUND )
aURLObject.SetExtension( ((DocumentTypeData*)maLbDocTypes.GetEntryData( nPos ))->aStrExt ); aURLObject.SetExtension( ((DocumentTypeData*)m_pLbDocTypes->GetEntryData( nPos ))->aStrExt );
} }
} }
@@ -99,47 +98,41 @@ bool SvxHyperlinkNewDocTp::ImplGetURLObject( const OUString& rPath, const OUStri
|* |*
|************************************************************************/ |************************************************************************/
SvxHyperlinkNewDocTp::SvxHyperlinkNewDocTp ( Window *pParent, const SfxItemSet& rItemSet) SvxHyperlinkNewDocTp::SvxHyperlinkNewDocTp ( Window *pParent, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet)
: SvxHyperlinkTabPageBase ( pParent, CUI_RES( RID_SVXPAGE_HYPERLINK_NEWDOCUMENT ), rItemSet ), : SvxHyperlinkTabPageBase ( pParent, pDlg, "HyperlinkNewDocPage", "cui/ui/hyperlinknewdocpage.ui", rItemSet )
maGrpNewDoc ( this, CUI_RES (GRP_NEWDOCUMENT) ),
maRbtEditNow ( this, CUI_RES (RB_EDITNOW) ),
maRbtEditLater ( this, CUI_RES (RB_EDITLATER) ),
maFtPath ( this, CUI_RES (FT_PATH_NEWDOC) ),
maCbbPath ( this, INET_PROT_FILE ),
maBtCreate ( this, CUI_RES (BTN_CREATE) ),
maFtDocTypes ( this, CUI_RES (FT_DOCUMENT_TYPES) ),
maLbDocTypes ( this, CUI_RES (LB_DOCUMENT_TYPES) )
{ {
get(m_pRbtEditNow, "editnow");
get(m_pRbtEditLater, "editlater");
get(m_pCbbPath, "path");
m_pCbbPath->SetSmartProtocol(INET_PROT_FILE);
get(m_pBtCreate, "create");
m_pBtCreate->SetModeImage(Image(CUI_RES(RID_SVXBMP_NEWDOC)));
get(m_pLbDocTypes, "types");
// Set HC bitmaps and disable display of bitmap names. // Set HC bitmaps and disable display of bitmap names.
maBtCreate.EnableTextDisplay (false); m_pBtCreate->EnableTextDisplay (false);
InitStdControls(); InitStdControls();
FreeResource();
SetExchangeSupport (); SetExchangeSupport ();
maCbbPath.SetPosSizePixel ( LogicToPixel( Point( COL_2 , 25 ), MAP_APPFONT ), m_pCbbPath->Show();
LogicToPixel( Size ( 176 - COL_DIFF, 60), MAP_APPFONT ) ); m_pCbbPath->SetBaseURL(SvtPathOptions().GetWorkPath());
maCbbPath.Show();
maCbbPath.SetBaseURL(SvtPathOptions().GetWorkPath());
// set defaults // set defaults
maRbtEditNow.Check(); m_pRbtEditNow->Check();
maBtCreate.SetClickHdl ( LINK ( this, SvxHyperlinkNewDocTp, ClickNewHdl_Impl ) ); m_pBtCreate->SetClickHdl ( LINK ( this, SvxHyperlinkNewDocTp, ClickNewHdl_Impl ) );
maBtCreate.SetAccessibleRelationMemberOf( &maGrpNewDoc );
maBtCreate.SetAccessibleRelationLabeledBy( &maFtPath );
FillDocumentList (); FillDocumentList ();
} }
SvxHyperlinkNewDocTp::~SvxHyperlinkNewDocTp () SvxHyperlinkNewDocTp::~SvxHyperlinkNewDocTp ()
{ {
for ( sal_uInt16 n=0; n<maLbDocTypes.GetEntryCount(); n++ ) for ( sal_uInt16 n=0; n<m_pLbDocTypes->GetEntryCount(); n++ )
{ {
DocumentTypeData* pTypeData = (DocumentTypeData*) DocumentTypeData* pTypeData = (DocumentTypeData*)
maLbDocTypes.GetEntryData ( n ); m_pLbDocTypes->GetEntryData ( n );
delete pTypeData; delete pTypeData;
} }
} }
@@ -200,14 +193,14 @@ void SvxHyperlinkNewDocTp::FillDocumentList ()
OUString aTitleName( aTitle ); OUString aTitleName( aTitle );
aTitleName = aTitleName.replaceFirst( "~", "" ); aTitleName = aTitleName.replaceFirst( "~", "" );
sal_Int16 nPos = maLbDocTypes.InsertEntry ( aTitleName ); sal_Int16 nPos = m_pLbDocTypes->InsertEntry ( aTitleName );
OUString aStrDefExt( pFilter->GetDefaultExtension () ); OUString aStrDefExt( pFilter->GetDefaultExtension () );
DocumentTypeData *pTypeData = new DocumentTypeData ( aDocumentUrl, aStrDefExt.copy( 2 ) ); DocumentTypeData *pTypeData = new DocumentTypeData ( aDocumentUrl, aStrDefExt.copy( 2 ) );
maLbDocTypes.SetEntryData ( nPos, pTypeData ); m_pLbDocTypes->SetEntryData ( nPos, pTypeData );
} }
} }
} }
maLbDocTypes.SelectEntryPos ( 0 ); m_pLbDocTypes->SelectEntryPos ( 0 );
LeaveWait(); LeaveWait();
} }
@@ -223,9 +216,9 @@ void SvxHyperlinkNewDocTp::GetCurentItemData ( OUString& rStrURL, OUString& aStr
SvxLinkInsertMode& eMode ) SvxLinkInsertMode& eMode )
{ {
// get data from dialog-controls // get data from dialog-controls
rStrURL = maCbbPath.GetText(); rStrURL = m_pCbbPath->GetText();
INetURLObject aURL; INetURLObject aURL;
if ( ImplGetURLObject( rStrURL, maCbbPath.GetBaseURL(), aURL ) ) if ( ImplGetURLObject( rStrURL, m_pCbbPath->GetBaseURL(), aURL ) )
{ {
rStrURL = aURL.GetMainURL( INetURLObject::NO_DECODE ); rStrURL = aURL.GetMainURL( INetURLObject::NO_DECODE );
} }
@@ -239,9 +232,9 @@ void SvxHyperlinkNewDocTp::GetCurentItemData ( OUString& rStrURL, OUString& aStr
|* |*
|************************************************************************/ |************************************************************************/
IconChoicePage* SvxHyperlinkNewDocTp::Create( Window* pWindow, const SfxItemSet& rItemSet ) IconChoicePage* SvxHyperlinkNewDocTp::Create( Window* pWindow, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet )
{ {
return( new SvxHyperlinkNewDocTp( pWindow, rItemSet ) ); return( new SvxHyperlinkNewDocTp( pWindow, pDlg, rItemSet ) );
} }
/************************************************************************* /*************************************************************************
@@ -252,7 +245,7 @@ IconChoicePage* SvxHyperlinkNewDocTp::Create( Window* pWindow, const SfxItemSet&
void SvxHyperlinkNewDocTp::SetInitFocus() void SvxHyperlinkNewDocTp::SetInitFocus()
{ {
maCbbPath.GrabFocus(); m_pCbbPath->GrabFocus();
} }
/************************************************************************* /*************************************************************************
@@ -264,7 +257,7 @@ void SvxHyperlinkNewDocTp::SetInitFocus()
bool SvxHyperlinkNewDocTp::AskApply() bool SvxHyperlinkNewDocTp::AskApply()
{ {
INetURLObject aINetURLObject; INetURLObject aINetURLObject;
bool bRet = ImplGetURLObject( maCbbPath.GetText(), maCbbPath.GetBaseURL(), aINetURLObject ); bool bRet = ImplGetURLObject( m_pCbbPath->GetText(), m_pCbbPath->GetBaseURL(), aINetURLObject );
if ( !bRet ) if ( !bRet )
{ {
WarningBox aWarning( this, WB_OK, CUI_RESSTR(RID_SVXSTR_HYPDLG_NOVALIDFILENAME) ); WarningBox aWarning( this, WB_OK, CUI_RESSTR(RID_SVXSTR_HYPDLG_NOVALIDFILENAME) );
@@ -284,7 +277,7 @@ void SvxHyperlinkNewDocTp::DoApply ()
EnterWait(); EnterWait();
// get data from dialog-controls // get data from dialog-controls
OUString aStrNewName = maCbbPath.GetText(); OUString aStrNewName = m_pCbbPath->GetText();
if ( aStrNewName == aEmptyStr ) if ( aStrNewName == aEmptyStr )
aStrNewName = maStrInitURL; aStrNewName = maStrInitURL;
@@ -293,7 +286,7 @@ void SvxHyperlinkNewDocTp::DoApply ()
// create a real URL-String // create a real URL-String
INetURLObject aURL; INetURLObject aURL;
if ( ImplGetURLObject( aStrNewName, maCbbPath.GetBaseURL(), aURL ) ) if ( ImplGetURLObject( aStrNewName, m_pCbbPath->GetBaseURL(), aURL ) )
{ {
@@ -330,11 +323,11 @@ void SvxHyperlinkNewDocTp::DoApply ()
if ( aStrNewName != aEmptyStr ) if ( aStrNewName != aEmptyStr )
{ {
// get private-url // get private-url
sal_Int32 nPos = maLbDocTypes.GetSelectEntryPos(); sal_Int32 nPos = m_pLbDocTypes->GetSelectEntryPos();
if( nPos == LISTBOX_ENTRY_NOTFOUND ) if( nPos == LISTBOX_ENTRY_NOTFOUND )
nPos=0; nPos=0;
OUString aStrDocName ( ( ( DocumentTypeData* ) OUString aStrDocName ( ( ( DocumentTypeData* )
maLbDocTypes.GetEntryData( nPos ) )->aStrURL ); m_pLbDocTypes->GetEntryData( nPos ) )->aStrURL );
// create items // create items
SfxStringItem aName( SID_FILE_NAME, aStrDocName ); SfxStringItem aName( SID_FILE_NAME, aStrDocName );
@@ -342,7 +335,7 @@ void SvxHyperlinkNewDocTp::DoApply ()
SfxStringItem aFrame( SID_TARGETNAME, OUString("_blank") ); SfxStringItem aFrame( SID_TARGETNAME, OUString("_blank") );
OUString aStrFlags('S'); OUString aStrFlags('S');
if ( maRbtEditLater.IsChecked() ) if ( m_pRbtEditLater->IsChecked() )
{ {
aStrFlags += OUString('H'); aStrFlags += OUString('H');
} }
@@ -371,7 +364,7 @@ void SvxHyperlinkNewDocTp::DoApply ()
} }
} }
if ( maRbtEditNow.IsChecked() && pCurrentDocFrame ) if ( m_pRbtEditNow->IsChecked() && pCurrentDocFrame )
{ {
pCurrentDocFrame->ToTop(); pCurrentDocFrame->ToTop();
} }
@@ -381,7 +374,7 @@ void SvxHyperlinkNewDocTp::DoApply ()
{ {
} }
if ( pViewFrame && maRbtEditLater.IsChecked() ) if ( pViewFrame && m_pRbtEditLater->IsChecked() )
{ {
SfxObjectShell* pObjShell = pViewFrame->GetObjectShell(); SfxObjectShell* pObjShell = pViewFrame->GetObjectShell();
pObjShell->DoClose(); pObjShell->DoClose();
@@ -403,8 +396,8 @@ IMPL_LINK_NOARG(SvxHyperlinkNewDocTp, ClickNewHdl_Impl)
uno::Reference < XFolderPicker2 > xFolderPicker = FolderPicker::create(xContext); uno::Reference < XFolderPicker2 > xFolderPicker = FolderPicker::create(xContext);
OUString aStrURL; OUString aStrURL;
OUString aTempStrURL( maCbbPath.GetText() ); OUString aTempStrURL( m_pCbbPath->GetText() );
utl::LocalFileHelper::ConvertSystemPathToURL( aTempStrURL, maCbbPath.GetBaseURL(), aStrURL ); utl::LocalFileHelper::ConvertSystemPathToURL( aTempStrURL, m_pCbbPath->GetBaseURL(), aStrURL );
OUString aStrPath = aStrURL; OUString aStrPath = aStrURL;
bool bZeroPath = aStrPath.isEmpty(); bool bZeroPath = aStrPath.isEmpty();
@@ -429,7 +422,7 @@ IMPL_LINK_NOARG(SvxHyperlinkNewDocTp, ClickNewHdl_Impl)
if( bHandleFileName ) if( bHandleFileName )
aStrName = bZeroPath? aTempStrURL : OUString(aURL.getName()); aStrName = bZeroPath? aTempStrURL : OUString(aURL.getName());
maCbbPath.SetBaseURL( xFolderPicker->getDirectory() ); m_pCbbPath->SetBaseURL( xFolderPicker->getDirectory() );
OUString aStrTmp( xFolderPicker->getDirectory() ); OUString aStrTmp( xFolderPicker->getDirectory() );
if( aStrTmp[ aStrTmp.getLength() - 1 ] != sSlash[0] ) if( aStrTmp[ aStrTmp.getLength() - 1 ] != sSlash[0] )
@@ -442,11 +435,11 @@ IMPL_LINK_NOARG(SvxHyperlinkNewDocTp, ClickNewHdl_Impl)
INetURLObject aNewURL( aStrTmp ); INetURLObject aNewURL( aStrTmp );
if( !aStrName.isEmpty() && !aNewURL.getExtension().isEmpty() && if( !aStrName.isEmpty() && !aNewURL.getExtension().isEmpty() &&
maLbDocTypes.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND ) m_pLbDocTypes->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND )
{ {
// get private-url // get private-url
sal_uInt16 nPos = maLbDocTypes.GetSelectEntryPos(); sal_uInt16 nPos = m_pLbDocTypes->GetSelectEntryPos();
aNewURL.setExtension( ( ( DocumentTypeData* ) maLbDocTypes.GetEntryData( nPos ) )->aStrExt ); aNewURL.setExtension( ( ( DocumentTypeData* ) m_pLbDocTypes->GetEntryData( nPos ) )->aStrExt );
} }
if( aNewURL.GetProtocol() == INET_PROT_FILE ) if( aNewURL.GetProtocol() == INET_PROT_FILE )
@@ -458,7 +451,7 @@ IMPL_LINK_NOARG(SvxHyperlinkNewDocTp, ClickNewHdl_Impl)
aStrTmp = aNewURL.GetMainURL( INetURLObject::DECODE_UNAMBIGUOUS ); aStrTmp = aNewURL.GetMainURL( INetURLObject::DECODE_UNAMBIGUOUS );
} }
maCbbPath.SetText ( aStrTmp ); m_pCbbPath->SetText ( aStrTmp );
} }
return( 0L ); return( 0L );
} }

View File

@@ -23,7 +23,6 @@
#include "com/sun/star/ui/dialogs/TemplateDescription.hpp" #include "com/sun/star/ui/dialogs/TemplateDescription.hpp"
#include "hldoctp.hxx" #include "hldoctp.hxx"
#include "hyperdlg.hrc"
#include "hlmarkwn_def.hxx" #include "hlmarkwn_def.hxx"
sal_Char const sHash[] = "#"; sal_Char const sHash[] = "#";
@@ -35,49 +34,40 @@ sal_Char const sFileScheme[] = INET_FILE_SCHEME;
|* |*
|************************************************************************/ |************************************************************************/
SvxHyperlinkDocTp::SvxHyperlinkDocTp ( Window *pParent, const SfxItemSet& rItemSet) SvxHyperlinkDocTp::SvxHyperlinkDocTp ( Window *pParent, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet)
: SvxHyperlinkTabPageBase ( pParent, CUI_RES( RID_SVXPAGE_HYPERLINK_DOCUMENT ), rItemSet ), : SvxHyperlinkTabPageBase ( pParent, pDlg, "HyperlinkDocPage", "cui/ui/hyperlinkdocpage.ui", rItemSet ),
maGrpDocument ( this, CUI_RES (GRP_DOCUMENT) ),
maFtPath ( this, CUI_RES (FT_PATH_DOC) ),
maCbbPath ( this, INET_PROT_FILE ),
maBtFileopen ( this, CUI_RES (BTN_FILEOPEN) ),
maGrpTarget ( this, CUI_RES (GRP_TARGET) ),
maFtTarget ( this, CUI_RES (FT_TARGET_DOC) ),
maEdTarget ( this, CUI_RES (ED_TARGET_DOC) ),
maFtURL ( this, CUI_RES (FT_URL) ),
maFtFullURL ( this, CUI_RES (FT_FULL_URL) ),
maBtBrowse ( this, CUI_RES (BTN_BROWSE) ),
mbMarkWndOpen ( false ) mbMarkWndOpen ( false )
{ {
get(m_pCbbPath, "path");
m_pCbbPath->SetSmartProtocol(INET_PROT_FILE);
get(m_pBtFileopen, "fileopen");
m_pBtFileopen->SetModeImage(Image(CUI_RES(RID_SVXBMP_FILEOPEN)));
get(m_pEdTarget, "target");
get(m_pFtFullURL, "url");
get(m_pBtBrowse, "browse");
m_pBtBrowse->SetModeImage(Image(CUI_RES(RID_SVXBMP_TARGET)));
// Disable display of bitmap names. // Disable display of bitmap names.
maBtBrowse.EnableTextDisplay (false); m_pBtBrowse->EnableTextDisplay (false);
maBtFileopen.EnableTextDisplay (false); m_pBtFileopen->EnableTextDisplay (false);
InitStdControls(); InitStdControls();
FreeResource();
// Init URL-Box (pos&size, Open-Handler) m_pCbbPath->Show();
maCbbPath.SetPosSizePixel ( LogicToPixel( Point( COL_2, 15 ), MAP_APPFONT ),
LogicToPixel( Size ( 176 - COL_DIFF, 60), MAP_APPFONT ) );
maCbbPath.Show();
OUString aFileScheme( INET_FILE_SCHEME ); OUString aFileScheme( INET_FILE_SCHEME );
maCbbPath.SetBaseURL(aFileScheme); m_pCbbPath->SetBaseURL(aFileScheme);
maCbbPath.SetHelpId( HID_HYPERDLG_DOC_PATH ); m_pCbbPath->SetHelpId( HID_HYPERDLG_DOC_PATH );
SetExchangeSupport (); SetExchangeSupport ();
// overload handlers // overload handlers
maBtFileopen.SetClickHdl ( LINK ( this, SvxHyperlinkDocTp, ClickFileopenHdl_Impl ) ); m_pBtFileopen->SetClickHdl ( LINK ( this, SvxHyperlinkDocTp, ClickFileopenHdl_Impl ) );
maBtBrowse.SetClickHdl ( LINK ( this, SvxHyperlinkDocTp, ClickTargetHdl_Impl ) ); m_pBtBrowse->SetClickHdl ( LINK ( this, SvxHyperlinkDocTp, ClickTargetHdl_Impl ) );
maCbbPath.SetModifyHdl ( LINK ( this, SvxHyperlinkDocTp, ModifiedPathHdl_Impl ) ); m_pCbbPath->SetModifyHdl ( LINK ( this, SvxHyperlinkDocTp, ModifiedPathHdl_Impl ) );
maEdTarget.SetModifyHdl ( LINK ( this, SvxHyperlinkDocTp, ModifiedTargetHdl_Impl ) ); m_pEdTarget->SetModifyHdl ( LINK ( this, SvxHyperlinkDocTp, ModifiedTargetHdl_Impl ) );
maCbbPath.SetLoseFocusHdl( LINK ( this, SvxHyperlinkDocTp, LostFocusPathHdl_Impl ) ); m_pCbbPath->SetLoseFocusHdl( LINK ( this, SvxHyperlinkDocTp, LostFocusPathHdl_Impl ) );
maBtBrowse.SetAccessibleRelationMemberOf( &maGrpTarget );
maBtBrowse.SetAccessibleRelationLabeledBy( &maFtTarget );
maBtFileopen.SetAccessibleRelationMemberOf( &maGrpDocument );
maBtFileopen.SetAccessibleRelationLabeledBy( &maFtPath );
maTimer.SetTimeoutHdl ( LINK ( this, SvxHyperlinkDocTp, TimeoutHdl_Impl ) ); maTimer.SetTimeoutHdl ( LINK ( this, SvxHyperlinkDocTp, TimeoutHdl_Impl ) );
} }
@@ -95,13 +85,13 @@ void SvxHyperlinkDocTp::FillDlgFields(const OUString& rStrURL)
{ {
sal_Int32 nPos = rStrURL.indexOf(sHash); sal_Int32 nPos = rStrURL.indexOf(sHash);
// path // path
maCbbPath.SetText ( rStrURL.copy( 0, ( nPos == -1 ? rStrURL.getLength() : nPos ) ) ); m_pCbbPath->SetText ( rStrURL.copy( 0, ( nPos == -1 ? rStrURL.getLength() : nPos ) ) );
// set target in document at editfield // set target in document at editfield
OUString aStrMark; OUString aStrMark;
if ( nPos != -1 && nPos < rStrURL.getLength()-1 ) if ( nPos != -1 && nPos < rStrURL.getLength()-1 )
aStrMark = rStrURL.copy( nPos+1 ); aStrMark = rStrURL.copy( nPos+1 );
maEdTarget.SetText ( aStrMark ); m_pEdTarget->SetText ( aStrMark );
ModifiedPathHdl_Impl ( NULL ); ModifiedPathHdl_Impl ( NULL );
} }
@@ -116,9 +106,9 @@ OUString SvxHyperlinkDocTp::GetCurrentURL ()
{ {
// get data from dialog-controls // get data from dialog-controls
OUString aStrURL; OUString aStrURL;
OUString aStrPath ( maCbbPath.GetText() ); OUString aStrPath ( m_pCbbPath->GetText() );
const OUString aBaseURL ( maCbbPath.GetBaseURL() ); const OUString aBaseURL ( m_pCbbPath->GetBaseURL() );
OUString aStrMark( maEdTarget.GetText() ); OUString aStrMark( m_pEdTarget->GetText() );
if ( aStrPath != aEmptyStr ) if ( aStrPath != aEmptyStr )
{ {
@@ -167,9 +157,9 @@ void SvxHyperlinkDocTp::GetCurentItemData ( OUString& rStrURL, OUString& aStrNam
|* |*
|************************************************************************/ |************************************************************************/
IconChoicePage* SvxHyperlinkDocTp::Create( Window* pWindow, const SfxItemSet& rItemSet ) IconChoicePage* SvxHyperlinkDocTp::Create( Window* pWindow, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet )
{ {
return( new SvxHyperlinkDocTp( pWindow, rItemSet ) ); return( new SvxHyperlinkDocTp( pWindow, pDlg, rItemSet ) );
} }
/************************************************************************* /*************************************************************************
@@ -180,7 +170,7 @@ IconChoicePage* SvxHyperlinkDocTp::Create( Window* pWindow, const SfxItemSet& rI
void SvxHyperlinkDocTp::SetInitFocus() void SvxHyperlinkDocTp::SetInitFocus()
{ {
maCbbPath.GrabFocus(); m_pCbbPath->GrabFocus();
} }
/************************************************************************* /*************************************************************************
@@ -212,8 +202,8 @@ IMPL_LINK_NOARG(SvxHyperlinkDocTp, ClickFileopenHdl_Impl)
utl::LocalFileHelper::ConvertURLToSystemPath( aURL, aPath ); utl::LocalFileHelper::ConvertURLToSystemPath( aURL, aPath );
maCbbPath.SetBaseURL( aURL ); m_pCbbPath->SetBaseURL( aURL );
maCbbPath.SetText( aPath ); m_pCbbPath->SetText( aPath );
if ( aOldURL != GetCurrentURL() ) if ( aOldURL != GetCurrentURL() )
ModifiedPathHdl_Impl (NULL); ModifiedPathHdl_Impl (NULL);
@@ -267,7 +257,7 @@ IMPL_LINK_NOARG(SvxHyperlinkDocTp, ModifiedPathHdl_Impl)
maTimer.SetTimeout( 2500 ); maTimer.SetTimeout( 2500 );
maTimer.Start(); maTimer.Start();
maFtFullURL.SetText( maStrURL ); m_pFtFullURL->SetText( maStrURL );
return( 0L ); return( 0L );
} }
@@ -308,9 +298,9 @@ IMPL_LINK_NOARG(SvxHyperlinkDocTp, ModifiedTargetHdl_Impl)
maStrURL = GetCurrentURL(); maStrURL = GetCurrentURL();
if ( IsMarkWndVisible() ) if ( IsMarkWndVisible() )
mpMarkWnd->SelectEntry ( maEdTarget.GetText() ); mpMarkWnd->SelectEntry ( m_pEdTarget->GetText() );
maFtFullURL.SetText( maStrURL ); m_pFtFullURL->SetText( maStrURL );
return( 0L ); return( 0L );
} }
@@ -325,7 +315,7 @@ IMPL_LINK_NOARG(SvxHyperlinkDocTp, LostFocusPathHdl_Impl)
{ {
maStrURL = GetCurrentURL(); maStrURL = GetCurrentURL();
maFtFullURL.SetText( maStrURL ); m_pFtFullURL->SetText( maStrURL );
return (0L); return (0L);
} }
@@ -338,7 +328,7 @@ IMPL_LINK_NOARG(SvxHyperlinkDocTp, LostFocusPathHdl_Impl)
void SvxHyperlinkDocTp::SetMarkStr ( const OUString& aStrMark ) void SvxHyperlinkDocTp::SetMarkStr ( const OUString& aStrMark )
{ {
maEdTarget.SetText ( aStrMark ); m_pEdTarget->SetText ( aStrMark );
ModifiedTargetHdl_Impl ( NULL ); ModifiedTargetHdl_Impl ( NULL );
} }

View File

@@ -22,7 +22,6 @@
#include <svl/adrparse.hxx> #include <svl/adrparse.hxx>
#include "hlinettp.hxx" #include "hlinettp.hxx"
#include "hyperdlg.hrc"
#include "hlmarkwn_def.hxx" #include "hlmarkwn_def.hxx"
sal_Char const sAnonymous[] = "anonymous"; sal_Char const sAnonymous[] = "anonymous";
@@ -36,62 +35,50 @@ sal_Char const sFTPScheme[] = INET_FTP_SCHEME;
|************************************************************************/ |************************************************************************/
SvxHyperlinkInternetTp::SvxHyperlinkInternetTp ( Window *pParent, SvxHyperlinkInternetTp::SvxHyperlinkInternetTp ( Window *pParent,
IconChoiceDialog* pDlg,
const SfxItemSet& rItemSet) const SfxItemSet& rItemSet)
: SvxHyperlinkTabPageBase ( pParent, CUI_RES( RID_SVXPAGE_HYPERLINK_INTERNET ), : SvxHyperlinkTabPageBase ( pParent, pDlg, "HyperlinkInternetPage", "cui/ui/hyperlinkinternetpage.ui",
rItemSet ) , rItemSet ) ,
maGrpLinkTyp ( this, CUI_RES (GRP_LINKTYPE) ),
maRbtLinktypInternet ( this, CUI_RES (RB_LINKTYP_INTERNET) ),
maRbtLinktypFTP ( this, CUI_RES (RB_LINKTYP_FTP) ),
maFtTarget ( this, CUI_RES (FT_TARGET_HTML) ),
maCbbTarget ( this, INET_PROT_HTTP ),
maBtBrowse ( this, CUI_RES (BTN_BROWSE) ),
maFtLogin ( this, CUI_RES (FT_LOGIN) ),
maEdLogin ( this, CUI_RES (ED_LOGIN) ),
maFtPassword ( this, CUI_RES (FT_PASSWD) ),
maEdPassword ( this, CUI_RES (ED_PASSWD) ),
maCbAnonymous ( this, CUI_RES (CBX_ANONYMOUS) ),
mbMarkWndOpen ( false ) mbMarkWndOpen ( false )
{ {
get(m_pRbtLinktypInternet, "linktyp_internet");
get(m_pRbtLinktypFTP, "linktyp_ftp");
get(m_pCbbTarget, "target");
m_pCbbTarget->SetSmartProtocol(INET_PROT_HTTP);
get(m_pBtBrowse, "browse");
m_pBtBrowse->SetModeImage(Image(CUI_RES (RID_SVXBMP_BROWSE)));
get(m_pFtLogin, "login_label");
get(m_pEdLogin, "login");
get(m_pFtPassword, "password_label");
get(m_pEdPassword, "password");
get(m_pCbAnonymous, "anonymous");
// Disable display of bitmap names. // Disable display of bitmap names.
maBtBrowse.EnableTextDisplay (false); m_pBtBrowse->EnableTextDisplay (false);
InitStdControls(); InitStdControls();
FreeResource();
// Init URL-Box (pos&size, Open-Handler) m_pCbbTarget->Show();
maCbbTarget.SetPosSizePixel ( LogicToPixel( Point( COL_2, 25 ), MAP_APPFONT ), m_pCbbTarget->SetHelpId( HID_HYPERDLG_INET_PATH );
LogicToPixel( Size ( 176 - COL_DIFF, 60), MAP_APPFONT ) );
maCbbTarget.Show();
maCbbTarget.SetHelpId( HID_HYPERDLG_INET_PATH );
SetExchangeSupport (); SetExchangeSupport ();
// set defaults // set defaults
maRbtLinktypInternet.Check (); m_pRbtLinktypInternet->Check ();
maFtLogin.Show( false ); m_pBtBrowse->Enable( true );
maFtPassword.Show( false );
maEdLogin.Show( false );
maEdPassword.Show( false );
maCbAnonymous.Show( false );
maBtBrowse.Enable( true );
// overload handlers // overload handlers
Link aLink( LINK ( this, SvxHyperlinkInternetTp, Click_SmartProtocol_Impl ) ); Link aLink( LINK ( this, SvxHyperlinkInternetTp, Click_SmartProtocol_Impl ) );
maRbtLinktypInternet.SetClickHdl( aLink ); m_pRbtLinktypInternet->SetClickHdl( aLink );
maRbtLinktypFTP.SetClickHdl ( aLink ); m_pRbtLinktypFTP->SetClickHdl ( aLink );
maCbAnonymous.SetClickHdl ( LINK ( this, SvxHyperlinkInternetTp, ClickAnonymousHdl_Impl ) ); m_pCbAnonymous->SetClickHdl ( LINK ( this, SvxHyperlinkInternetTp, ClickAnonymousHdl_Impl ) );
maBtBrowse.SetClickHdl ( LINK ( this, SvxHyperlinkInternetTp, ClickBrowseHdl_Impl ) ); m_pBtBrowse->SetClickHdl ( LINK ( this, SvxHyperlinkInternetTp, ClickBrowseHdl_Impl ) );
maEdLogin.SetModifyHdl ( LINK ( this, SvxHyperlinkInternetTp, ModifiedLoginHdl_Impl ) ); m_pEdLogin->SetModifyHdl ( LINK ( this, SvxHyperlinkInternetTp, ModifiedLoginHdl_Impl ) );
maCbbTarget.SetLoseFocusHdl ( LINK ( this, SvxHyperlinkInternetTp, LostFocusTargetHdl_Impl ) ); m_pCbbTarget->SetLoseFocusHdl ( LINK ( this, SvxHyperlinkInternetTp, LostFocusTargetHdl_Impl ) );
maCbbTarget.SetModifyHdl ( LINK ( this, SvxHyperlinkInternetTp, ModifiedTargetHdl_Impl ) ); m_pCbbTarget->SetModifyHdl ( LINK ( this, SvxHyperlinkInternetTp, ModifiedTargetHdl_Impl ) );
maTimer.SetTimeoutHdl ( LINK ( this, SvxHyperlinkInternetTp, TimeoutHdl_Impl ) ); maTimer.SetTimeoutHdl ( LINK ( this, SvxHyperlinkInternetTp, TimeoutHdl_Impl ) );
maFtTarget.SetAccessibleRelationMemberOf( &maGrpLinkTyp );
maCbbTarget.SetAccessibleRelationMemberOf( &maGrpLinkTyp );
maBtBrowse.SetAccessibleRelationMemberOf( &maGrpLinkTyp );
maBtBrowse.SetAccessibleRelationLabeledBy( &maFtTarget );
} }
SvxHyperlinkInternetTp::~SvxHyperlinkInternetTp () SvxHyperlinkInternetTp::~SvxHyperlinkInternetTp ()
@@ -125,36 +112,36 @@ void SvxHyperlinkInternetTp::FillDlgFields(const OUString& rStrURL)
// set URL-field // set URL-field
// Show the scheme, #72740 // Show the scheme, #72740
if ( aURL.GetProtocol() != INET_PROT_NOT_VALID ) if ( aURL.GetProtocol() != INET_PROT_NOT_VALID )
maCbbTarget.SetText( aURL.GetMainURL( INetURLObject::DECODE_UNAMBIGUOUS ) ); m_pCbbTarget->SetText( aURL.GetMainURL( INetURLObject::DECODE_UNAMBIGUOUS ) );
else else
maCbbTarget.SetText(rStrURL); // #77696# m_pCbbTarget->SetText(rStrURL); // #77696#
SetScheme(aStrScheme); SetScheme(aStrScheme);
} }
void SvxHyperlinkInternetTp::setAnonymousFTPUser() void SvxHyperlinkInternetTp::setAnonymousFTPUser()
{ {
maEdLogin.SetText(OUString(sAnonymous)); m_pEdLogin->SetText(OUString(sAnonymous));
SvAddressParser aAddress( SvtUserOptions().GetEmail() ); SvAddressParser aAddress( SvtUserOptions().GetEmail() );
maEdPassword.SetText( aAddress.Count() ? aAddress.GetEmailAddress(0) : OUString() ); m_pEdPassword->SetText( aAddress.Count() ? aAddress.GetEmailAddress(0) : OUString() );
maFtLogin.Disable (); m_pFtLogin->Disable ();
maFtPassword.Disable (); m_pFtPassword->Disable ();
maEdLogin.Disable (); m_pEdLogin->Disable ();
maEdPassword.Disable (); m_pEdPassword->Disable ();
maCbAnonymous.Check(); m_pCbAnonymous->Check();
} }
void SvxHyperlinkInternetTp::setFTPUser(const OUString& rUser, const OUString& rPassword) void SvxHyperlinkInternetTp::setFTPUser(const OUString& rUser, const OUString& rPassword)
{ {
maEdLogin.SetText ( rUser ); m_pEdLogin->SetText ( rUser );
maEdPassword.SetText ( rPassword ); m_pEdPassword->SetText ( rPassword );
maFtLogin.Enable (); m_pFtLogin->Enable ();
maFtPassword.Enable (); m_pFtPassword->Enable ();
maEdLogin.Enable (); m_pEdLogin->Enable ();
maEdPassword.Enable (); m_pEdPassword->Enable ();
maCbAnonymous.Check(false); m_pCbAnonymous->Check(false);
} }
/************************************************************************* /*************************************************************************
@@ -174,7 +161,7 @@ void SvxHyperlinkInternetTp::GetCurentItemData ( OUString& rStrURL, OUString& aS
OUString SvxHyperlinkInternetTp::CreateAbsoluteURL() const OUString SvxHyperlinkInternetTp::CreateAbsoluteURL() const
{ {
// erase leading and trailing whitespaces // erase leading and trailing whitespaces
OUString aStrURL( maCbbTarget.GetText().trim() ); OUString aStrURL( m_pCbbTarget->GetText().trim() );
INetURLObject aURL(aStrURL); INetURLObject aURL(aStrURL);
@@ -185,8 +172,8 @@ OUString SvxHyperlinkInternetTp::CreateAbsoluteURL() const
} }
// username and password for ftp-url // username and password for ftp-url
if( aURL.GetProtocol() == INET_PROT_FTP && !maEdLogin.GetText().isEmpty() ) if( aURL.GetProtocol() == INET_PROT_FTP && !m_pEdLogin->GetText().isEmpty() )
aURL.SetUserAndPass ( maEdLogin.GetText(), maEdPassword.GetText() ); aURL.SetUserAndPass ( m_pEdLogin->GetText(), m_pEdPassword->GetText() );
if ( aURL.GetProtocol() != INET_PROT_NOT_VALID ) if ( aURL.GetProtocol() != INET_PROT_NOT_VALID )
return aURL.GetMainURL( INetURLObject::DECODE_WITH_CHARSET ); return aURL.GetMainURL( INetURLObject::DECODE_WITH_CHARSET );
@@ -200,9 +187,9 @@ OUString SvxHyperlinkInternetTp::CreateAbsoluteURL() const
|* |*
|************************************************************************/ |************************************************************************/
IconChoicePage* SvxHyperlinkInternetTp::Create( Window* pWindow, const SfxItemSet& rItemSet ) IconChoicePage* SvxHyperlinkInternetTp::Create( Window* pWindow, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet )
{ {
return( new SvxHyperlinkInternetTp( pWindow, rItemSet ) ); return( new SvxHyperlinkInternetTp( pWindow, pDlg, rItemSet ) );
} }
/************************************************************************* /*************************************************************************
@@ -213,7 +200,7 @@ IconChoicePage* SvxHyperlinkInternetTp::Create( Window* pWindow, const SfxItemSe
void SvxHyperlinkInternetTp::SetInitFocus() void SvxHyperlinkInternetTp::SetInitFocus()
{ {
maCbbTarget.GrabFocus(); m_pCbbTarget->GrabFocus();
} }
/************************************************************************* /*************************************************************************
@@ -224,7 +211,7 @@ void SvxHyperlinkInternetTp::SetInitFocus()
IMPL_LINK_NOARG(SvxHyperlinkInternetTp, ModifiedTargetHdl_Impl) IMPL_LINK_NOARG(SvxHyperlinkInternetTp, ModifiedTargetHdl_Impl)
{ {
OUString aScheme = GetSchemeFromURL( maCbbTarget.GetText() ); OUString aScheme = GetSchemeFromURL( m_pCbbTarget->GetText() );
if( !aScheme.isEmpty() ) if( !aScheme.isEmpty() )
SetScheme( aScheme ); SetScheme( aScheme );
@@ -255,10 +242,10 @@ IMPL_LINK_NOARG(SvxHyperlinkInternetTp, TimeoutHdl_Impl)
IMPL_LINK_NOARG(SvxHyperlinkInternetTp, ModifiedLoginHdl_Impl) IMPL_LINK_NOARG(SvxHyperlinkInternetTp, ModifiedLoginHdl_Impl)
{ {
OUString aStrLogin ( maEdLogin.GetText() ); OUString aStrLogin ( m_pEdLogin->GetText() );
if ( aStrLogin.equalsIgnoreAsciiCase( sAnonymous ) ) if ( aStrLogin.equalsIgnoreAsciiCase( sAnonymous ) )
{ {
maCbAnonymous.Check(); m_pCbAnonymous->Check();
ClickAnonymousHdl_Impl(NULL); ClickAnonymousHdl_Impl(NULL);
} }
@@ -275,19 +262,19 @@ void SvxHyperlinkInternetTp::SetScheme(const OUString& rScheme)
bool bInternet = !(bFTP); bool bInternet = !(bFTP);
//update protocol button selection: //update protocol button selection:
maRbtLinktypFTP.Check(bFTP); m_pRbtLinktypFTP->Check(bFTP);
maRbtLinktypInternet.Check(bInternet); m_pRbtLinktypInternet->Check(bInternet);
//update target: //update target:
RemoveImproperProtocol(rScheme); RemoveImproperProtocol(rScheme);
maCbbTarget.SetSmartProtocol( GetSmartProtocolFromButtons() ); m_pCbbTarget->SetSmartProtocol( GetSmartProtocolFromButtons() );
//show/hide special fields for FTP: //show/hide special fields for FTP:
maFtLogin.Show( bFTP ); m_pFtLogin->Show( bFTP );
maFtPassword.Show( bFTP ); m_pFtPassword->Show( bFTP );
maEdLogin.Show( bFTP ); m_pEdLogin->Show( bFTP );
maEdPassword.Show( bFTP ); m_pEdPassword->Show( bFTP );
maCbAnonymous.Show( bFTP ); m_pCbAnonymous->Show( bFTP );
//update 'link target in document'-window and opening-button //update 'link target in document'-window and opening-button
if (rScheme.startsWith(sHTTPScheme) || rScheme.isEmpty()) if (rScheme.startsWith(sHTTPScheme) || rScheme.isEmpty())
@@ -311,28 +298,28 @@ void SvxHyperlinkInternetTp::SetScheme(const OUString& rScheme)
void SvxHyperlinkInternetTp::RemoveImproperProtocol(const OUString& aProperScheme) void SvxHyperlinkInternetTp::RemoveImproperProtocol(const OUString& aProperScheme)
{ {
OUString aStrURL ( maCbbTarget.GetText() ); OUString aStrURL ( m_pCbbTarget->GetText() );
if ( aStrURL != aEmptyStr ) if ( aStrURL != aEmptyStr )
{ {
OUString aStrScheme(GetSchemeFromURL(aStrURL)); OUString aStrScheme(GetSchemeFromURL(aStrURL));
if ( !aStrScheme.isEmpty() && aStrScheme != aProperScheme ) if ( !aStrScheme.isEmpty() && aStrScheme != aProperScheme )
{ {
aStrURL = aStrURL.copy( aStrScheme.getLength() ); aStrURL = aStrURL.copy( aStrScheme.getLength() );
maCbbTarget.SetText ( aStrURL ); m_pCbbTarget->SetText ( aStrURL );
} }
} }
} }
OUString SvxHyperlinkInternetTp::GetSchemeFromButtons() const OUString SvxHyperlinkInternetTp::GetSchemeFromButtons() const
{ {
if( maRbtLinktypFTP.IsChecked() ) if( m_pRbtLinktypFTP->IsChecked() )
return OUString(INET_FTP_SCHEME); return OUString(INET_FTP_SCHEME);
return OUString(INET_HTTP_SCHEME); return OUString(INET_HTTP_SCHEME);
} }
INetProtocol SvxHyperlinkInternetTp::GetSmartProtocolFromButtons() const INetProtocol SvxHyperlinkInternetTp::GetSmartProtocolFromButtons() const
{ {
if( maRbtLinktypFTP.IsChecked() ) if( m_pRbtLinktypFTP->IsChecked() )
{ {
return INET_PROT_FTP; return INET_PROT_FTP;
} }
@@ -361,17 +348,17 @@ IMPL_LINK_NOARG(SvxHyperlinkInternetTp, Click_SmartProtocol_Impl)
IMPL_LINK_NOARG(SvxHyperlinkInternetTp, ClickAnonymousHdl_Impl) IMPL_LINK_NOARG(SvxHyperlinkInternetTp, ClickAnonymousHdl_Impl)
{ {
// disable login-editfields if checked // disable login-editfields if checked
if ( maCbAnonymous.IsChecked() ) if ( m_pCbAnonymous->IsChecked() )
{ {
if ( maEdLogin.GetText().toAsciiLowerCase().startsWith( sAnonymous ) ) if ( m_pEdLogin->GetText().toAsciiLowerCase().startsWith( sAnonymous ) )
{ {
maStrOldUser = aEmptyStr; maStrOldUser = aEmptyStr;
maStrOldPassword = aEmptyStr; maStrOldPassword = aEmptyStr;
} }
else else
{ {
maStrOldUser = maEdLogin.GetText(); maStrOldUser = m_pEdLogin->GetText();
maStrOldPassword = maEdPassword.GetText(); maStrOldPassword = m_pEdPassword->GetText();
} }
setAnonymousFTPUser(); setAnonymousFTPUser();
@@ -421,7 +408,7 @@ IMPL_LINK_NOARG(SvxHyperlinkInternetTp, ClickBrowseHdl_Impl)
void SvxHyperlinkInternetTp::RefreshMarkWindow() void SvxHyperlinkInternetTp::RefreshMarkWindow()
{ {
if ( maRbtLinktypInternet.IsChecked() && IsMarkWndVisible() ) if ( m_pRbtLinktypInternet->IsChecked() && IsMarkWndVisible() )
{ {
EnterWait(); EnterWait();
OUString aStrURL( CreateAbsoluteURL() ); OUString aStrURL( CreateAbsoluteURL() );
@@ -442,7 +429,7 @@ void SvxHyperlinkInternetTp::RefreshMarkWindow()
void SvxHyperlinkInternetTp::SetMarkStr ( const OUString& aStrMark ) void SvxHyperlinkInternetTp::SetMarkStr ( const OUString& aStrMark )
{ {
OUString aStrURL ( maCbbTarget.GetText() ); OUString aStrURL ( m_pCbbTarget->GetText() );
const sal_Unicode sUHash = '#'; const sal_Unicode sUHash = '#';
sal_Int32 nPos = aStrURL.lastIndexOf( sUHash ); sal_Int32 nPos = aStrURL.lastIndexOf( sUHash );
@@ -452,7 +439,7 @@ void SvxHyperlinkInternetTp::SetMarkStr ( const OUString& aStrMark )
aStrURL += OUString(sUHash) + aStrMark; aStrURL += OUString(sUHash) + aStrMark;
maCbbTarget.SetText ( aStrURL ); m_pCbbTarget->SetText ( aStrURL );
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -28,7 +28,6 @@
#include <unotools/moduleoptions.hxx> #include <unotools/moduleoptions.hxx>
#include "hlmailtp.hxx" #include "hlmailtp.hxx"
#include "hyperdlg.hrc"
using namespace ::rtl; using namespace ::rtl;
using namespace ::com::sun::star; using namespace ::com::sun::star;
@@ -39,47 +38,40 @@ using namespace ::com::sun::star;
|* |*
|************************************************************************/ |************************************************************************/
SvxHyperlinkMailTp::SvxHyperlinkMailTp ( Window *pParent, const SfxItemSet& rItemSet) SvxHyperlinkMailTp::SvxHyperlinkMailTp ( Window *pParent, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet)
: SvxHyperlinkTabPageBase ( pParent, CUI_RES( RID_SVXPAGE_HYPERLINK_MAIL ), : SvxHyperlinkTabPageBase ( pParent, pDlg, "HyperlinkMailPage", "cui/ui/hyperlinkmailpage.ui",
rItemSet ), rItemSet )
maGrpMailNews ( this, CUI_RES (GRP_MAILNEWS) ),
maRbtMail ( this, CUI_RES (RB_LINKTYP_MAIL) ),
maRbtNews ( this, CUI_RES (RB_LINKTYP_NEWS) ),
maFtReceiver ( this, CUI_RES (FT_RECEIVER) ),
maCbbReceiver ( this, INET_PROT_MAILTO ),
maBtAdrBook ( this, CUI_RES (BTN_ADRESSBOOK) ),
maFtSubject ( this, CUI_RES (FT_SUBJECT) ),
maEdSubject ( this, CUI_RES (ED_SUBJECT) )
{ {
get(m_pRbtMail, "linktyp_mail");
get(m_pRbtNews, "linktyp_news");
get(m_pCbbReceiver, "receiver");
m_pCbbReceiver->SetSmartProtocol(INET_PROT_MAILTO);
get(m_pBtAdrBook, "adressbook");
m_pBtAdrBook->SetModeImage(Image(CUI_RES(RID_SVXBMP_ADRESSBOOK)));
get(m_pFtSubject, "subject_label");
get(m_pEdSubject, "subject");
// Disable display of bitmap names. // Disable display of bitmap names.
maBtAdrBook.EnableTextDisplay (false); m_pBtAdrBook->EnableTextDisplay (false);
InitStdControls(); InitStdControls();
FreeResource();
// Init URL-Box (pos&size, Open-Handler) m_pCbbReceiver->Show();
maCbbReceiver.SetPosSizePixel ( LogicToPixel( Point( COL_2, 25 ), MAP_APPFONT ), m_pCbbReceiver->SetHelpId( HID_HYPERDLG_MAIL_PATH );
LogicToPixel( Size ( 176 - COL_DIFF, 60), MAP_APPFONT ) );
maCbbReceiver.Show();
maCbbReceiver.SetHelpId( HID_HYPERDLG_MAIL_PATH );
SetExchangeSupport (); SetExchangeSupport ();
// set defaults // set defaults
maRbtMail.Check (); m_pRbtMail->Check ();
// overload handlers // overload handlers
maRbtMail.SetClickHdl ( LINK ( this, SvxHyperlinkMailTp, Click_SmartProtocol_Impl ) ); m_pRbtMail->SetClickHdl ( LINK ( this, SvxHyperlinkMailTp, Click_SmartProtocol_Impl ) );
maRbtNews.SetClickHdl ( LINK ( this, SvxHyperlinkMailTp, Click_SmartProtocol_Impl ) ); m_pRbtNews->SetClickHdl ( LINK ( this, SvxHyperlinkMailTp, Click_SmartProtocol_Impl ) );
maBtAdrBook.SetClickHdl ( LINK ( this, SvxHyperlinkMailTp, ClickAdrBookHdl_Impl ) ); m_pBtAdrBook->SetClickHdl ( LINK ( this, SvxHyperlinkMailTp, ClickAdrBookHdl_Impl ) );
maCbbReceiver.SetModifyHdl ( LINK ( this, SvxHyperlinkMailTp, ModifiedReceiverHdl_Impl) ); m_pCbbReceiver->SetModifyHdl ( LINK ( this, SvxHyperlinkMailTp, ModifiedReceiverHdl_Impl) );
if ( !SvtModuleOptions().IsModuleInstalled( SvtModuleOptions::E_SDATABASE ) ) if ( !SvtModuleOptions().IsModuleInstalled( SvtModuleOptions::E_SDATABASE ) )
maBtAdrBook.Hide(); m_pBtAdrBook->Hide();
maBtAdrBook.SetAccessibleRelationMemberOf( &maGrpMailNews );
maBtAdrBook.SetAccessibleRelationLabeledBy( &maFtReceiver );
} }
SvxHyperlinkMailTp::~SvxHyperlinkMailTp () SvxHyperlinkMailTp::~SvxHyperlinkMailTp ()
@@ -117,14 +109,14 @@ void SvxHyperlinkMailTp::FillDlgFields(const OUString& rStrURL)
if ( nPos != -1 ) if ( nPos != -1 )
aStrURLc = aStrURLc.copy( 0, nPos ); aStrURLc = aStrURLc.copy( 0, nPos );
maEdSubject.SetText ( aStrSubject ); m_pEdSubject->SetText ( aStrSubject );
} }
else else
{ {
maEdSubject.SetText (aEmptyStr); m_pEdSubject->SetText (aEmptyStr);
} }
maCbbReceiver.SetText ( aStrURLc ); m_pCbbReceiver->SetText ( aStrURLc );
SetScheme( aStrScheme ); SetScheme( aStrScheme );
} }
@@ -145,7 +137,7 @@ void SvxHyperlinkMailTp::GetCurentItemData ( OUString& rStrURL, OUString& aStrNa
OUString SvxHyperlinkMailTp::CreateAbsoluteURL() const OUString SvxHyperlinkMailTp::CreateAbsoluteURL() const
{ {
OUString aStrURL = maCbbReceiver.GetText(); OUString aStrURL = m_pCbbReceiver->GetText();
INetURLObject aURL(aStrURL); INetURLObject aURL(aStrURL);
if( aURL.GetProtocol() == INET_PROT_NOT_VALID ) if( aURL.GetProtocol() == INET_PROT_NOT_VALID )
@@ -157,10 +149,10 @@ OUString SvxHyperlinkMailTp::CreateAbsoluteURL() const
// subject for EMail-url // subject for EMail-url
if( aURL.GetProtocol() == INET_PROT_MAILTO ) if( aURL.GetProtocol() == INET_PROT_MAILTO )
{ {
if ( maEdSubject.GetText() != OUString(aEmptyStr) ) if ( m_pEdSubject->GetText() != OUString(aEmptyStr) )
{ {
OUString aQuery("subject="); OUString aQuery("subject=");
aQuery += maEdSubject.GetText(); aQuery += m_pEdSubject->GetText();
aURL.SetParam(aQuery); aURL.SetParam(aQuery);
} }
} }
@@ -177,9 +169,9 @@ OUString SvxHyperlinkMailTp::CreateAbsoluteURL() const
|* |*
|************************************************************************/ |************************************************************************/
IconChoicePage* SvxHyperlinkMailTp::Create( Window* pWindow, const SfxItemSet& rItemSet ) IconChoicePage* SvxHyperlinkMailTp::Create( Window* pWindow, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet )
{ {
return( new SvxHyperlinkMailTp( pWindow, rItemSet ) ); return( new SvxHyperlinkMailTp( pWindow, pDlg, rItemSet ) );
} }
/************************************************************************* /*************************************************************************
@@ -190,7 +182,7 @@ IconChoicePage* SvxHyperlinkMailTp::Create( Window* pWindow, const SfxItemSet& r
void SvxHyperlinkMailTp::SetInitFocus() void SvxHyperlinkMailTp::SetInitFocus()
{ {
maCbbReceiver.GrabFocus(); m_pCbbReceiver->GrabFocus();
} }
/************************************************************************* /*************************************************************************
@@ -204,16 +196,16 @@ void SvxHyperlinkMailTp::SetScheme(const OUString& rScheme)
bool bMail = !rScheme.startsWith(sNewsScheme); bool bMail = !rScheme.startsWith(sNewsScheme);
//update protocol button selection: //update protocol button selection:
maRbtMail.Check(bMail); m_pRbtMail->Check(bMail);
maRbtNews.Check(!bMail); m_pRbtNews->Check(!bMail);
//update target: //update target:
RemoveImproperProtocol(rScheme); RemoveImproperProtocol(rScheme);
maCbbReceiver.SetSmartProtocol( GetSmartProtocolFromButtons() ); m_pCbbReceiver->SetSmartProtocol( GetSmartProtocolFromButtons() );
//show/hide special fields for MAIL: //show/hide special fields for MAIL:
maFtSubject.Enable(bMail); m_pBtAdrBook->Enable(bMail);
maEdSubject.Enable(bMail); m_pEdSubject->Enable(bMail);
} }
/************************************************************************* /*************************************************************************
@@ -224,28 +216,28 @@ void SvxHyperlinkMailTp::SetScheme(const OUString& rScheme)
void SvxHyperlinkMailTp::RemoveImproperProtocol(const OUString& aProperScheme) void SvxHyperlinkMailTp::RemoveImproperProtocol(const OUString& aProperScheme)
{ {
OUString aStrURL ( maCbbReceiver.GetText() ); OUString aStrURL ( m_pCbbReceiver->GetText() );
if ( aStrURL != aEmptyStr ) if ( aStrURL != aEmptyStr )
{ {
OUString aStrScheme = GetSchemeFromURL( aStrURL ); OUString aStrScheme = GetSchemeFromURL( aStrURL );
if ( aStrScheme != aEmptyStr && aStrScheme != aProperScheme ) if ( aStrScheme != aEmptyStr && aStrScheme != aProperScheme )
{ {
aStrURL = aStrURL.copy( aStrScheme.getLength() ); aStrURL = aStrURL.copy( aStrScheme.getLength() );
maCbbReceiver.SetText ( aStrURL ); m_pCbbReceiver->SetText ( aStrURL );
} }
} }
} }
OUString SvxHyperlinkMailTp::GetSchemeFromButtons() const OUString SvxHyperlinkMailTp::GetSchemeFromButtons() const
{ {
if( maRbtNews.IsChecked() ) if( m_pRbtNews->IsChecked() )
return OUString(INET_NEWS_SCHEME); return OUString(INET_NEWS_SCHEME);
return OUString(INET_MAILTO_SCHEME); return OUString(INET_MAILTO_SCHEME);
} }
INetProtocol SvxHyperlinkMailTp::GetSmartProtocolFromButtons() const INetProtocol SvxHyperlinkMailTp::GetSmartProtocolFromButtons() const
{ {
if( maRbtNews.IsChecked() ) if( m_pRbtNews->IsChecked() )
{ {
return INET_PROT_NEWS; return INET_PROT_NEWS;
} }
@@ -273,7 +265,7 @@ IMPL_LINK_NOARG(SvxHyperlinkMailTp, Click_SmartProtocol_Impl)
IMPL_LINK_NOARG(SvxHyperlinkMailTp, ModifiedReceiverHdl_Impl) IMPL_LINK_NOARG(SvxHyperlinkMailTp, ModifiedReceiverHdl_Impl)
{ {
OUString aScheme = GetSchemeFromURL( maCbbReceiver.GetText() ); OUString aScheme = GetSchemeFromURL( m_pCbbReceiver->GetText() );
if(!aScheme.isEmpty()) if(!aScheme.isEmpty())
SetScheme( aScheme ); SetScheme( aScheme );

View File

@@ -24,7 +24,6 @@
#include <svl/macitem.hxx> #include <svl/macitem.hxx>
#include <ucbhelper/content.hxx> #include <ucbhelper/content.hxx>
#include <unotools/localfilehelper.hxx> #include <unotools/localfilehelper.hxx>
#include "hyperdlg.hrc"
#include "cuihyperdlg.hxx" #include "cuihyperdlg.hxx"
#include "hltpbase.hxx" #include "hltpbase.hxx"
#include "macroass.hxx" #include "macroass.hxx"
@@ -34,40 +33,6 @@
using namespace ::ucbhelper; using namespace ::ucbhelper;
//# ComboBox-Control, which is filled with all current framenames #
/*************************************************************************
|*
|* Contructor / Destructor
|*
|************************************************************************/
SvxFramesComboBox::SvxFramesComboBox ( Window* pParent, const ResId& rResId,
SfxDispatcher* pDispatch )
: ComboBox (pParent, rResId)
{
SfxViewFrame* pViewFrame = pDispatch ? pDispatch->GetFrame() : 0;
SfxFrame* pFrame = pViewFrame ? &pViewFrame->GetTopFrame() : 0;
if ( pFrame )
{
boost::scoped_ptr<TargetList> pList(new TargetList);
pFrame->GetTargetList(*pList);
if( !pList->empty() )
{
size_t nCount = pList->size();
size_t i;
for ( i = 0; i < nCount; i++ )
{
InsertEntry( pList->at( i ) );
}
}
}
}
SvxFramesComboBox::~SvxFramesComboBox ()
{
}
//# ComboBox-Control for URL's with History and Autocompletion # //# ComboBox-Control for URL's with History and Autocompletion #
SvxHyperURLBox::SvxHyperURLBox( Window* pParent, INetProtocol eSmart ) SvxHyperURLBox::SvxHyperURLBox( Window* pParent, INetProtocol eSmart )
@@ -76,6 +41,11 @@ SvxHyperURLBox::SvxHyperURLBox( Window* pParent, INetProtocol eSmart )
{ {
} }
extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxHyperURLBox(Window *pParent, VclBuilder::stringmap &)
{
return new SvxHyperURLBox(pParent, INET_PROT_HTTP);
}
sal_Int8 SvxHyperURLBox::AcceptDrop( const AcceptDropEvent& /* rEvt */ ) sal_Int8 SvxHyperURLBox::AcceptDrop( const AcceptDropEvent& /* rEvt */ )
{ {
return( IsDropFormatSupported( FORMAT_STRING ) ? DND_ACTION_COPY : DND_ACTION_NONE ); return( IsDropFormatSupported( FORMAT_STRING ) ? DND_ACTION_COPY : DND_ACTION_NONE );
@@ -116,21 +86,18 @@ bool SvxHyperURLBox::PreNotify( NotifyEvent& rNEvt )
//# Hyperlink-Dialog: Tabpages-Baseclass # //# Hyperlink-Dialog: Tabpages-Baseclass #
SvxHyperlinkTabPageBase::SvxHyperlinkTabPageBase ( Window *pParent, SvxHyperlinkTabPageBase::SvxHyperlinkTabPageBase ( Window *pParent,
const ResId &rResId, IconChoiceDialog* pDlg,
const OString& rID,
const OUString& rUIXMLDescription,
const SfxItemSet& rItemSet ) const SfxItemSet& rItemSet )
: IconChoicePage ( pParent, rResId, rItemSet ), : IconChoicePage ( pParent, rID, rUIXMLDescription, rItemSet ),
mpGrpMore ( NULL ),
mpFtFrame ( NULL ),
mpCbbFrame ( NULL ), mpCbbFrame ( NULL ),
mpFtForm ( NULL ),
mpLbForm ( NULL ), mpLbForm ( NULL ),
mpFtIndication ( NULL ),
mpEdIndication ( NULL ), mpEdIndication ( NULL ),
mpFtText ( NULL ),
mpEdText ( NULL ), mpEdText ( NULL ),
mpBtScript ( NULL ), mpBtScript ( NULL ),
mbIsCloseDisabled ( false ), mbIsCloseDisabled ( false ),
mpDialog ( pParent ), mpDialog ( pDlg ),
mbStdControlsInit ( false ), mbStdControlsInit ( false ),
aEmptyStr() aEmptyStr()
{ {
@@ -142,20 +109,6 @@ SvxHyperlinkTabPageBase::~SvxHyperlinkTabPageBase ()
{ {
maTimer.Stop(); maTimer.Stop();
if ( mbStdControlsInit )
{
delete mpGrpMore;
delete mpFtFrame;
delete mpCbbFrame;
delete mpFtForm;
delete mpLbForm;
delete mpFtIndication;
delete mpEdIndication;
delete mpFtText;
delete mpEdText ;
delete mpBtScript;
}
delete mpMarkWnd; delete mpMarkWnd;
} }
@@ -178,22 +131,34 @@ void SvxHyperlinkTabPageBase::InitStdControls ()
{ {
if ( !mbStdControlsInit ) if ( !mbStdControlsInit )
{ {
mpGrpMore = new FixedLine ( this, ResId (GRP_MORE, *m_pResMgr) ); get(mpCbbFrame, "frame");
mpFtFrame = new FixedText ( this, ResId (FT_FRAME, *m_pResMgr) );
mpCbbFrame = new SvxFramesComboBox ( this, ResId (CB_FRAME, *m_pResMgr), GetDispatcher() ); SfxDispatcher* pDispatch = GetDispatcher();
mpFtForm = new FixedText ( this, ResId (FT_FORM, *m_pResMgr) ); SfxViewFrame* pViewFrame = pDispatch ? pDispatch->GetFrame() : 0;
mpLbForm = new ListBox ( this, ResId (LB_FORM, *m_pResMgr) ); SfxFrame* pFrame = pViewFrame ? &pViewFrame->GetTopFrame() : 0;
mpFtIndication= new FixedText ( this, ResId (FT_INDICATION, *m_pResMgr) ); if ( pFrame )
mpEdIndication= new Edit ( this, ResId (ED_INDICATION, *m_pResMgr) ); {
mpFtText = new FixedText ( this, ResId (FT_TEXT, *m_pResMgr) ); boost::scoped_ptr<TargetList> pList(new TargetList);
mpEdText = new Edit ( this, ResId (ED_TEXT, *m_pResMgr) ); pFrame->GetTargetList(*pList);
mpBtScript = new ImageButton ( this, ResId (BTN_SCRIPT, *m_pResMgr) ); if( !pList->empty() )
{
size_t nCount = pList->size();
size_t i;
for ( i = 0; i < nCount; i++ )
{
mpCbbFrame->InsertEntry( pList->at( i ) );
}
}
}
get(mpLbForm, "form");
get(mpEdIndication, "indication");
get(mpEdText, "name");
get(mpBtScript, "script");
mpBtScript->SetModeImage(Image(CUI_RES (RID_SVXBMP_SCRIPT)));
mpBtScript->SetClickHdl ( LINK ( this, SvxHyperlinkTabPageBase, ClickScriptHdl_Impl ) ); mpBtScript->SetClickHdl ( LINK ( this, SvxHyperlinkTabPageBase, ClickScriptHdl_Impl ) );
mpBtScript->EnableTextDisplay (false); mpBtScript->EnableTextDisplay (false);
mpBtScript->SetAccessibleRelationMemberOf( mpGrpMore );
mpBtScript->SetAccessibleRelationLabeledBy( mpFtForm );
} }
mbStdControlsInit = true; mbStdControlsInit = true;

View File

@@ -1,82 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
/* Tabpage : Hyperlink - Internet */
#define GRP_LINKTYPE 1
#define RB_LINKTYP_INTERNET 2
#define RB_LINKTYP_FTP 3
#define FT_TARGET_HTML 5
#define FT_LOGIN 7
#define ED_LOGIN 8
#define FT_PASSWD 9
#define ED_PASSWD 10
#define CBX_ANONYMOUS 11
#define BTN_BROWSE 12
/* Tabpage : Hyperlink - Mail & News */
#define GRP_MAILNEWS 1
#define RB_LINKTYP_MAIL 2
#define RB_LINKTYP_NEWS 3
#define FT_RECEIVER 4
#define FT_SUBJECT 6
#define ED_SUBJECT 7
#define BTN_ADRESSBOOK 8
/* Tabpage : Hyperlink - Document */
#define GRP_DOCUMENT 1
#define FT_PATH_DOC 2
#define BTN_FILEOPEN 4
#define GRP_TARGET 5
#define FT_TARGET_DOC 6
#define ED_TARGET_DOC 7
#define FT_URL 8
#define FT_FULL_URL 9
/* Tabpage : Hyperlink - New document */
#define GRP_NEWDOCUMENT 1
#define RB_EDITNOW 2
#define RB_EDITLATER 3
#define FT_PATH_NEWDOC 4
#define ED_PATH_NEWDOC 5
#define FT_DOCUMENT_TYPES 6
#define LB_DOCUMENT_TYPES 7
#define BTN_CREATE 8
/* Tabpage-section : Hyperlink - more justifications */
#define GRP_MORE 30
#define FT_FRAME 31
#define CB_FRAME 32
#define FT_FORM 33
#define LB_FORM 34
#define FT_INDICATION 35
#define ED_INDICATION 36
#define FT_TEXT 37
#define ED_TEXT 38
#define BTN_SCRIPT 39
#define COL_OLD 54
#define COL_2 63
#define COL_DIFF (COL_2 - COL_OLD)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -20,706 +20,10 @@
#include <svtools/controldims.hrc> #include <svtools/controldims.hrc>
#include <cuires.hrc> #include <cuires.hrc>
#include "helpid.hrc" #include "helpid.hrc"
#include "hyperdlg.hrc"
#define MASKCOLOR MaskColor = Color { Red=0xFFFF; Green=0x0000; Blue=0xFFFF; }; #define MASKCOLOR MaskColor = Color { Red=0xFFFF; Green=0x0000; Blue=0xFFFF; };
#define HYPERDLG_IMGBUTTON_HEIGHT RSC_CD_PUSHBUTTON_HEIGHT+2 #define HYPERDLG_IMGBUTTON_HEIGHT RSC_CD_PUSHBUTTON_HEIGHT+2
/*************************************************************************
|
| Tabpage : Internet
|
*************************************************************************/
TabPage RID_SVXPAGE_HYPERLINK_INTERNET
{
Hide = TRUE ;
HelpID = HID_HYPERLINK_INTERNET;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 260 , 162 ) ;
Text [ en-US ] = "Hyperlink" ;
FixedLine GRP_LINKTYPE
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Hyperlink type" ;
};
RadioButton RB_LINKTYP_INTERNET
{
HelpID = "cui:RadioButton:RID_SVXPAGE_HYPERLINK_INTERNET:RB_LINKTYP_INTERNET";
Pos = MAP_APPFONT( COL_2, 13 );
Size = MAP_APPFONT( 57, 10 );
Text [ en-US ] = "~Web";
};
RadioButton RB_LINKTYP_FTP
{
HelpID = "cui:RadioButton:RID_SVXPAGE_HYPERLINK_INTERNET:RB_LINKTYP_FTP";
Pos = MAP_APPFONT( 114 + COL_DIFF, 13 );
Size = MAP_APPFONT( 56 - COL_DIFF, 10 );
Text [ en-US ] = "~FTP";
};
FixedText FT_TARGET_HTML
{
Pos = MAP_APPFONT ( 12 , 26 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF, 8 ) ;
Text [ en-US ] = "Tar~get" ;
};
FixedText FT_LOGIN
{
Pos = MAP_APPFONT ( 12 , 43 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "~Login name" ;
};
Edit ED_LOGIN
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_INTERNET:ED_LOGIN";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 42 ) ;
Size = MAP_APPFONT ( 80 - COL_DIFF , 12 ) ;
};
FixedText FT_PASSWD
{
Pos = MAP_APPFONT ( 12 , 60 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "~Password" ;
};
Edit ED_PASSWD
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_INTERNET:ED_PASSWD";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 59 ) ;
Size = MAP_APPFONT ( 80 - COL_DIFF , 12 ) ;
PassWord = TRUE ;
};
CheckBox CBX_ANONYMOUS
{
HelpID = "cui:CheckBox:RID_SVXPAGE_HYPERLINK_INTERNET:CBX_ANONYMOUS";
Pos = MAP_APPFONT ( COL_2 , 75 ) ;
Size = MAP_APPFONT ( 89 - COL_DIFF , 10 ) ;
TabStop = TRUE ;
Text [ en-US ] = "Anonymous ~user" ;
};
ImageButton BTN_BROWSE
{
HelpID = "cui:ImageButton:RID_SVXPAGE_HYPERLINK_INTERNET:BTN_BROWSE";
Pos = MAP_APPFONT ( 235, 24 ) ;
Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_HEIGHT, HYPERDLG_IMGBUTTON_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "WWW Browser";
QuickHelpText [ en-US ] = "Open web browser, copy an URL, and paste it to Target field" ;
ButtonImage = Image
{
ImageBitmap = Bitmap { File = "browse.bmp" ; };
MASKCOLOR
};
};
FixedLine GRP_MORE
{
Pos = MAP_APPFONT ( 6 , 92 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Further settings" ;
};
FixedText FT_FRAME
{
Pos = MAP_APPFONT ( 12 , 105 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "F~rame" ;
};
ComboBox CB_FRAME
{
HelpID = "cui:ComboBox:RID_SVXPAGE_HYPERLINK_INTERNET:CB_FRAME";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 104 ) ;
Size = MAP_APPFONT ( 66 - COL_DIFF , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
Sort = TRUE ;
};
FixedText FT_FORM
{
Pos = MAP_APPFONT ( 126 , 105 ) ;
Size = MAP_APPFONT ( 33 , 8 ) ;
Text [ en-US ] = "F~orm" ;
};
ListBox LB_FORM
{
HelpID = "cui:ListBox:RID_SVXPAGE_HYPERLINK_INTERNET:LB_FORM";
Border = TRUE ;
Pos = MAP_APPFONT ( 160 , 104 ) ;
Size = MAP_APPFONT ( 70 , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
AutoHScroll = TRUE ;
DDExtraWidth = TRUE ;
StringList [ en-US ] =
{
< "Text" ; Default ; > ;
< "Button" ; Default ; > ;
};
};
FixedText FT_INDICATION
{
Pos = MAP_APPFONT ( 12 , 123 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "Te~xt" ;
};
Edit ED_INDICATION
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_INTERNET:ED_INDICATION";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 122 ) ;
Size = MAP_APPFONT ( 194 - COL_DIFF , 12 ) ;
};
FixedText FT_TEXT
{
Pos = MAP_APPFONT ( 12 , 140 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "N~ame" ;
};
Edit ED_TEXT
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_INTERNET:ED_TEXT";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 139 ) ;
Size = MAP_APPFONT ( 194 - COL_DIFF , 12 ) ;
};
ImageButton BTN_SCRIPT
{
HelpID = "cui:ImageButton:RID_SVXPAGE_HYPERLINK_INTERNET:BTN_SCRIPT";
Pos = MAP_APPFONT ( 235, 103-1 ) ;
Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_HEIGHT, HYPERDLG_IMGBUTTON_HEIGHT );
TabStop = TRUE ;
QuickHelpText [ en-US ] = "Events" ;
ButtonImage = Image
{
ImageBitmap = Bitmap { File = "script.bmp" ; };
MASKCOLOR
};
Text [ en-US ] = "Events";
};
};
/*************************************************************************
|
| Tabpage : Mail & News
|
*************************************************************************/
TabPage RID_SVXPAGE_HYPERLINK_MAIL
{
Hide = TRUE ;
HelpID = HID_HYPERLINK_MAIL;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 260 , 162 ) ;
Text [ en-US ] = "Hyperlink" ;
FixedLine GRP_MAILNEWS
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Mail & news" ;
};
RadioButton RB_LINKTYP_MAIL
{
HelpID = "cui:RadioButton:RID_SVXPAGE_HYPERLINK_MAIL:RB_LINKTYP_MAIL";
Pos = MAP_APPFONT( COL_2, 13 );
Size = MAP_APPFONT( 56 - COL_DIFF, 10 );
Text [ en-US ] = "~E-mail";
};
RadioButton RB_LINKTYP_NEWS
{
HelpID = "cui:RadioButton:RID_SVXPAGE_HYPERLINK_MAIL:RB_LINKTYP_NEWS";
Pos = MAP_APPFONT( 113, 13 );
Size = MAP_APPFONT( 56, 10 );
Text [ en-US ] = "~News";
};
FixedText FT_RECEIVER
{
Pos = MAP_APPFONT ( 12 , 26 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "Re~cipient" ;
};
FixedText FT_SUBJECT
{
Pos = MAP_APPFONT ( 12 , 43 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "~Subject" ;
};
Edit ED_SUBJECT
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_MAIL:ED_SUBJECT";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 42 ) ;
Size = MAP_APPFONT ( 176 - COL_DIFF , 12 ) ;
};
ImageButton BTN_ADRESSBOOK
{
HelpID = "cui:ImageButton:RID_SVXPAGE_HYPERLINK_MAIL:BTN_ADRESSBOOK";
Pos = MAP_APPFONT ( 235, 24 ) ;
Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_HEIGHT, HYPERDLG_IMGBUTTON_HEIGHT );
TabStop = TRUE ;
ButtonImage = Image
{
ImageBitmap = Bitmap { File = "adrbook.bmp" ; };
MASKCOLOR
};
Text [ en-US ] = "Data Sources...";
QuickHelpText [ en-US ] = "Data Sources..." ;
};
FixedLine GRP_MORE
{
Pos = MAP_APPFONT ( 6 , 92 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Further settings" ;
};
FixedText FT_FRAME
{
Pos = MAP_APPFONT ( 12 , 105 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "F~rame" ;
};
ComboBox CB_FRAME
{
HelpID = "cui:ComboBox:RID_SVXPAGE_HYPERLINK_MAIL:CB_FRAME";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 104 ) ;
Size = MAP_APPFONT ( 66 - COL_DIFF , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
Sort = TRUE ;
};
FixedText FT_FORM
{
Pos = MAP_APPFONT ( 126 , 105 ) ;
Size = MAP_APPFONT ( 33 , 10 ) ;
Text [ en-US ] = "F~orm" ;
};
ListBox LB_FORM
{
HelpID = "cui:ListBox:RID_SVXPAGE_HYPERLINK_MAIL:LB_FORM";
Border = TRUE ;
Pos = MAP_APPFONT ( 160 , 104 ) ;
Size = MAP_APPFONT ( 70 , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
AutoHScroll = TRUE ;
DDExtraWidth = TRUE ;
StringList [ en-US ] =
{
< "Text" ; Default ; > ;
< "Button" ; Default ; > ;
};
};
FixedText FT_INDICATION
{
Pos = MAP_APPFONT ( 12 , 123 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "Te~xt" ;
};
Edit ED_INDICATION
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_MAIL:ED_INDICATION";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 122 ) ;
Size = MAP_APPFONT ( 194 - COL_DIFF , 12 ) ;
};
FixedText FT_TEXT
{
Pos = MAP_APPFONT ( 12 , 140 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "N~ame" ;
};
Edit ED_TEXT
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_MAIL:ED_TEXT";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 139 ) ;
Size = MAP_APPFONT ( 194 - COL_DIFF , 12 ) ;
};
ImageButton BTN_SCRIPT
{
HelpID = "cui:ImageButton:RID_SVXPAGE_HYPERLINK_MAIL:BTN_SCRIPT";
Pos = MAP_APPFONT ( 235, 103-1 ) ;
Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_HEIGHT, HYPERDLG_IMGBUTTON_HEIGHT );
TabStop = TRUE ;
QuickHelpText [ en-US ] = "Events" ;
ButtonImage = Image
{
ImageBitmap = Bitmap { File = "script.bmp" ; };
MASKCOLOR
};
Text [ en-US ] = "Events";
};
};
/*************************************************************************
|
| Tabpage : Documents
|
*************************************************************************/
TabPage RID_SVXPAGE_HYPERLINK_DOCUMENT
{
Hide = TRUE ;
HelpID = HID_HYPERLINK_DOCUMENT;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 260 , 162 ) ;
Text [ en-US ] = "Hyperlink" ;
FixedLine GRP_DOCUMENT
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Document" ;
};
FixedText FT_PATH_DOC
{
Pos = MAP_APPFONT ( 12 , 16 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "~Path" ;
};
ImageButton BTN_FILEOPEN
{
HelpID = "cui:ImageButton:RID_SVXPAGE_HYPERLINK_DOCUMENT:BTN_FILEOPEN";
Pos = MAP_APPFONT ( 235, 14 ) ;
Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_HEIGHT, HYPERDLG_IMGBUTTON_HEIGHT );
TabStop = TRUE ;
QuickHelpText [ en-US ] = "Open File" ;
ButtonImage = Image
{
ImageBitmap = Bitmap { File = "fileopen.bmp" ; };
MASKCOLOR
};
Text [ en-US ] = "Open File";
};
FixedLine GRP_TARGET
{
Pos = MAP_APPFONT ( 6 , 38 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Target in document" ;
};
FixedText FT_TARGET_DOC
{
Pos = MAP_APPFONT ( 12 , 53 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "Targ~et" ;
};
Edit ED_TARGET_DOC
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_DOCUMENT:ED_TARGET_DOC";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 52 ) ;
Size = MAP_APPFONT ( 176 - COL_DIFF , 12 ) ;
};
FixedText FT_URL
{
Pos = MAP_APPFONT ( 12 , 70 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "URL" ;
};
FixedText FT_FULL_URL
{
Pos = MAP_APPFONT ( COL_2 , 70 ) ;
Size = MAP_APPFONT ( 176 - COL_DIFF , 12 ) ;
Text [ en-US ] = "Test text" ;
};
ImageButton BTN_BROWSE
{
HelpID = "cui:ImageButton:RID_SVXPAGE_HYPERLINK_DOCUMENT:BTN_BROWSE";
Pos = MAP_APPFONT ( 235, 51 ) ;
Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_HEIGHT, HYPERDLG_IMGBUTTON_HEIGHT );
TabStop = TRUE ;
QuickHelpText [ en-US ] = "Target in Document" ;
ButtonImage = Image
{
ImageBitmap = Bitmap { File = "target.bmp" ; };
MASKCOLOR
};
Text [ en-US ] = "Target in Document";
};
FixedLine GRP_MORE
{
Pos = MAP_APPFONT ( 6 , 92 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Further settings" ;
};
FixedText FT_FRAME
{
Pos = MAP_APPFONT ( 12 , 105 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "F~rame" ;
};
ComboBox CB_FRAME
{
HelpID = "cui:ComboBox:RID_SVXPAGE_HYPERLINK_DOCUMENT:CB_FRAME";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 104 ) ;
Size = MAP_APPFONT ( 66 - COL_DIFF , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
Sort = TRUE ;
};
FixedText FT_FORM
{
Pos = MAP_APPFONT ( 126 , 105 ) ;
Size = MAP_APPFONT ( 33 , 10 ) ;
Text [ en-US ] = "F~orm" ;
};
ListBox LB_FORM
{
HelpID = "cui:ListBox:RID_SVXPAGE_HYPERLINK_DOCUMENT:LB_FORM";
Border = TRUE ;
Pos = MAP_APPFONT ( 160 , 104 ) ;
Size = MAP_APPFONT ( 70 , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
AutoHScroll = TRUE ;
DDExtraWidth = TRUE ;
StringList [ en-US ] =
{
< "Text" ; Default ; > ;
< "Button" ; Default ; > ;
};
};
FixedText FT_INDICATION
{
Pos = MAP_APPFONT ( 12 , 123 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "Te~xt" ;
};
Edit ED_INDICATION
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_DOCUMENT:ED_INDICATION";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 122 ) ;
Size = MAP_APPFONT ( 194 - COL_DIFF , 12 ) ;
};
FixedText FT_TEXT
{
Pos = MAP_APPFONT ( 12 , 140 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "N~ame" ;
};
Edit ED_TEXT
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_DOCUMENT:ED_TEXT";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 139 ) ;
Size = MAP_APPFONT ( 194 - COL_DIFF , 12 ) ;
};
ImageButton BTN_SCRIPT
{
HelpID = "cui:ImageButton:RID_SVXPAGE_HYPERLINK_DOCUMENT:BTN_SCRIPT";
Pos = MAP_APPFONT ( 235, 103-1 ) ;
Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_HEIGHT, HYPERDLG_IMGBUTTON_HEIGHT );
TabStop = TRUE ;
QuickHelpText [ en-US ] = "Events" ;
ButtonImage = Image
{
ImageBitmap = Bitmap { File = "script.bmp" ; };
MASKCOLOR
};
Text [ en-US ] = "Events";
};
};
/*************************************************************************
|
| Tabpage : New Documents
|
*************************************************************************/
TabPage RID_SVXPAGE_HYPERLINK_NEWDOCUMENT
{
Hide = TRUE ;
HelpID = HID_HYPERLINK_NEWDOCUMENT;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 260 , 162 ) ;
Text [ en-US ] = "Hyperlink" ;
FixedLine GRP_NEWDOCUMENT
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "New document" ;
};
RadioButton RB_EDITNOW
{
HelpID = "cui:RadioButton:RID_SVXPAGE_HYPERLINK_NEWDOCUMENT:RB_EDITNOW";
Pos = MAP_APPFONT( COL_2, 13 );
Size = MAP_APPFONT( 85 - COL_DIFF, 10 );
Text [ en-US ] = "Edit ~now";
};
RadioButton RB_EDITLATER
{
HelpID = "cui:RadioButton:RID_SVXPAGE_HYPERLINK_NEWDOCUMENT:RB_EDITLATER";
Pos = MAP_APPFONT( 142, 13 );
Size = MAP_APPFONT( 84, 10 );
Text [ en-US ] = "Edit ~later";
};
FixedText FT_PATH_NEWDOC
{
Pos = MAP_APPFONT ( 12 , 26 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "~File" ;
};
Edit ED_PATH_NEWDOC
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_NEWDOCUMENT:ED_PATH_NEWDOC";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 25 ) ;
Size = MAP_APPFONT ( 176 - COL_DIFF , 12 ) ;
};
FixedText FT_DOCUMENT_TYPES
{
Pos = MAP_APPFONT ( 12 , 43 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "File ~type" ;
};
ListBox LB_DOCUMENT_TYPES
{
HelpID = "cui:ListBox:RID_SVXPAGE_HYPERLINK_NEWDOCUMENT:LB_DOCUMENT_TYPES";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 42 ) ;
Size = MAP_APPFONT ( 176 - COL_DIFF , 40 ) ;
TabStop = TRUE ;
DropDown = FALSE ;
};
ImageButton BTN_CREATE
{
HelpID = "cui:ImageButton:RID_SVXPAGE_HYPERLINK_NEWDOCUMENT:BTN_CREATE";
Pos = MAP_APPFONT ( 235, 24 ) ;
Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_HEIGHT, HYPERDLG_IMGBUTTON_HEIGHT );
TabStop = TRUE ;
QuickHelpText [ en-US ] = "Select Path" ;
ButtonImage = Image
{
ImageBitmap = Bitmap { File = "newdoc.bmp" ; };
MASKCOLOR
};
Text [ en-US ] = "Select Path";
};
FixedLine GRP_MORE
{
Pos = MAP_APPFONT ( 6 , 92 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Further settings" ;
};
FixedText FT_FRAME
{
Pos = MAP_APPFONT ( 12 , 105 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "F~rame" ;
};
ComboBox CB_FRAME
{
HelpID = "cui:ComboBox:RID_SVXPAGE_HYPERLINK_NEWDOCUMENT:CB_FRAME";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 104 ) ;
Size = MAP_APPFONT ( 66 - COL_DIFF , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
Sort = TRUE ;
};
FixedText FT_FORM
{
Pos = MAP_APPFONT ( 126 , 105 ) ;
Size = MAP_APPFONT ( 33 , 10 ) ;
Text [ en-US ] = "F~orm" ;
};
ListBox LB_FORM
{
HelpID = "cui:ListBox:RID_SVXPAGE_HYPERLINK_NEWDOCUMENT:LB_FORM";
Border = TRUE ;
Pos = MAP_APPFONT ( 160 , 104 ) ;
Size = MAP_APPFONT ( 70 , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
AutoHScroll = TRUE ;
DDExtraWidth = TRUE ;
StringList [ en-US ] =
{
< "Text" ; Default ; > ;
< "Button" ; Default ; > ;
};
};
FixedText FT_INDICATION
{
Pos = MAP_APPFONT ( 12 , 123 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "Te~xt" ;
};
Edit ED_INDICATION
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_NEWDOCUMENT:ED_INDICATION";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 122 ) ;
Size = MAP_APPFONT ( 194 - COL_DIFF , 12 ) ;
};
FixedText FT_TEXT
{
Pos = MAP_APPFONT ( 12 , 140 ) ;
Size = MAP_APPFONT ( 39 + COL_DIFF , 8 ) ;
Text [ en-US ] = "N~ame" ;
};
Edit ED_TEXT
{
HelpID = "cui:Edit:RID_SVXPAGE_HYPERLINK_NEWDOCUMENT:ED_TEXT";
Border = TRUE ;
Pos = MAP_APPFONT ( COL_2 , 139 ) ;
Size = MAP_APPFONT ( 194 - COL_DIFF , 12 ) ;
};
ImageButton BTN_SCRIPT
{
HelpID = "cui:ImageButton:RID_SVXPAGE_HYPERLINK_NEWDOCUMENT:BTN_SCRIPT";
Pos = MAP_APPFONT ( 235, 103-1 ) ;
Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_HEIGHT, HYPERDLG_IMGBUTTON_HEIGHT );
TabStop = TRUE ;
QuickHelpText [ en-US ] = "Events" ;
ButtonImage = Image
{
ImageBitmap = Bitmap { File = "script.bmp" ; };
MASKCOLOR
};
Text [ en-US ] = "Events";
};
};
/*************************************************************************
|
| Tabpage-Dialog : Hyperlinks
|
*************************************************************************/
ModalDialog RID_SVXDLG_NEWHYPERLINK
{
HelpID = CMD_SID_HYPERLINK_DIALOG;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 325 , 185 ) ;
Text [ en-US ] = "Hyperlink" ;
Moveable = TRUE ;
};
/*************************************************************************
|
| Tabpage-Dialog : Hyperlinks
|
*************************************************************************/
String RID_SVXSTR_HYPDLG_APPLYBUT String RID_SVXSTR_HYPDLG_APPLYBUT
{ {
Text [ en-US ] = "Apply" ; Text [ en-US ] = "Apply" ;
@@ -821,4 +125,40 @@ Image RID_SVXBMP_HLDOCNTP
MASKCOLOR MASKCOLOR
}; };
Image RID_SVXBMP_BROWSE
{
ImageBitmap = Bitmap { File = "browse.bmp" ; };
MASKCOLOR
};
Image RID_SVXBMP_SCRIPT
{
ImageBitmap = Bitmap { File = "script.bmp" ; };
MASKCOLOR
};
Image RID_SVXBMP_ADRESSBOOK
{
ImageBitmap = Bitmap { File = "adrbook.bmp" ; };
MASKCOLOR
};
Image RID_SVXBMP_FILEOPEN
{
ImageBitmap = Bitmap { File = "fileopen.bmp" ; };
MASKCOLOR
};
Image RID_SVXBMP_TARGET
{
ImageBitmap = Bitmap { File = "target.bmp" ; };
MASKCOLOR
};
Image RID_SVXBMP_NEWDOC
{
ImageBitmap = Bitmap { File = "newdoc.bmp" ; };
MASKCOLOR
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -66,9 +66,10 @@ static inline OUString GetViewOptUserItem( const SvtViewOptions& rOpt )
| |
\**********************************************************************/ \**********************************************************************/
IconChoicePage::IconChoicePage( Window *pParent, const ResId &rResId, IconChoicePage::IconChoicePage( Window *pParent, const OString& rID,
const OUString& rUIXMLDescription,
const SfxItemSet &rAttrSet ) const SfxItemSet &rAttrSet )
: TabPage ( pParent, rResId ), : TabPage ( pParent, rID, rUIXMLDescription ),
pSet ( &rAttrSet ), pSet ( &rAttrSet ),
bHasExchangeSupport ( false ), bHasExchangeSupport ( false ),
pDialog ( NULL ) pDialog ( NULL )
@@ -191,39 +192,46 @@ void IconChoicePage::DataChanged( const DataChangedEvent& rDCEvt )
| |
\**********************************************************************/ \**********************************************************************/
IconChoiceDialog::IconChoiceDialog ( Window* pParent, const ResId &rResId, extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvtIconChoiceCtrl(Window *pParent, VclBuilder::stringmap &)
{
return new SvtIconChoiceCtrl(pParent, WB_3DLOOK | WB_ICON | WB_BORDER |
WB_NOCOLUMNHEADER | WB_HIGHLIGHTFRAME |
WB_NODRAGSELECTION | WB_TABSTOP);
}
IconChoiceDialog::IconChoiceDialog ( Window* pParent, const OString& rID,
const OUString& rUIXMLDescription,
const EIconChoicePos ePos, const EIconChoicePos ePos,
const SfxItemSet *pItemSet ) const SfxItemSet *pItemSet )
: ModalDialog ( pParent, rResId ), : ModalDialog ( pParent, rID, rUIXMLDescription ),
meChoicePos ( ePos ), meChoicePos ( ePos ),
maIconCtrl ( this, WB_3DLOOK | WB_ICON | WB_BORDER |
WB_NOCOLUMNHEADER | WB_HIGHLIGHTFRAME |
WB_NODRAGSELECTION | WB_TABSTOP ),
mnCurrentPageId ( USHRT_MAX ), mnCurrentPageId ( USHRT_MAX ),
aOKBtn ( this, WB_DEFBUTTON ),
aCancelBtn ( this, WB_DEFBUTTON ),
aHelpBtn ( this ),
aResetBtn ( this ),
pSet ( pItemSet ), pSet ( pItemSet ),
pOutSet ( NULL ), pOutSet ( NULL ),
pExampleSet ( NULL ), pExampleSet ( NULL ),
pRanges ( NULL ), pRanges ( NULL ),
nResId ( rResId.GetId() ), rId ( rID ),
bHideResetBtn ( false ), bHideResetBtn ( false ),
bModal ( false ), bModal ( false ),
bInOK ( false ), bInOK ( false ),
bItemsReset ( false ) bItemsReset ( false )
{ {
get(m_pOKBtn, "ok");
get(m_pCancelBtn, "cancel");
get(m_pHelpBtn, "help");
get(m_pResetBtn, "back");
get(m_pIconCtrl, "icon_control");
get(m_pTabContainer, "tab");
maIconCtrl.SetStyle (WB_3DLOOK | WB_ICON | WB_BORDER | WB_NOCOLUMNHEADER | WB_HIGHLIGHTFRAME | WB_NODRAGSELECTION | WB_TABSTOP | WB_CLIPCHILDREN ); m_pIconCtrl->SetStyle (WB_3DLOOK | WB_ICON | WB_BORDER | WB_NOCOLUMNHEADER | WB_HIGHLIGHTFRAME | WB_NODRAGSELECTION | WB_TABSTOP | WB_CLIPCHILDREN );
SetCtrlPos ( meChoicePos ); SetCtrlPos ( meChoicePos );
maIconCtrl.SetClickHdl ( LINK ( this, IconChoiceDialog , ChosePageHdl_Impl ) ); m_pIconCtrl->SetClickHdl ( LINK ( this, IconChoiceDialog , ChosePageHdl_Impl ) );
maIconCtrl.Show(); m_pIconCtrl->Show();
maIconCtrl.SetChoiceWithCursor ( true ); m_pIconCtrl->SetChoiceWithCursor ( true );
maIconCtrl.SetSelectionMode( SINGLE_SELECTION ); m_pIconCtrl->SetSelectionMode( SINGLE_SELECTION );
maIconCtrl.SetHelpId( HID_ICCDIALOG_CHOICECTRL ); m_pIconCtrl->SetHelpId( HID_ICCDIALOG_CHOICECTRL );
// ItemSet // ItemSet
if ( pSet ) if ( pSet )
@@ -233,29 +241,28 @@ IconChoiceDialog::IconChoiceDialog ( Window* pParent, const ResId &rResId,
} }
// Buttons // Buttons
aOKBtn.SetClickHdl ( LINK( this, IconChoiceDialog, OkHdl ) ); m_pOKBtn->SetClickHdl ( LINK( this, IconChoiceDialog, OkHdl ) );
aOKBtn.SetHelpId( HID_ICCDIALOG_OK_BTN ); m_pOKBtn->SetHelpId( HID_ICCDIALOG_OK_BTN );
aCancelBtn.SetHelpId( HID_ICCDIALOG_CANCEL_BTN ); m_pCancelBtn->SetHelpId( HID_ICCDIALOG_CANCEL_BTN );
aResetBtn.SetClickHdl( LINK( this, IconChoiceDialog, ResetHdl ) ); m_pResetBtn->SetClickHdl( LINK( this, IconChoiceDialog, ResetHdl ) );
aResetBtn.SetText( CUI_RESSTR(RID_SVXSTR_ICONCHOICEDLG_RESETBUT) ); m_pResetBtn->SetText( CUI_RESSTR(RID_SVXSTR_ICONCHOICEDLG_RESETBUT) );
aResetBtn.SetHelpId( HID_ICCDIALOG_RESET_BTN ); m_pResetBtn->SetHelpId( HID_ICCDIALOG_RESET_BTN );
aOKBtn.Show(); m_pOKBtn->Show();
aCancelBtn.Show(); m_pCancelBtn->Show();
aHelpBtn.Show(); m_pHelpBtn->Show();
aResetBtn.Show(); m_pResetBtn->Show();
SetPosSizeCtrls ( true ); SetPosSizeCtrls ( true );
} }
IconChoiceDialog ::~IconChoiceDialog () IconChoiceDialog ::~IconChoiceDialog ()
{ {
// save configuration at INI-Manager // save configuration at INI-Manager
// and remove pages // and remove pages
SvtViewOptions aTabDlgOpt( E_TABDIALOG, OUString::number(nResId) ); //SvtViewOptions aTabDlgOpt( E_TABDIALOG, rId );
aTabDlgOpt.SetWindowState(OStringToOUString(GetWindowState((WINDOWSTATE_MASK_X | WINDOWSTATE_MASK_Y | WINDOWSTATE_MASK_STATE | WINDOWSTATE_MASK_MINIMIZED)), RTL_TEXTENCODING_ASCII_US)); //aTabDlgOpt.SetWindowState(OStringToOUString(GetWindowState((WINDOWSTATE_MASK_X | WINDOWSTATE_MASK_Y | WINDOWSTATE_MASK_STATE | WINDOWSTATE_MASK_MINIMIZED)), RTL_TEXTENCODING_ASCII_US));
aTabDlgOpt.SetPageID( mnCurrentPageId ); //aTabDlgOpt.SetPageID( mnCurrentPageId );
for ( size_t i = 0, nCount = maPageList.size(); i < nCount; ++i ) for ( size_t i = 0, nCount = maPageList.size(); i < nCount; ++i )
{ {
@@ -267,9 +274,9 @@ IconChoiceDialog ::~IconChoiceDialog ()
OUString aPageData(pData->pPage->GetUserData()); OUString aPageData(pData->pPage->GetUserData());
if ( !aPageData.isEmpty() ) if ( !aPageData.isEmpty() )
{ {
SvtViewOptions aTabPageOpt( E_TABPAGE, OUString::number(pData->nId) ); //SvtViewOptions aTabPageOpt( E_TABPAGE, OUString::number(pData->nId) );
SetViewOptUserItem( aTabPageOpt, aPageData ); //SetViewOptUserItem( aTabPageOpt, aPageData );
} }
if ( pData->bOnDemand ) if ( pData->bOnDemand )
@@ -280,9 +287,9 @@ IconChoiceDialog ::~IconChoiceDialog ()
} }
// remove Userdata from Icons // remove Userdata from Icons
for ( sal_uLong i=0; i < maIconCtrl.GetEntryCount(); i++) for ( sal_uLong i=0; i < m_pIconCtrl->GetEntryCount(); i++)
{ {
SvxIconChoiceCtrlEntry* pEntry = maIconCtrl.GetEntry ( i ); SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->GetEntry ( i );
sal_uInt16* pUserData = (sal_uInt16*) pEntry->GetUserData(); sal_uInt16* pUserData = (sal_uInt16*) pEntry->GetUserData();
delete pUserData; delete pUserData;
} }
@@ -319,7 +326,7 @@ SvxIconChoiceCtrlEntry* IconChoiceDialog::AddTabPage(
pData->bOnDemand = bItemsOnDemand; pData->bOnDemand = bItemsOnDemand;
sal_uInt16 *pId = new sal_uInt16 ( nId ); sal_uInt16 *pId = new sal_uInt16 ( nId );
SvxIconChoiceCtrlEntry* pEntry = maIconCtrl.InsertEntry( rIconText, rChoiceIcon ); SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->InsertEntry( rIconText, rChoiceIcon );
pEntry->SetUserData ( (void*) pId ); pEntry->SetUserData ( (void*) pId );
return pEntry; return pEntry;
} }
@@ -351,7 +358,7 @@ void IconChoiceDialog::Paint( const Rectangle& rRect )
EIconChoicePos IconChoiceDialog::SetCtrlPos( const EIconChoicePos& rPos ) EIconChoicePos IconChoiceDialog::SetCtrlPos( const EIconChoicePos& rPos )
{ {
WinBits aWinBits = maIconCtrl.GetStyle (); WinBits aWinBits = m_pIconCtrl->GetStyle ();
switch ( meChoicePos ) switch ( meChoicePos )
{ {
@@ -372,7 +379,7 @@ EIconChoicePos IconChoiceDialog::SetCtrlPos( const EIconChoicePos& rPos )
aWinBits |= WB_ALIGN_TOP | WB_NOVSCROLL; aWinBits |= WB_ALIGN_TOP | WB_NOVSCROLL;
break; break;
} }
maIconCtrl.SetStyle ( aWinBits ); m_pIconCtrl->SetStyle ( aWinBits );
SetPosSizeCtrls(); SetPosSizeCtrls();
@@ -450,7 +457,7 @@ void IconChoiceDialog::SetPosSizeCtrls ( bool bInit )
// Reset-Button // Reset-Button
Size aResetButtonSize ( bInit ? aDefaultButtonSize : Size aResetButtonSize ( bInit ? aDefaultButtonSize :
aResetBtn.GetSizePixel () ); m_pResetBtn->GetSizePixel () );
// IconChoiceCtrl resizen & positionieren // IconChoiceCtrl resizen & positionieren
@@ -488,8 +495,8 @@ void IconChoiceDialog::SetPosSizeCtrls ( bool bInit )
nDefaultHeight ); nDefaultHeight );
break; break;
} }
maIconCtrl.SetPosSizePixel ( aIconCtrlPos, aNewIconCtrlSize ); m_pIconCtrl->SetPosSizePixel ( aIconCtrlPos, aNewIconCtrlSize );
maIconCtrl.ArrangeIcons(); m_pIconCtrl->ArrangeIcons();
// resize & position the pages // resize & position the pages
@@ -507,27 +514,27 @@ void IconChoiceDialog::SetPosSizeCtrls ( bool bInit )
CTRLS_OFFSET ); CTRLS_OFFSET );
aNewPageSize = Size ( aOutSize.Width() - aNewIconCtrlSize.Width() - aNewPageSize = Size ( aOutSize.Width() - aNewIconCtrlSize.Width() -
(3*CTRLS_OFFSET), (3*CTRLS_OFFSET),
aOutSize.Height() - aOKBtn.GetSizePixel().Height() - aOutSize.Height() - m_pOKBtn->GetSizePixel().Height() -
(3*CTRLS_OFFSET) ); (3*CTRLS_OFFSET) );
break; break;
case PosRight : case PosRight :
aNewPagePos = aCtrlOffset; aNewPagePos = aCtrlOffset;
aNewPageSize = Size ( aOutSize.Width() - aNewIconCtrlSize.Width() - aNewPageSize = Size ( aOutSize.Width() - aNewIconCtrlSize.Width() -
(3*aCtrlOffset.X()), (3*aCtrlOffset.X()),
aOutSize.Height() - aOKBtn.GetSizePixel().Height() - aOutSize.Height() - m_pOKBtn->GetSizePixel().Height() -
(3*aCtrlOffset.X()) ); (3*aCtrlOffset.X()) );
break; break;
case PosTop : case PosTop :
aNewPagePos = Point ( aCtrlOffset.X(), aNewIconCtrlSize.Height() + aNewPagePos = Point ( aCtrlOffset.X(), aNewIconCtrlSize.Height() +
(2*aCtrlOffset.X()) ); (2*aCtrlOffset.X()) );
aNewPageSize = Size ( aOutSize.Width() - (2*aCtrlOffset.X()), aNewPageSize = Size ( aOutSize.Width() - (2*aCtrlOffset.X()),
aOutSize.Height() - aOKBtn.GetSizePixel().Height() - aOutSize.Height() - m_pOKBtn->GetSizePixel().Height() -
aNewIconCtrlSize.Height() - (4*aCtrlOffset.X()) ); aNewIconCtrlSize.Height() - (4*aCtrlOffset.X()) );
break; break;
case PosBottom : case PosBottom :
aNewPagePos = aCtrlOffset; aNewPagePos = aCtrlOffset;
aNewPageSize = Size ( aOutSize.Width() - (2*aCtrlOffset.X()), aNewPageSize = Size ( aOutSize.Width() - (2*aCtrlOffset.X()),
aOutSize.Height() - aOKBtn.GetSizePixel().Height() - aOutSize.Height() - m_pOKBtn->GetSizePixel().Height() -
aNewIconCtrlSize.Height() - (4*aCtrlOffset.X()) ); aNewIconCtrlSize.Height() - (4*aCtrlOffset.X()) );
break; break;
} }
@@ -543,15 +550,15 @@ void IconChoiceDialog::SetPosSizeCtrls ( bool bInit )
if ( meChoicePos == PosRight ) if ( meChoicePos == PosRight )
nXOffset = aNewIconCtrlSize.Width()+(2*aCtrlOffset.X()); nXOffset = aNewIconCtrlSize.Width()+(2*aCtrlOffset.X());
aResetBtn.SetPosSizePixel ( Point( aOutSize.Width() - nXOffset - m_pResetBtn->SetPosSizePixel ( Point( aOutSize.Width() - nXOffset -
aResetButtonSize.Width()-aCtrlOffset.X(), aResetButtonSize.Width()-aCtrlOffset.X(),
aOutSize.Height()-aResetButtonSize.Height()- aOutSize.Height()-aResetButtonSize.Height()-
aCtrlOffset.X() ), aCtrlOffset.X() ),
aResetButtonSize ); aResetButtonSize );
// Help-Button // Help-Button
Size aHelpButtonSize ( bInit ? aDefaultButtonSize : Size aHelpButtonSize ( bInit ? aDefaultButtonSize :
aHelpBtn.GetSizePixel () ); m_pHelpBtn->GetSizePixel () );
aHelpBtn.SetPosSizePixel ( Point( aOutSize.Width()-aResetButtonSize.Width()- m_pHelpBtn->SetPosSizePixel ( Point( aOutSize.Width()-aResetButtonSize.Width()-
aHelpButtonSize.Width()- nXOffset - aHelpButtonSize.Width()- nXOffset -
(2*aCtrlOffset.X()), (2*aCtrlOffset.X()),
aOutSize.Height()-aHelpButtonSize.Height()- aOutSize.Height()-aHelpButtonSize.Height()-
@@ -559,16 +566,16 @@ void IconChoiceDialog::SetPosSizeCtrls ( bool bInit )
aHelpButtonSize ); aHelpButtonSize );
// Cancel-Button // Cancel-Button
Size aCancelButtonSize ( bInit ? aDefaultButtonSize : Size aCancelButtonSize ( bInit ? aDefaultButtonSize :
aCancelBtn.GetSizePixel () ); m_pCancelBtn->GetSizePixel () );
aCancelBtn.SetPosSizePixel ( Point( aOutSize.Width()-aCancelButtonSize.Width()- m_pCancelBtn->SetPosSizePixel ( Point( aOutSize.Width()-aCancelButtonSize.Width()-
aResetButtonSize.Width()-aHelpButtonSize.Width()- aResetButtonSize.Width()-aHelpButtonSize.Width()-
(3*aCtrlOffset.X()) - nXOffset, (3*aCtrlOffset.X()) - nXOffset,
aOutSize.Height()-aCancelButtonSize.Height()- aOutSize.Height()-aCancelButtonSize.Height()-
aCtrlOffset.X() ), aCtrlOffset.X() ),
aCancelButtonSize ); aCancelButtonSize );
// OK-Button // OK-Button
Size aOKButtonSize ( bInit ? aDefaultButtonSize : aOKBtn.GetSizePixel () ); Size aOKButtonSize ( bInit ? aDefaultButtonSize : m_pOKBtn->GetSizePixel () );
aOKBtn.SetPosSizePixel ( Point( aOutSize.Width()-aOKButtonSize.Width()- m_pOKBtn->SetPosSizePixel ( Point( aOutSize.Width()-aOKButtonSize.Width()-
aCancelButtonSize.Width()-aResetButtonSize.Width()- aCancelButtonSize.Width()-aResetButtonSize.Width()-
aHelpButtonSize.Width()-(4*aCtrlOffset.X())- nXOffset, aHelpButtonSize.Width()-(4*aCtrlOffset.X())- nXOffset,
aOutSize.Height()-aOKButtonSize.Height()-aCtrlOffset.X() ), aOutSize.Height()-aOKButtonSize.Height()-aCtrlOffset.X() ),
@@ -585,7 +592,7 @@ void IconChoiceDialog::SetPosSizePages ( sal_uInt16 nId )
if ( pData->pPage ) if ( pData->pPage )
{ {
Size aOutSize ( GetOutputSizePixel() ); Size aOutSize ( GetOutputSizePixel() );
Size aIconCtrlSize ( maIconCtrl.GetSizePixel() ); Size aIconCtrlSize ( m_pIconCtrl->GetSizePixel() );
Point aNewPagePos; Point aNewPagePos;
Size aNewPageSize; Size aNewPageSize;
@@ -594,30 +601,30 @@ void IconChoiceDialog::SetPosSizePages ( sal_uInt16 nId )
case PosLeft : case PosLeft :
aNewPagePos = Point ( aIconCtrlSize.Width() + (2*aCtrlOffset.X()), aNewPagePos = Point ( aIconCtrlSize.Width() + (2*aCtrlOffset.X()),
aCtrlOffset.X() ); aCtrlOffset.X() );
aNewPageSize = Size ( aOutSize.Width() - maIconCtrl.GetSizePixel().Width() - aNewPageSize = Size ( aOutSize.Width() - m_pIconCtrl->GetSizePixel().Width() -
(3*aCtrlOffset.X()), (3*aCtrlOffset.X()),
aOutSize.Height() - aOKBtn.GetSizePixel().Height() - aOutSize.Height() - m_pOKBtn->GetSizePixel().Height() -
(3*aCtrlOffset.X()) ); (3*aCtrlOffset.X()) );
break; break;
case PosRight : case PosRight :
aNewPagePos = aCtrlOffset; aNewPagePos = aCtrlOffset;
aNewPageSize = Size ( aOutSize.Width() - maIconCtrl.GetSizePixel().Width() - aNewPageSize = Size ( aOutSize.Width() - m_pIconCtrl->GetSizePixel().Width() -
(3*aCtrlOffset.X()), (3*aCtrlOffset.X()),
aOutSize.Height() - aOKBtn.GetSizePixel().Height() - aOutSize.Height() - m_pOKBtn->GetSizePixel().Height() -
(3*aCtrlOffset.X()) ); (3*aCtrlOffset.X()) );
break; break;
case PosTop : case PosTop :
aNewPagePos = Point ( aCtrlOffset.X(), aIconCtrlSize.Height() + aNewPagePos = Point ( aCtrlOffset.X(), aIconCtrlSize.Height() +
(2*aCtrlOffset.X()) ); (2*aCtrlOffset.X()) );
aNewPageSize = Size ( aOutSize.Width() - (2*aCtrlOffset.X()), aNewPageSize = Size ( aOutSize.Width() - (2*aCtrlOffset.X()),
aOutSize.Height() - aOKBtn.GetSizePixel().Height() - aOutSize.Height() - m_pOKBtn->GetSizePixel().Height() -
maIconCtrl.GetSizePixel().Height() - (4*aCtrlOffset.X()) ); m_pIconCtrl->GetSizePixel().Height() - (4*aCtrlOffset.X()) );
break; break;
case PosBottom : case PosBottom :
aNewPagePos = aCtrlOffset; aNewPagePos = aCtrlOffset;
aNewPageSize = Size ( aOutSize.Width() - (2*aCtrlOffset.X()), aNewPageSize = Size ( aOutSize.Width() - (2*aCtrlOffset.X()),
aOutSize.Height() - aOKBtn.GetSizePixel().Height() - aOutSize.Height() - m_pOKBtn->GetSizePixel().Height() -
maIconCtrl.GetSizePixel().Height() - (4*aCtrlOffset.X()) ); m_pIconCtrl->GetSizePixel().Height() - (4*aCtrlOffset.X()) );
break; break;
} }
@@ -635,9 +642,9 @@ IMPL_LINK_NOARG(IconChoiceDialog , ChosePageHdl_Impl)
{ {
sal_uLong nPos; sal_uLong nPos;
SvxIconChoiceCtrlEntry *pEntry = maIconCtrl.GetSelectedEntry ( nPos ); SvxIconChoiceCtrlEntry *pEntry = m_pIconCtrl->GetSelectedEntry ( nPos );
if ( !pEntry ) if ( !pEntry )
pEntry = maIconCtrl.GetCursor( ); pEntry = m_pIconCtrl->GetCursor( );
sal_uInt16 *pId = (sal_uInt16*)pEntry->GetUserData (); sal_uInt16 *pId = (sal_uInt16*)pEntry->GetUserData ();
@@ -737,12 +744,12 @@ void IconChoiceDialog::ActivatePageImpl ()
} }
if ( pTmpSet && !pData->bOnDemand ) if ( pTmpSet && !pData->bOnDemand )
pData->pPage = (pData->fnCreatePage)( this, *pTmpSet ); pData->pPage = (pData->fnCreatePage)( m_pTabContainer, this, *pTmpSet );
else else
pData->pPage = (pData->fnCreatePage)( this, *CreateInputItemSet( mnCurrentPageId ) ); pData->pPage = (pData->fnCreatePage)( m_pTabContainer, this, *CreateInputItemSet( mnCurrentPageId ) );
SvtViewOptions aTabPageOpt( E_TABPAGE, OUString::number(pData->nId) ); //SvtViewOptions aTabPageOpt( E_TABPAGE, OUString::number(pData->nId) );
pData->pPage->SetUserData( GetViewOptUserItem( aTabPageOpt ) ); //pData->pPage->SetUserData( GetViewOptUserItem( aTabPageOpt ) );
SetPosSizePages ( pData->nId ); SetPosSizePages ( pData->nId );
if ( pData->bOnDemand ) if ( pData->bOnDemand )
@@ -767,9 +774,9 @@ void IconChoiceDialog::ActivatePageImpl ()
if ( bReadOnly || bHideResetBtn ) if ( bReadOnly || bHideResetBtn )
aResetBtn.Hide(); m_pResetBtn->Hide();
else else
aResetBtn.Show(); m_pResetBtn->Show();
} }
@@ -963,7 +970,7 @@ short IconChoiceDialog::Execute()
void IconChoiceDialog::Start( bool bShow ) void IconChoiceDialog::Start( bool bShow )
{ {
aCancelBtn.SetClickHdl( LINK( this, IconChoiceDialog, CancelHdl ) ); m_pCancelBtn->SetClickHdl( LINK( this, IconChoiceDialog, CancelHdl ) );
bModal = false; bModal = false;
Start_Impl(); Start_Impl();
@@ -1002,9 +1009,9 @@ void IconChoiceDialog::Start_Impl()
nActPage = mnCurrentPageId; nActPage = mnCurrentPageId;
// configuration existing? // configuration existing?
SvtViewOptions aTabDlgOpt( E_TABDIALOG, OUString::number(nResId) ); //SvtViewOptions aTabDlgOpt( E_TABDIALOG, rId );
if ( aTabDlgOpt.Exists() ) /*if ( aTabDlgOpt.Exists() )
{ {
// possibly position from config // possibly position from config
SetWindowState(OUStringToOString(aTabDlgOpt.GetWindowState().getStr(), RTL_TEXTENCODING_ASCII_US)); SetWindowState(OUStringToOString(aTabDlgOpt.GetWindowState().getStr(), RTL_TEXTENCODING_ASCII_US));
@@ -1017,8 +1024,8 @@ void IconChoiceDialog::Start_Impl()
if ( GetPageData ( nActPage ) == NULL ) if ( GetPageData ( nActPage ) == NULL )
nActPage = maPageList.front()->nId; nActPage = maPageList.front()->nId;
} }*/
else if ( USHRT_MAX != mnCurrentPageId && GetPageData ( mnCurrentPageId ) != NULL ) //else if ( USHRT_MAX != mnCurrentPageId && GetPageData ( mnCurrentPageId ) != NULL )
nActPage = mnCurrentPageId; nActPage = mnCurrentPageId;
mnCurrentPageId = nActPage; mnCurrentPageId = nActPage;
@@ -1147,14 +1154,14 @@ short IconChoiceDialog::Ok()
void IconChoiceDialog::FocusOnIcon( sal_uInt16 nId ) void IconChoiceDialog::FocusOnIcon( sal_uInt16 nId )
{ {
// set focus to icon for the current visible page // set focus to icon for the current visible page
for ( sal_uInt16 i=0; i<maIconCtrl.GetEntryCount(); i++) for ( sal_uInt16 i=0; i<m_pIconCtrl->GetEntryCount(); i++)
{ {
SvxIconChoiceCtrlEntry* pEntry = maIconCtrl.GetEntry ( i ); SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->GetEntry ( i );
sal_uInt16* pUserData = (sal_uInt16*) pEntry->GetUserData(); sal_uInt16* pUserData = (sal_uInt16*) pEntry->GetUserData();
if ( pUserData && *pUserData == nId ) if ( pUserData && *pUserData == nId )
{ {
maIconCtrl.SetCursor( pEntry ); m_pIconCtrl->SetCursor( pEntry );
break; break;
} }
} }

View File

@@ -180,7 +180,12 @@
#define STR_MODIFY (RID_SVX_START + 336)//from optdict.src #define STR_MODIFY (RID_SVX_START + 336)//from optdict.src
// hyperlink dialog // hyperlink dialog
#define RID_SVXDLG_NEWHYPERLINK (RID_SVX_START + 227) #define RID_SVXBMP_SCRIPT (RID_SVX_START + 550)
#define RID_SVXBMP_TARGET (RID_SVX_START + 551)
#define RID_SVXBMP_FILEOPEN (RID_SVX_START + 552)
#define RID_SVXBMP_NEWDOC (RID_SVX_START + 553)
#define RID_SVXBMP_BROWSE (RID_SVX_START + 554)
#define RID_SVXBMP_ADRESSBOOK (RID_SVX_START + 555)
#define RID_SVXBMP_HLINETTP (RID_SVX_START + 556) #define RID_SVXBMP_HLINETTP (RID_SVX_START + 556)
#define RID_SVXBMP_HLMAILTP (RID_SVX_START + 557) #define RID_SVXBMP_HLMAILTP (RID_SVX_START + 557)
#define RID_SVXBMP_HLDOCTP (RID_SVX_START + 558) #define RID_SVXBMP_HLDOCTP (RID_SVX_START + 558)

View File

@@ -30,14 +30,11 @@
class SvxHyperlinkNewDocTp : public SvxHyperlinkTabPageBase class SvxHyperlinkNewDocTp : public SvxHyperlinkTabPageBase
{ {
private: private:
FixedLine maGrpNewDoc; RadioButton *m_pRbtEditNow;
RadioButton maRbtEditNow; RadioButton *m_pRbtEditLater;
RadioButton maRbtEditLater; SvxHyperURLBox *m_pCbbPath;
FixedText maFtPath; PushButton *m_pBtCreate;
SvxHyperURLBox maCbbPath; ListBox *m_pLbDocTypes;
ImageButton maBtCreate;
FixedText maFtDocTypes;
ListBox maLbDocTypes;
bool ImplGetURLObject( const OUString& rPath, const OUString& rBase, INetURLObject& aURLObject ) const; bool ImplGetURLObject( const OUString& rPath, const OUString& rBase, INetURLObject& aURLObject ) const;
void FillDocumentList (); void FillDocumentList ();
@@ -53,10 +50,10 @@ protected:
SvxLinkInsertMode& eMode ) SAL_OVERRIDE; SvxLinkInsertMode& eMode ) SAL_OVERRIDE;
public: public:
SvxHyperlinkNewDocTp ( Window *pParent, const SfxItemSet& rItemSet); SvxHyperlinkNewDocTp ( Window *pParent, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet);
virtual ~SvxHyperlinkNewDocTp (); virtual ~SvxHyperlinkNewDocTp ();
static IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet ); static IconChoicePage* Create( Window* pWindow, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet );
virtual bool AskApply () SAL_OVERRIDE; virtual bool AskApply () SAL_OVERRIDE;
virtual void DoApply () SAL_OVERRIDE; virtual void DoApply () SAL_OVERRIDE;

View File

@@ -30,17 +30,12 @@
class SvxHyperlinkDocTp : public SvxHyperlinkTabPageBase class SvxHyperlinkDocTp : public SvxHyperlinkTabPageBase
{ {
private: private:
FixedLine maGrpDocument; SvxHyperURLBox *m_pCbbPath;
FixedText maFtPath; PushButton *m_pBtFileopen;
SvxHyperURLBox maCbbPath;
ImageButton maBtFileopen;
FixedLine maGrpTarget; Edit *m_pEdTarget;
FixedText maFtTarget; FixedText *m_pFtFullURL;
Edit maEdTarget; PushButton *m_pBtBrowse;
FixedText maFtURL;
FixedText maFtFullURL;
ImageButton maBtBrowse;
OUString maStrURL; OUString maStrURL;
@@ -71,10 +66,10 @@ protected:
OUString GetCurrentURL (); OUString GetCurrentURL ();
public: public:
SvxHyperlinkDocTp ( Window *pParent, const SfxItemSet& rItemSet); SvxHyperlinkDocTp ( Window *pParent, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet);
virtual ~SvxHyperlinkDocTp (); virtual ~SvxHyperlinkDocTp ();
static IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet ); static IconChoicePage* Create( Window* pWindow, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet );
virtual void SetMarkStr ( const OUString& aStrMark ) SAL_OVERRIDE; virtual void SetMarkStr ( const OUString& aStrMark ) SAL_OVERRIDE;

View File

@@ -32,17 +32,15 @@
class SvxHyperlinkInternetTp : public SvxHyperlinkTabPageBase class SvxHyperlinkInternetTp : public SvxHyperlinkTabPageBase
{ {
private: private:
FixedLine maGrpLinkTyp; RadioButton *m_pRbtLinktypInternet;
RadioButton maRbtLinktypInternet; RadioButton *m_pRbtLinktypFTP;
RadioButton maRbtLinktypFTP; SvxHyperURLBox *m_pCbbTarget;
FixedText maFtTarget; PushButton *m_pBtBrowse;
SvxHyperURLBox maCbbTarget; FixedText *m_pFtLogin;
ImageButton maBtBrowse; Edit *m_pEdLogin;
FixedText maFtLogin; FixedText *m_pFtPassword;
Edit maEdLogin; Edit *m_pEdPassword;
FixedText maFtPassword; CheckBox *m_pCbAnonymous;
Edit maEdPassword;
CheckBox maCbAnonymous;
OUString maStrOldUser; OUString maStrOldUser;
OUString maStrOldPassword; OUString maStrOldPassword;
@@ -75,14 +73,14 @@ protected:
virtual void GetCurentItemData ( OUString& rStrURL, OUString& aStrName, virtual void GetCurentItemData ( OUString& rStrURL, OUString& aStrName,
OUString& aStrIntName, OUString& aStrFrame, OUString& aStrIntName, OUString& aStrFrame,
SvxLinkInsertMode& eMode ) SAL_OVERRIDE; SvxLinkInsertMode& eMode ) SAL_OVERRIDE;
virtual bool ShouldOpenMarkWnd () SAL_OVERRIDE {return ( mbMarkWndOpen && maRbtLinktypInternet.IsChecked() );} virtual bool ShouldOpenMarkWnd () SAL_OVERRIDE {return ( mbMarkWndOpen && m_pRbtLinktypInternet->IsChecked() );}
virtual void SetMarkWndShouldOpen (sal_Bool bOpen) SAL_OVERRIDE {mbMarkWndOpen=bOpen;} virtual void SetMarkWndShouldOpen (sal_Bool bOpen) SAL_OVERRIDE {mbMarkWndOpen=bOpen;}
public: public:
SvxHyperlinkInternetTp ( Window *pParent, const SfxItemSet& rItemSet); SvxHyperlinkInternetTp ( Window *pParent, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet);
virtual ~SvxHyperlinkInternetTp (); virtual ~SvxHyperlinkInternetTp ();
static IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet ); static IconChoicePage* Create( Window* pWindow, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet );
virtual void SetMarkStr ( const OUString& aStrMark ) SAL_OVERRIDE; virtual void SetMarkStr ( const OUString& aStrMark ) SAL_OVERRIDE;

View File

@@ -30,14 +30,12 @@
class SvxHyperlinkMailTp : public SvxHyperlinkTabPageBase class SvxHyperlinkMailTp : public SvxHyperlinkTabPageBase
{ {
private: private:
FixedLine maGrpMailNews; RadioButton *m_pRbtMail;
RadioButton maRbtMail; RadioButton *m_pRbtNews;
RadioButton maRbtNews; SvxHyperURLBox *m_pCbbReceiver;
FixedText maFtReceiver; PushButton *m_pBtAdrBook;
SvxHyperURLBox maCbbReceiver; FixedText *m_pFtSubject;
ImageButton maBtAdrBook; Edit *m_pEdSubject;
FixedText maFtSubject;
Edit maEdSubject;
DECL_LINK (Click_SmartProtocol_Impl, void * ); ///< Radiobutton clicked: Type EMAIl or News DECL_LINK (Click_SmartProtocol_Impl, void * ); ///< Radiobutton clicked: Type EMAIl or News
DECL_LINK (ClickAdrBookHdl_Impl , void * ); ///< Button : Address book DECL_LINK (ClickAdrBookHdl_Impl , void * ); ///< Button : Address book
@@ -57,10 +55,10 @@ protected:
SvxLinkInsertMode& eMode ) SAL_OVERRIDE; SvxLinkInsertMode& eMode ) SAL_OVERRIDE;
public: public:
SvxHyperlinkMailTp ( Window *pParent, const SfxItemSet& rItemSet); SvxHyperlinkMailTp ( Window *pParent, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet);
virtual ~SvxHyperlinkMailTp (); virtual ~SvxHyperlinkMailTp ();
static IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet ); static IconChoicePage* Create( Window* pWindow, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet );
virtual void SetInitFocus() SAL_OVERRIDE; virtual void SetInitFocus() SAL_OVERRIDE;
}; };

View File

@@ -46,14 +46,6 @@
#include "hlmarkwn.hxx" #include "hlmarkwn.hxx"
#include "iconcdlg.hxx" #include "iconcdlg.hxx"
/// ComboBox-Control, which is filled with all current framenames
class SvxFramesComboBox : public ComboBox
{
public:
SvxFramesComboBox (Window* pParent, const ResId& rResId, SfxDispatcher* pDispatch);
virtual ~SvxFramesComboBox ();
};
/// ComboBox-Control for URL's with History and Autocompletion /// ComboBox-Control for URL's with History and Autocompletion
class SvxHyperURLBox : public SvtURLBox, public DropTargetHelper class SvxHyperURLBox : public SvtURLBox, public DropTargetHelper
{ {
@@ -75,16 +67,11 @@ public:
class SvxHyperlinkTabPageBase : public IconChoicePage class SvxHyperlinkTabPageBase : public IconChoicePage
{ {
private: private:
FixedLine *mpGrpMore; ComboBox *mpCbbFrame;
FixedText *mpFtFrame;
SvxFramesComboBox *mpCbbFrame;
FixedText *mpFtForm;
ListBox *mpLbForm; ListBox *mpLbForm;
FixedText *mpFtIndication;
Edit *mpEdIndication; Edit *mpEdIndication;
FixedText *mpFtText;
Edit *mpEdText; Edit *mpEdText;
ImageButton *mpBtScript; PushButton *mpBtScript;
bool mbIsCloseDisabled; bool mbIsCloseDisabled;
@@ -125,7 +112,9 @@ protected:
public: public:
SvxHyperlinkTabPageBase ( SvxHyperlinkTabPageBase (
Window *pParent, Window *pParent,
const ResId &rResId, IconChoiceDialog* pDlg,
const OString& rID,
const OUString& rUIXMLDescription,
const SfxItemSet& rItemSet const SfxItemSet& rItemSet
); );
virtual ~SvxHyperlinkTabPageBase (); virtual ~SvxHyperlinkTabPageBase ();

View File

@@ -28,6 +28,7 @@
#include <vcl/dialog.hxx> #include <vcl/dialog.hxx>
#include <vcl/button.hxx> #include <vcl/button.hxx>
#include <vcl/image.hxx> #include <vcl/image.hxx>
#include <vcl/layout.hxx>
#include <vector> #include <vector>
#define CTRLS_OFFSET 3 #define CTRLS_OFFSET 3
@@ -40,7 +41,7 @@ class IconChoiceDialog;
class IconChoicePage; class IconChoicePage;
// Create-Function // Create-Function
typedef IconChoicePage* (*CreatePage)(Window *pParent, const SfxItemSet &rAttrSet); typedef IconChoicePage* (*CreatePage)(Window *pParent, IconChoiceDialog* pDlg, const SfxItemSet &rAttrSet);
typedef const sal_uInt16* (*GetPageRanges)(); // gives international Which-value typedef const sal_uInt16* (*GetPageRanges)(); // gives international Which-value
// position of iconchoicectrl // position of iconchoicectrl
@@ -86,7 +87,7 @@ private :
void ImplInitSettings(); void ImplInitSettings();
protected : protected :
IconChoicePage( Window *pParent, const ResId &, const SfxItemSet &rAttrSet ); IconChoicePage( Window *pParent, const OString& rID, const OUString& rUIXMLDescription, const SfxItemSet &rAttrSet );
sal_uInt16 GetSlot( sal_uInt16 nWhich ) const { return pSet->GetPool()->GetSlotId( nWhich ); } sal_uInt16 GetSlot( sal_uInt16 nWhich ) const { return pSet->GetPool()->GetSlotId( nWhich ); }
sal_uInt16 GetWhich( sal_uInt16 nSlot ) const { return pSet->GetPool()->GetWhich( nSlot ); } sal_uInt16 GetWhich( sal_uInt16 nSlot ) const { return pSet->GetPool()->GetWhich( nSlot ); }
@@ -131,22 +132,24 @@ private :
EIconChoicePos meChoicePos; EIconChoicePos meChoicePos;
::std::vector< IconChoicePageData* > maPageList; ::std::vector< IconChoicePageData* > maPageList;
SvtIconChoiceCtrl maIconCtrl; SvtIconChoiceCtrl *m_pIconCtrl;
sal_uInt16 mnCurrentPageId; sal_uInt16 mnCurrentPageId;
// Buttons // Buttons
OKButton aOKBtn; OKButton *m_pOKBtn;
CancelButton aCancelBtn; CancelButton *m_pCancelBtn;
HelpButton aHelpBtn; HelpButton *m_pHelpBtn;
PushButton aResetBtn; PushButton *m_pResetBtn;
VclVBox *m_pTabContainer;
const SfxItemSet* pSet; const SfxItemSet* pSet;
SfxItemSet* pOutSet; SfxItemSet* pOutSet;
SfxItemSet* pExampleSet; SfxItemSet* pExampleSet;
sal_uInt16* pRanges; sal_uInt16* pRanges;
sal_uInt32 nResId; const OString& rId;
bool bHideResetBtn; bool bHideResetBtn;
bool bModal; bool bModal;
@@ -187,7 +190,7 @@ protected :
public : public :
// the IconChoiceCtrl's could also be set in the Ctor // the IconChoiceCtrl's could also be set in the Ctor
IconChoiceDialog ( Window* pParent, const ResId &rResId, IconChoiceDialog ( Window* pParent, const OString& rID, const OUString& rUIXMLDescription,
const EIconChoicePos ePos = PosLeft, const SfxItemSet * pItemSet = 0 ); const EIconChoicePos ePos = PosLeft, const SfxItemSet * pItemSet = 0 );
virtual ~IconChoiceDialog (); virtual ~IconChoiceDialog ();
@@ -209,12 +212,12 @@ public :
void SetInputSet( const SfxItemSet* pInSet ); void SetInputSet( const SfxItemSet* pInSet );
const SfxItemSet* GetOutputItemSet() const { return pOutSet; } const SfxItemSet* GetOutputItemSet() const { return pOutSet; }
const OKButton& GetOKButton() const { return aOKBtn; } const OKButton& GetOKButton() const { return *m_pOKBtn; }
OKButton& GetOKButton() { return aOKBtn; } OKButton& GetOKButton() { return *m_pOKBtn; }
const CancelButton& GetCancelButton() const { return aCancelBtn; } const CancelButton& GetCancelButton() const { return *m_pCancelBtn; }
CancelButton& GetCancelButton() { return aCancelBtn; } CancelButton& GetCancelButton() { return *m_pCancelBtn; }
const HelpButton& GetHelpButton() const { return aHelpBtn; } const HelpButton& GetHelpButton() const { return *m_pHelpBtn; }
HelpButton& GetHelpButton() { return aHelpBtn; } HelpButton& GetHelpButton() { return *m_pHelpBtn; }
short Execute() SAL_OVERRIDE; short Execute() SAL_OVERRIDE;
void Start( bool bShow = true ); void Start( bool bShow = true );

View File

@@ -0,0 +1,148 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkDialog" id="HyperlinkDialog">
<property name="width_request">550</property>
<property name="height_request">400</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="border_width">5</property>
<property name="title" translatable="yes">Hyperlink</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="ok">
<property name="label">gtk-ok</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="help">
<property name="label">gtk-help</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkButton" id="back">
<property name="label" translatable="yes">back</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="spacing">6</property>
<child>
<object class="cuilo-SvtIconChoiceCtrl" id="icon_control">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox" id="tab">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget response="0">ok</action-widget>
<action-widget response="0">cancel</action-widget>
<action-widget response="0">help</action-widget>
<action-widget response="0">back</action-widget>
</action-widgets>
</object>
</interface>

View File

@@ -0,0 +1,488 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkBox" id="HyperlinkDocPage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkFrame" id="frame1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkRadioButton" id="linktyp_mail">
<property name="label" translatable="yes">_E-mail</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="linktyp_news">
<property name="label" translatable="yes">_News</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">linktyp_mail</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="path_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">_Path</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="cuilo-SvxHyperURLBox" id="path">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="fileopen">
<property name="label" translatable="yes">Open File</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Open File</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="subject_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="ypad">1</property>
<property name="label" translatable="yes">_Subject</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="subject">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Document</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkFrame" id="frame3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid5">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="target_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Targ_et</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="url_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">URL</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="browse">
<property name="label" translatable="yes">Target in Document</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Target in Document</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="target">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="url">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">Test text</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Target in document</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkFrame" id="frame2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="frame_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">F_rame</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="indication_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Te_xt</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="name_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">N_ame</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="indication">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="name">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkGrid" id="grid4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="form_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">F_orm</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="form">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="script">
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Events</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="frame">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="has_entry">True</property>
<child internal-child="entry">
<object class="GtkEntry" id="combobox-entry">
<property name="can_focus">False</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Further settings</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
</interface>

View File

@@ -0,0 +1,432 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkBox" id="HyperlinkInternetPage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkFrame" id="frame1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkRadioButton" id="linktyp_internet">
<property name="label" translatable="yes">_Web</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="linktyp_ftp">
<property name="label" translatable="yes">_FTP</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">linktyp_internet</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="target_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Tar_get</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="cuilo-SvxHyperURLBox" id="target">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="browse">
<property name="label" translatable="yes">WWW Browser</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Open web browser, copy an URL, and paste it to Target field</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="login_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="ypad">1</property>
<property name="label" translatable="yes">_Login name</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="password_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">_Password</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="login">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="password">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="anonymous">
<property name="label" translatable="yes">Anonymous _user</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">4</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Hyperlink type</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkFrame" id="frame2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="frame_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">F_rame</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="indication_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Te_xt</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="name_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">N_ame</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="indication">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="name">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkGrid" id="grid4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="form_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">F_orm</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="form">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="script">
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Events</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="frame">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="has_entry">True</property>
<child internal-child="entry">
<object class="GtkEntry" id="combobox-entry">
<property name="can_focus">False</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Further settings</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</interface>

View File

@@ -0,0 +1,375 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkBox" id="HyperlinkMailPage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkFrame" id="frame1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkRadioButton" id="linktyp_mail">
<property name="label" translatable="yes">_E-mail</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="linktyp_news">
<property name="label" translatable="yes">_News</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">linktyp_mail</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="receiver_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Re_cipient</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="cuilo-SvxHyperURLBox" id="receiver">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="adressbook">
<property name="label" translatable="yes">Data Sources...</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Data Sources...</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="subject_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="ypad">1</property>
<property name="label" translatable="yes">_Subject</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="subject">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Mail &amp; news</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkFrame" id="frame2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="frame_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">F_rame</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="indication_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Te_xt</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="name_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">N_ame</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="indication">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="name">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkGrid" id="grid4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="form_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">F_orm</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="form">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="script">
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Events</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="frame">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="has_entry">True</property>
<child internal-child="entry">
<object class="GtkEntry" id="combobox-entry">
<property name="can_focus">False</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Further settings</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</interface>

View File

@@ -0,0 +1,376 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkBox" id="HyperlinkNewDocPage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkFrame" id="frame1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkRadioButton" id="editnow">
<property name="label" translatable="yes">Edit _now</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="editlater">
<property name="label" translatable="yes">Edit _later</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">editnow</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="file_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">_File</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="cuilo-SvxHyperURLBox" id="path">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="create">
<property name="label" translatable="yes">Select Path</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Select Path</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="types_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="ypad">1</property>
<property name="label" translatable="yes">File _type</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkTreeView" id="types:border">
<property name="visible">True</property>
<property name="can_focus">True</property>
<child internal-child="selection">
<object class="GtkTreeSelection" id="treeview-selection1"/>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">New document</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkFrame" id="frame2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="frame_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">F_rame</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="indication_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Te_xt</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="name_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">N_ame</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="indication">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="name">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkGrid" id="grid4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="form_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">F_orm</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="form">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="script">
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Events</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="frame">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="has_entry">True</property>
<child internal-child="entry">
<object class="GtkEntry" id="combobox-entry">
<property name="can_focus">False</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Further settings</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</interface>

View File

@@ -624,6 +624,10 @@
generic-name="Edit Box" parent="GtkTextView" generic-name="Edit Box" parent="GtkTextView"
icon-name="widget-gtk-textview"/> icon-name="widget-gtk-textview"/>
<glade-widget-class title="URL Entry" name="cuilo-SvxHyperURLBox"
generic-name="URL Entry" parent="GtkEntry"
icon-name="widget-gtk-textentry"/>
<glade-widget-class title="Another NoSpace Edit" name="cuilo-SvxNoSpaceEdit" <glade-widget-class title="Another NoSpace Edit" name="cuilo-SvxNoSpaceEdit"
generic-name="Another NoSpace Edit" parent="GtkEntry" generic-name="Another NoSpace Edit" parent="GtkEntry"
icon-name="widget-gtk-textentry"> icon-name="widget-gtk-textentry">
@@ -714,6 +718,10 @@
generic-name="DbaIndexList" parent="GtkTreeView" generic-name="DbaIndexList" parent="GtkTreeView"
icon-name="widget-gtk-treeview"/> icon-name="widget-gtk-treeview"/>
<glade-widget-class title="Icon Choice Control" name="cuilo-SvtIconChoiceCtrl"
generic-name="Icon Choice Control" parent="GtkIconView"
icon-name="widget-gtk-iconview"/>
<glade-widget-class title="Recent Documents View" name="sfxlo-RecentDocsView" <glade-widget-class title="Recent Documents View" name="sfxlo-RecentDocsView"
generic-name="Icon View" parent="GtkIconView" generic-name="Icon View" parent="GtkIconView"
icon-name="widget-gtk-iconview"/> icon-name="widget-gtk-iconview"/>