wordpad: Add bullet points option.

This commit is contained in:
Alexander Nicolaysen Sørnes 2007-07-20 18:38:08 +02:00 committed by Alexandre Julliard
parent 09161365f9
commit d4ddb7f3be
12 changed files with 38 additions and 1 deletions

View File

@ -67,6 +67,7 @@ BEGIN
END
POPUP "F&ormat"
BEGIN
MENUITEM "&Bullet points" ID_BULLET
POPUP "&Hintergrund"
BEGIN
MENUITEM "&System\tCtrl+1", ID_BACK_1

View File

@ -67,7 +67,8 @@ BEGIN
END
POPUP "F&ormat"
BEGIN
POPUP "&Background"
MENUITEM "&Bullet points" ID_BULLET
POPUP "Backgroun&d"
BEGIN
MENUITEM "&System\tCtrl+1", ID_BACK_1
MENUITEM "&PostThat yellowish\tCtrl+2", ID_BACK_2

View File

@ -67,6 +67,7 @@ BEGIN
END
POPUP "Forma&t"
BEGIN
MENUITEM "&Bullet points" ID_BULLET
POPUP "&Fond"
BEGIN
MENUITEM "&Système\tCtrl+1", ID_BACK_1

View File

@ -67,6 +67,7 @@ BEGIN
END
POPUP "F&ormátum"
BEGIN
MENUITEM "&Bullet points" ID_BULLET
POPUP "&Háttér"
BEGIN
MENUITEM "&Rendszer\tCtrl+1", ID_BACK_1

View File

@ -68,6 +68,7 @@ BEGIN
END
POPUP "형식(&O)"
BEGIN
MENUITEM "B&ullet points" ID_BULLET
POPUP "배경(&B)"
BEGIN
MENUITEM "시스템(&S)\tCtrl+1", ID_BACK_1

View File

@ -67,6 +67,7 @@ BEGIN
END
POPUP "&Opmaak"
BEGIN
MENUITEM "&Bullet points" ID_BULLET
POPUP "&Achtergrond"
BEGIN
MENUITEM "&Systeem\tCtrl+1", ID_BACK_1

View File

@ -67,6 +67,7 @@ BEGIN
END
POPUP "F&ormat"
BEGIN
MENUITEM "&Punktmerking" ID_BULLET
POPUP "&Bakgrunn"
BEGIN
MENUITEM "&System\tCtrl+1", ID_BACK_1

View File

@ -68,6 +68,7 @@ BEGIN
END
POPUP "F&ormat"
BEGIN
MENUITEM "&Bullet points" ID_BULLET
POPUP "&T³o"
BEGIN
MENUITEM "&System\tCtrl+1", ID_BACK_1

View File

@ -65,6 +65,7 @@ BEGIN
END
POPUP "Ôîð&ìàò"
BEGIN
MENUITEM "B&ullet points" ID_BULLET
POPUP "&Ôîí"
BEGIN
MENUITEM "&Ñèñòåìíûé\tCtrl+1", ID_BACK_1

View File

@ -69,6 +69,7 @@ BEGIN
END
POPUP "&Biçim"
BEGIN
MENUITEM "&Bullet points" ID_BULLET
POPUP "&Arkaplan"
BEGIN
MENUITEM "S&istem\tCtrl+1", ID_BACK_1

View File

@ -49,6 +49,7 @@
#define ID_EDIT_CUT 1311
#define ID_EDIT_PASTE 1312
#define ID_EDIT_CLEAR 1313
#define ID_BULLET 1314
#define ID_FORMAT_BOLD 1400
#define ID_FORMAT_ITALIC 1401

View File

@ -976,6 +976,30 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
SendMessageW(hwndEditor, EM_REDO, 0, 0);
return 0;
case ID_BULLET:
{
PARAFORMAT pf;
pf.cbSize = sizeof(pf);
pf.dwMask = PFM_NUMBERING;
SendMessageW(hwndEditor, EM_GETPARAFORMAT, 0, (LPARAM)&pf);
pf.dwMask |= PFM_OFFSET;
if(pf.wNumbering == PFN_BULLET)
{
pf.wNumbering = 0;
pf.dxOffset = 0;
} else
{
pf.wNumbering = PFN_BULLET;
pf.dxOffset = 720;
}
SendMessageW(hwndEditor, EM_SETPARAFORMAT, 0, (LPARAM)&pf);
}
break;
case ID_ALIGN_LEFT:
case ID_ALIGN_CENTER:
case ID_ALIGN_RIGHT:
@ -1062,6 +1086,8 @@ static LRESULT OnInitPopupMenu( HWND hWnd, WPARAM wParam, LPARAM lParam )
MF_CHECKED : MF_UNCHECKED);
CheckMenuItem(hMenu, ID_ALIGN_RIGHT, MF_BYCOMMAND|(nAlignment == PFA_RIGHT) ?
MF_CHECKED : MF_UNCHECKED);
CheckMenuItem(hMenu, ID_BULLET, MF_BYCOMMAND | ((pf.wNumbering == PFN_BULLET) ?
MF_CHECKED : MF_UNCHECKED));
EnableMenuItem(hMenu, ID_EDIT_UNDO, MF_BYCOMMAND|(SendMessageW(hwndEditor, EM_CANUNDO, 0, 0)) ?
MF_ENABLED : MF_GRAYED);
EnableMenuItem(hMenu, ID_EDIT_REDO, MF_BYCOMMAND|(SendMessageW(hwndEditor, EM_CANREDO, 0, 0)) ?