oleview: Build the file filter by hand instead of hardcoding it in resource strings.

This commit is contained in:
Alexandre Julliard 2011-01-13 21:01:23 +01:00
parent 56193df2fd
commit bfd56391b6
20 changed files with 49 additions and 24 deletions

View File

@ -98,7 +98,8 @@ STRINGTABLE
IDS_ABOUTVER "version 1.0"
IDS_TYPELIBTITLE "ITypeLib viser"
IDS_OPEN "Åben"
IDS_OPEN_TYPELIB_FILTER "TypeLib Filer (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "TypeLib Filer (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "Knyt til fil via File Moniker"
IDM_TYPELIB, "Åben en TypeLib fil og vis indholdet"

View File

@ -100,7 +100,8 @@ STRINGTABLE
IDS_ABOUTVER "Version 1.0"
IDS_TYPELIBTITLE "ITypeLib-Betrachter"
IDS_OPEN "Öffnen"
IDS_OPEN_TYPELIB_FILTER "TypeLib Dateien (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Alle Dateien (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "TypeLib Dateien (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Alle Dateien (*.*)"
IDM_BIND, "An Datei via Datei-Moniker binden"
IDM_TYPELIB, "TypeLib-Datei öffnen und Inhalt betrachten"

View File

@ -98,7 +98,8 @@ STRINGTABLE
IDS_ABOUTVER "version 1.0"
IDS_TYPELIBTITLE "ITypeLib viewer"
IDS_OPEN "Open"
IDS_OPEN_TYPELIB_FILTER "TypeLib Files (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "TypeLib Files (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "Bind to file via a File Moniker"
IDM_TYPELIB, "Open a TypeLib file and view the contents"

View File

@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "version 1.0"
IDS_TYPELIBTITLE "Visionneur d'ITypeLib"
IDS_OPEN "Ouvrir"
IDS_OPEN_TYPELIB_FILTER "Fichiers TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Tous les fichiers (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "Fichiers TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Tous les fichiers (*.*)"
IDM_BIND, "Lier à un fichier à l'aide d'un File Moniker"
IDM_TYPELIB, "Ouvrir un fichier TypeLib et afficher son contenu"

View File

@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "גרסה 1.0"
IDS_TYPELIBTITLE "מציג ITypeLib"
IDS_OPEN "פתיחה"
IDS_OPEN_TYPELIB_FILTER "קובצי TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0כל הקבצים (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "קובצי TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "כל הקבצים (*.*)"
IDM_BIND, "איגוד לקובץ באמצעות מכנה קבצים"
IDM_TYPELIB, "פתיחת קובץ TypeLib וצפייה בתכנים"

View File

@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "versione 1.0"
IDS_TYPELIBTITLE "Visore ITypeLib"
IDS_OPEN "Apri"
IDS_OPEN_TYPELIB_FILTER "File TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Tutti i file (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "File TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Tutti i file (*.*)"
IDM_BIND, "Fissa su un file con un File Moniker"
IDM_TYPELIB, "Apri un file TypeLib e visualizza i contenuti"

View File

@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "バージョン 1.0"
IDS_TYPELIBTITLE "ITypeLib ビュアー"
IDS_OPEN "開く"
IDS_OPEN_TYPELIB_FILTER "TypeLib ファイル (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0すべてのファイル (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "TypeLib ファイル (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "すべてのファイル (*.*)"
IDM_BIND, "File Moniker を通じてファイルにバインドします"
IDM_TYPELIB, "TypeLib ファイルを開いて中身を表示します"

View File

@ -102,7 +102,8 @@ STRINGTABLE
IDS_ABOUTVER "버젼 1.0"
IDS_TYPELIBTITLE "ITypeLib 뷰어"
IDS_OPEN "열기"
IDS_OPEN_TYPELIB_FILTER "TypeLib 파일 (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "TypeLib 파일 (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "파일 별명으로 파일 연결"
IDM_TYPELIB, "타입 라이브러리 파일을 열고 내용 보기"

View File

@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "versija 1.0"
IDS_TYPELIBTITLE "ITypeLib žiūryklė"
IDS_OPEN "Atverti"
IDS_OPEN_TYPELIB_FILTER "TypeLib failai (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Visi failai (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "TypeLib failai (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Visi failai (*.*)"
IDM_BIND, "Susieti su failu per failo vardą"
IDM_TYPELIB, "Atverti TypeLib failą ir peržiūrėti jo turinį"

View File

@ -100,7 +100,8 @@ STRINGTABLE
IDS_ABOUTVER "versie 1.0"
IDS_TYPELIBTITLE "ITypeLib-viewer"
IDS_OPEN "Open"
IDS_OPEN_TYPELIB_FILTER "TypeLib bestanden (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Alle bestanden (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "TypeLib bestanden (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Alle bestanden (*.*)"
IDM_BIND, "Verbind aan een bestand via een Bestandsbeschrijver (Moniker)"
IDM_TYPELIB, "Open een TypeLib bestand en bekijk de inhoud"

View File

@ -98,7 +98,8 @@ STRINGTABLE
IDS_ABOUTVER "versjon 1.0"
IDS_TYPELIBTITLE "ITypeLib-viser"
IDS_OPEN "Åpne"
IDS_OPEN_TYPELIB_FILTER "TypeLib Files (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "TypeLib Files (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "Bind til fil via File Moniker"
IDM_TYPELIB, "Åpne en TypeLib-fil og vis innholdet"

View File

@ -99,7 +99,8 @@ STRINGTABLE
IDS_ABOUTVER "wersja 1.0"
IDS_TYPELIBTITLE "Przeglądarka ITypeLib"
IDS_OPEN "Otwórz"
IDS_OPEN_TYPELIB_FILTER "Pliki TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Wszystkie pliki (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "Pliki TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Wszystkie pliki (*.*)"
IDM_BIND, "Dowiąż do pliku za pomocą obiektu File Moniker"
IDM_TYPELIB, "Otwórz plik z biblioteki typów (TypeLib) i wyświetl jego zawartość"

View File

@ -176,7 +176,8 @@ STRINGTABLE
IDS_ABOUTVER "versão 1.0"
IDS_TYPELIBTITLE "Visualizador ITypeLib"
IDS_OPEN "Abrir"
IDS_OPEN_TYPELIB_FILTER "Arquivos TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Todos os Ficheiros (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "Arquivos TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Todos os Ficheiros (*.*)"
IDM_BIND, "Juntar ao arquivo através de um File Moniker"
IDM_TYPELIB, "Abrir um arquivo TypeLib e ver o conteúdo"
@ -238,7 +239,8 @@ STRINGTABLE
IDS_ABOUTVER "versão 1.0"
IDS_TYPELIBTITLE "Visualizador ITypeLib"
IDS_OPEN "Abrir"
IDS_OPEN_TYPELIB_FILTER "Ficheiros TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Todos os Ficheiros (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "Ficheiros TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Todos os Ficheiros (*.*)"
IDM_BIND, "Juntar a ficheiro através de um File Moniker"
IDM_TYPELIB, "Abrir um ficheiro TypeLib e ver os conteúdos"

View File

@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "versiunea 1.0"
IDS_TYPELIBTITLE "Vizualizator ITypeLib"
IDS_OPEN "Deschide"
IDS_OPEN_TYPELIB_FILTER "Fișiere TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\\0*.tlb;*.olb;*.dll;*.ocx;*.exe\\0Toate fișierele (*.*)\\0*.*\\0\\0"
IDS_OPEN_FILTER_TYPELIB "Fișiere TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Toate fișierele (*.*)"
IDM_BIND, "Leagă la fișier printr-un File Moniker"
IDM_TYPELIB, "Deschide un fișier TypeLib și afișează conținutul"

View File

@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "версия 1.0"
IDS_TYPELIBTITLE "ITypeLib viewer"
IDS_OPEN "Открыть"
IDS_OPEN_TYPELIB_FILTER "Файлы TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "Файлы TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "Привязать к файлу через File Moniker"
IDM_TYPELIB, "Открыть файл TypeLib и просмотреть содержимое"

View File

@ -98,7 +98,8 @@ STRINGTABLE
IDS_ABOUTVER "version 1.0"
IDS_TYPELIBTITLE "ITypeLib-visare"
IDS_OPEN "Öppna"
IDS_OPEN_TYPELIB_FILTER "TypeLib-filer (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Alla filer (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "TypeLib-filer (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Alla filer (*.*)"
IDM_BIND, "Bind till fil via File Moniker"
IDM_TYPELIB, "Öppna en TypeLib-fil och visa innehållet"

View File

@ -102,7 +102,8 @@ STRINGTABLE
IDS_ABOUTVER "версія 1.0"
IDS_TYPELIBTITLE "ITypeLib viewer"
IDS_OPEN "Відкрити"
IDS_OPEN_TYPELIB_FILTER "Файли TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Всі файли (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "Файли TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Всі файли (*.*)"
IDM_BIND, "Прив'язати до файлу через File Moniker"
IDM_TYPELIB, "Відкрити файл TypeLib і переглянути вміст"

View File

@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "版本 1.0"
IDS_TYPELIBTITLE "ITypeLib 查看器"
IDS_OPEN "打开"
IDS_OPEN_TYPELIB_FILTER "TypeLib 文件 (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "TypeLib 文件 (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "通过文件绰号绑定到文件"
IDM_TYPELIB, "打开 TypeLib 文件并查看内容"
@ -294,7 +295,8 @@ STRINGTABLE
IDS_ABOUTVER "版本 1.0 "
IDS_TYPELIBTITLE "ITypeLib 查看器"
IDS_OPEN "開啟"
IDS_OPEN_TYPELIB_FILTER "TypeLib 檔案 (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0"
IDS_OPEN_FILTER_TYPELIB "TypeLib 檔案 (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "通過檔案綽號綁定到檔案"
IDM_TYPELIB, "開啟 TypeLib 檔案並查看內容"

View File

@ -19,6 +19,7 @@
*/
#include "main.h"
#include "wine/unicode.h"
GLOBALS globals;
static const WCHAR wszRegEdit[] = { '\\','r','e','g','e','d','i','t','.','e','x','e','\0' };
@ -410,14 +411,17 @@ static int MenuCommand(WPARAM wParam, HWND hWnd)
break;
case IDM_TYPELIB:
{
static const WCHAR filterW[] = {'%','s','%','c','*','.','t','l','b',';','*','.','o','l','b',';','*','.','d','l','l',';','*','.','o','c','x',';','*','.','e','x','e','%','c','%','s','%','c','*','.','*','%','c',0};
OPENFILENAMEW ofn;
static WCHAR wszTitle[MAX_LOAD_STRING];
static WCHAR wszName[MAX_LOAD_STRING];
static WCHAR wszFilter[MAX_LOAD_STRING];
WCHAR filter_typelib[MAX_LOAD_STRING], filter_all[MAX_LOAD_STRING], filter[MAX_PATH];
LoadStringW(globals.hMainInst, IDS_OPEN, wszTitle, sizeof(wszTitle)/sizeof(wszTitle[0]));
LoadStringW(globals.hMainInst, IDS_OPEN_TYPELIB_FILTER, wszFilter, sizeof(wszFilter)/sizeof(wszFilter[0]));
InitOpenFileName(hWnd, &ofn, wszFilter, wszTitle, wszName);
LoadStringW(globals.hMainInst, IDS_OPEN_FILTER_TYPELIB, filter_typelib, sizeof(filter_typelib)/sizeof(WCHAR));
LoadStringW(globals.hMainInst, IDS_OPEN_FILTER_ALL, filter_all, sizeof(filter_all)/sizeof(WCHAR));
snprintfW( filter, MAX_PATH, filterW, filter_typelib, 0, 0, filter_all, 0, 0 );
InitOpenFileName(hWnd, &ofn, filter, wszTitle, wszName);
if(GetOpenFileNameW(&ofn)) CreateTypeLibWindow(globals.hMainInst, wszName);
break;
}

View File

@ -33,7 +33,8 @@
#define IDS_ABOUTVER 21
#define IDS_OPEN 30
#define IDS_OPEN_TYPELIB_FILTER 31
#define IDS_OPEN_FILTER_TYPELIB 31
#define IDS_OPEN_FILTER_ALL 32
#define IDM_BIND 100
#define IDM_TYPELIB 101