Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
bb58537e
Commit
bb58537e
authored
Feb 25, 2010
by
Dylan Smith
Committed by
Alexandre Julliard
Feb 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Show page numbers in statusbar for print preview.
parent
2f7053e6
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
65 additions
and
3 deletions
+65
-3
Da.rc
programs/wordpad/Da.rc
+2
-0
De.rc
programs/wordpad/De.rc
+2
-0
En.rc
programs/wordpad/En.rc
+2
-0
Fr.rc
programs/wordpad/Fr.rc
+2
-0
Hu.rc
programs/wordpad/Hu.rc
+2
-0
It.rc
programs/wordpad/It.rc
+2
-0
Ja.rc
programs/wordpad/Ja.rc
+2
-0
Ko.rc
programs/wordpad/Ko.rc
+3
-1
Lt.rc
programs/wordpad/Lt.rc
+2
-0
Nl.rc
programs/wordpad/Nl.rc
+2
-0
No.rc
programs/wordpad/No.rc
+2
-0
Pl.rc
programs/wordpad/Pl.rc
+2
-0
Pt.rc
programs/wordpad/Pt.rc
+2
-0
Ru.rc
programs/wordpad/Ru.rc
+2
-0
Si.rc
programs/wordpad/Si.rc
+2
-0
Sv.rc
programs/wordpad/Sv.rc
+2
-0
Tr.rc
programs/wordpad/Tr.rc
+2
-0
Uk.rc
programs/wordpad/Uk.rc
+2
-0
Zh.rc
programs/wordpad/Zh.rc
+2
-0
print.c
programs/wordpad/print.c
+22
-0
wordpad.c
programs/wordpad/wordpad.c
+1
-1
wordpad.h
programs/wordpad/wordpad.h
+3
-1
No files found.
programs/wordpad/Da.rc
View file @
bb58537e
...
@@ -245,6 +245,8 @@ BEGIN
...
@@ -245,6 +245,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Luk"
STRING_PREVIEW_CLOSE, "Luk"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/De.rc
View file @
bb58537e
...
@@ -247,6 +247,8 @@ BEGIN
...
@@ -247,6 +247,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Ver&größern"
STRING_PREVIEW_ZOOMIN, "Ver&größern"
STRING_PREVIEW_ZOOMOUT, "Ver&kleinern"
STRING_PREVIEW_ZOOMOUT, "Ver&kleinern"
STRING_PREVIEW_CLOSE, "&Schließen"
STRING_PREVIEW_CLOSE, "&Schließen"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/En.rc
View file @
bb58537e
...
@@ -237,6 +237,8 @@ BEGIN
...
@@ -237,6 +237,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Close"
STRING_PREVIEW_CLOSE, "Close"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
STRING_UNITS_CM, "cm"
STRING_UNITS_CM, "cm"
END
END
...
...
programs/wordpad/Fr.rc
View file @
bb58537e
...
@@ -248,6 +248,8 @@ BEGIN
...
@@ -248,6 +248,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom avant"
STRING_PREVIEW_ZOOMIN, "Zoom avant"
STRING_PREVIEW_ZOOMOUT, "Zoom arrière"
STRING_PREVIEW_ZOOMOUT, "Zoom arrière"
STRING_PREVIEW_CLOSE, "Fermer"
STRING_PREVIEW_CLOSE, "Fermer"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/Hu.rc
View file @
bb58537e
...
@@ -245,6 +245,8 @@ BEGIN
...
@@ -245,6 +245,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Close"
STRING_PREVIEW_CLOSE, "Close"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/It.rc
View file @
bb58537e
...
@@ -241,6 +241,8 @@ BEGIN
...
@@ -241,6 +241,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Ingrandisci"
STRING_PREVIEW_ZOOMIN, "Ingrandisci"
STRING_PREVIEW_ZOOMOUT, "Rimpicciolisci"
STRING_PREVIEW_ZOOMOUT, "Rimpicciolisci"
STRING_PREVIEW_CLOSE, "Chiudi"
STRING_PREVIEW_CLOSE, "Chiudi"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
STRING_UNITS_CM, "cm"
STRING_UNITS_CM, "cm"
END
END
...
...
programs/wordpad/Ja.rc
View file @
bb58537e
...
@@ -248,6 +248,8 @@ BEGIN
...
@@ -248,6 +248,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "閉じる"
STRING_PREVIEW_CLOSE, "閉じる"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/Ko.rc
View file @
bb58537e
...
@@ -239,7 +239,9 @@ BEGIN
...
@@ -239,7 +239,9 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "닫기"
STRING_PREVIEW_CLOSE, "닫기"
STRING_UNITS_CM, "cm"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
STRING_UNITS_CM, "cm"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/Lt.rc
View file @
bb58537e
...
@@ -248,6 +248,8 @@ BEGIN
...
@@ -248,6 +248,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Didinti"
STRING_PREVIEW_ZOOMIN, "Didinti"
STRING_PREVIEW_ZOOMOUT, "Mažinti"
STRING_PREVIEW_ZOOMOUT, "Mažinti"
STRING_PREVIEW_CLOSE, "Užverti"
STRING_PREVIEW_CLOSE, "Užverti"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/Nl.rc
View file @
bb58537e
...
@@ -238,6 +238,8 @@ BEGIN
...
@@ -238,6 +238,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Sluiten"
STRING_PREVIEW_CLOSE, "Sluiten"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/No.rc
View file @
bb58537e
...
@@ -247,6 +247,8 @@ BEGIN
...
@@ -247,6 +247,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Lukk"
STRING_PREVIEW_CLOSE, "Lukk"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/Pl.rc
View file @
bb58537e
...
@@ -246,6 +246,8 @@ BEGIN
...
@@ -246,6 +246,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Zamknij"
STRING_PREVIEW_CLOSE, "Zamknij"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/Pt.rc
View file @
bb58537e
...
@@ -249,6 +249,8 @@ BEGIN
...
@@ -249,6 +249,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Fechar"
STRING_PREVIEW_CLOSE, "Fechar"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/Ru.rc
View file @
bb58537e
...
@@ -248,6 +248,8 @@ BEGIN
...
@@ -248,6 +248,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Приблизить"
STRING_PREVIEW_ZOOMIN, "Приблизить"
STRING_PREVIEW_ZOOMOUT, "Отдалить"
STRING_PREVIEW_ZOOMOUT, "Отдалить"
STRING_PREVIEW_CLOSE, "Закрыть"
STRING_PREVIEW_CLOSE, "Закрыть"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/Si.rc
View file @
bb58537e
...
@@ -247,6 +247,8 @@ BEGIN
...
@@ -247,6 +247,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Zapri"
STRING_PREVIEW_CLOSE, "Zapri"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/Sv.rc
View file @
bb58537e
...
@@ -247,6 +247,8 @@ BEGIN
...
@@ -247,6 +247,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zooma in"
STRING_PREVIEW_ZOOMIN, "Zooma in"
STRING_PREVIEW_ZOOMOUT, "Zooma ut"
STRING_PREVIEW_ZOOMOUT, "Zooma ut"
STRING_PREVIEW_CLOSE, "Stäng"
STRING_PREVIEW_CLOSE, "Stäng"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/Tr.rc
View file @
bb58537e
...
@@ -247,6 +247,8 @@ BEGIN
...
@@ -247,6 +247,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Close"
STRING_PREVIEW_CLOSE, "Close"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/Uk.rc
View file @
bb58537e
...
@@ -244,6 +244,8 @@ BEGIN
...
@@ -244,6 +244,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Збільшити"
STRING_PREVIEW_ZOOMIN, "Збільшити"
STRING_PREVIEW_ZOOMOUT, "Зменшити"
STRING_PREVIEW_ZOOMOUT, "Зменшити"
STRING_PREVIEW_CLOSE, "Закрити"
STRING_PREVIEW_CLOSE, "Закрити"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
STRING_UNITS_CM, "cm"
STRING_UNITS_CM, "cm"
END
END
...
...
programs/wordpad/Zh.rc
View file @
bb58537e
...
@@ -250,6 +250,8 @@ BEGIN
...
@@ -250,6 +250,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "关闭"
STRING_PREVIEW_CLOSE, "关闭"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
END
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
...
programs/wordpad/print.c
View file @
bb58537e
...
@@ -942,6 +942,27 @@ LRESULT print_preview(HWND hwndPreview)
...
@@ -942,6 +942,27 @@ LRESULT print_preview(HWND hwndPreview)
return
0
;
return
0
;
}
}
static
void
update_preview_statusbar
(
HWND
hMainWnd
)
{
HWND
hStatusbar
=
GetDlgItem
(
hMainWnd
,
IDC_STATUSBAR
);
HINSTANCE
hInst
=
GetModuleHandleW
(
0
);
WCHAR
*
p
;
WCHAR
wstr
[
MAX_STRING_LEN
];
p
=
wstr
;
if
(
preview
.
pages_shown
<
2
||
is_last_preview_page
(
preview
.
page
))
{
static
const
WCHAR
fmt
[]
=
{
' '
,
'%'
,
'd'
,
'\0'
};
p
+=
LoadStringW
(
hInst
,
STRING_PREVIEW_PAGE
,
wstr
,
MAX_STRING_LEN
);
wsprintfW
(
p
,
fmt
,
preview
.
page
);
}
else
{
static
const
WCHAR
fmt
[]
=
{
' '
,
'%'
,
'd'
,
'-'
,
'%'
,
'd'
,
'\0'
};
p
+=
LoadStringW
(
hInst
,
STRING_PREVIEW_PAGES
,
wstr
,
MAX_STRING_LEN
);
wsprintfW
(
p
,
fmt
,
preview
.
page
,
preview
.
page
+
1
);
}
SetWindowTextW
(
hStatusbar
,
wstr
);
}
/* Update for page changes. */
/* Update for page changes. */
static
void
update_preview
(
HWND
hMainWnd
)
static
void
update_preview
(
HWND
hMainWnd
)
{
{
...
@@ -995,6 +1016,7 @@ static void update_preview(HWND hMainWnd)
...
@@ -995,6 +1016,7 @@ static void update_preview(HWND hMainWnd)
update_scaled_preview
(
hMainWnd
);
update_scaled_preview
(
hMainWnd
);
update_preview_buttons
(
hMainWnd
);
update_preview_buttons
(
hMainWnd
);
update_preview_statusbar
(
hMainWnd
);
}
}
static
void
toggle_num_pages
(
HWND
hMainWnd
)
static
void
toggle_num_pages
(
HWND
hMainWnd
)
...
...
programs/wordpad/wordpad.c
View file @
bb58537e
...
@@ -2117,7 +2117,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
...
@@ -2117,7 +2117,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
{
{
int
index
=
reg_formatindex
(
fileFormat
);
int
index
=
reg_formatindex
(
fileFormat
);
DWORD
tmp
=
barState
[
index
];
DWORD
tmp
=
barState
[
index
];
barState
[
index
]
=
0
;
barState
[
index
]
=
1
<<
BANDID_STATUSBAR
;
set_bar_states
();
set_bar_states
();
barState
[
index
]
=
tmp
;
barState
[
index
]
=
tmp
;
ShowWindow
(
hEditorWnd
,
FALSE
);
ShowWindow
(
hEditorWnd
,
FALSE
);
...
...
programs/wordpad/wordpad.h
View file @
bb58537e
...
@@ -218,8 +218,10 @@
...
@@ -218,8 +218,10 @@
#define STRING_PREVIEW_ZOOMIN 1453
#define STRING_PREVIEW_ZOOMIN 1453
#define STRING_PREVIEW_ZOOMOUT 1454
#define STRING_PREVIEW_ZOOMOUT 1454
#define STRING_PREVIEW_CLOSE 1455
#define STRING_PREVIEW_CLOSE 1455
#define STRING_PREVIEW_PAGE 1456
#define STRING_PREVIEW_PAGES 1457
#define STRING_UNITS_CM 145
6
#define STRING_UNITS_CM 145
8
#define STRING_DEFAULT_FILENAME 1700
#define STRING_DEFAULT_FILENAME 1700
#define STRING_PROMPT_SAVE_CHANGES 1701
#define STRING_PROMPT_SAVE_CHANGES 1701
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment