diff --git a/rosapps/smartpdf/src/DisplayModel.h b/rosapps/smartpdf/src/DisplayModel.h index 634ce589473..b25ff78e5c3 100644 --- a/rosapps/smartpdf/src/DisplayModel.h +++ b/rosapps/smartpdf/src/DisplayModel.h @@ -329,7 +329,7 @@ bool displayStateFromDisplayModel(DisplayState *ds, DisplayModel extern DisplaySettings gDisplaySettings; /* must be implemented somewhere else */ -extern void LaunchBrowser(const char *uri); +//extern void LaunchBrowser(const char *uri); /* We keep a cache of rendered bitmaps. BitmapCacheEntry keeps data that uniquely identifies rendered page (dm, pageNo, rotation, zoomReal) diff --git a/rosapps/smartpdf/src/DisplayModelSplash.cc b/rosapps/smartpdf/src/DisplayModelSplash.cc index 865c6373319..f27fed7352a 100644 --- a/rosapps/smartpdf/src/DisplayModelSplash.cc +++ b/rosapps/smartpdf/src/DisplayModelSplash.cc @@ -563,7 +563,9 @@ void DisplayModelSplash::handleLinkURI(LinkURI *linkURI) uri = linkURI->getURI()->getCString(); if (str_empty(uri)) return; - LaunchBrowser(uri); + //LaunchBrowser(uri); + MessageBox(NULL,(TCHAR*)uri, TEXT("Extern link blocked"), 0); /* @note: work-around to solve linking issue */ + } void DisplayModelSplash::handleLinkLaunch(LinkLaunch* linkLaunch) diff --git a/rosapps/smartpdf/src/SumatraPDF.cpp b/rosapps/smartpdf/src/SumatraPDF.cpp index 25993e7e0a6..98b2dede958 100644 --- a/rosapps/smartpdf/src/SumatraPDF.cpp +++ b/rosapps/smartpdf/src/SumatraPDF.cpp @@ -282,10 +282,10 @@ void CurrLangNameFree() { g_currLangName = NULL; } -void LaunchBrowser(const TCHAR *url) +/*void LaunchBrowser(const TCHAR *url) { launch_url(url); -} +}*/ static BOOL pageRenderAbortCb(void *data) { @@ -2703,7 +2703,9 @@ static void OnMouseLeftButtonUp(WindowInfo *win, int x, int y) if (WS_ABOUT == win->state) { url = AboutGetLink(win, x, y); if (url == win->url) - LaunchBrowser(url); + //LaunchBrowser(url); + MessageBox(NULL,(TCHAR*)url, TEXT("Extern link blocked"), 0); /* @note: work-around to solve linking issue */ + win->url = NULL; return; } @@ -4166,7 +4168,8 @@ static LRESULT CALLBACK WndProcFrame(HWND hwnd, UINT message, WPARAM wParam, LPA break; case IDM_VISIT_WEBSITE: - LaunchBrowser(_T("http://blog.kowalczyk.info/software/sumatrapdf/")); + //LaunchBrowser(_T("http://blog.kowalczyk.info/software/sumatrapdf/")); + MessageBox(NULL, TEXT("http://www.reactos.org/"), TEXT("Extern link blocked"), 0); /* @note: work-around to solve linking issue */ break; case IDM_LANG_EN: