Commit Graph

268 Commits

Author SHA1 Message Date
Sven Baars 51e653b567 wordpad: Fix Dutch translation. 2010-05-08 13:12:40 +02:00
Gerald Pfeifer 2488c8a545 wordpad: Remove variable i which is not really used from OnCommand. 2010-04-26 07:00:53 -05:00
Davide Pizzetti f54fd9ac86 wordpad: Italian translation update. 2010-04-21 11:07:45 +02:00
Paul Vriens 26e93215a4 wordpad: Update/fix Dutch translation. 2010-04-20 17:46:36 +02:00
Gerald Pfeifer 62871e0b71 wordpad: Remove variable hwndPreview which is not really used from init_preview. 2010-04-20 16:22:34 +02:00
Alexandre Julliard b2e7e5c353 wordpad: Set the window small icon, and get rid of old icons. 2010-04-19 20:13:34 +02:00
Joel Holdsworth 2e1eb89679 wordpad: Replaced program icon with a Tango compliant icon. 2010-04-16 14:13:19 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Hwang YunSong 5c5f37a6c7 wordpad: Update Korean translation. 2010-03-02 11:14:19 +01:00
Anders Jonsson 61a56d3492 wordpad: Update Swedish translation. 2010-03-02 11:12:10 +01:00
Detlef Riekenberg b6439286b6 wordpad: Update German print preview translation. 2010-02-26 13:02:09 +01:00
Aurimas Fišeras 2e91ca1759 wordpad: Update Lithuanian translation. 2010-02-26 13:02:05 +01:00
Dylan Smith bb58537e95 wordpad: Show page numbers in statusbar for print preview. 2010-02-25 12:11:13 +01:00
Dylan Smith 3355be3e5d wordpad: Number of preview pages to show when unzoomed is persistent.
Either one or two pages may be shown in print preview when zoomed out.
This value is stored in the registry in native wordpad, and preserved
while opening and closing the print preview.  Zooming in will only show one
page, but the pages shown value must be saved because it will return to the
preview pages shown value after unzooming completely. If two pages should
be shown when there is only one page of text, then a second blank page is
shown.
2010-02-24 15:12:30 +01:00
Dylan Smith adc2c9547e wordpad: Added zoom cursor for print preview.
In print preview you can zoom in by left clicking on one of the pages.  The
zoom cursor is displayed whenever the mouse is over the page to indicate to
the user that they can zoom in.  When fully zoomed in it will zoom out when
this is done again.  When clicking on the second page, it will zoom into
that page.
2010-02-24 15:12:30 +01:00
Dylan Smith 3264450c35 wordpad: Avoid forward declarations in print.c. 2010-02-22 12:08:28 +01:00
Dylan Smith 20dea9a890 wordpad: Don't waste time getting the number of preview pages.
For print preview it will take more time to wait for the whole text to be
wrapped for EM_FORMATRANGE than to wait for just the first page.  Trying to
get the total number of pages will cause the whole test to be wrapped.
Instead all that is needed is to just determine if a page is the last page,
which can be determined by it's page end offset compared to the text length.
2010-02-22 12:08:20 +01:00
Dylan Smith f235c48cae wordpad: Avoid unnecessary deletion of hdcSized. 2010-02-22 12:08:11 +01:00
Dylan Smith 8f19111325 wordpad: Cache text length. 2010-02-22 12:08:06 +01:00
Dylan Smith 7a9f72863d wordpad: Update bitmaps outside of WM_PAINT.
This avoids having to delete the device context and the bitmap selected
into it just to update the bitmap, since it was setting preview.hdc to
NULL to indicate that these bitmaps needed to be updated. This patch
also helps make WM_PAINT messages get processed faster by moving this out
of the code for handling WM_PAINT.
2010-02-22 12:07:59 +01:00
Dylan Smith a75bf390d7 wordpad: Use pages_shown variables to indicate pages shown.
Previously hdc2 needed to be deleted and set to NULL to indicate that only
one page should be shown. I have avoided this using a new variable for
the preview structure.

The device context were also being deleted without deleting the bitmaps
created for them and selected into them, so this patch also gets these
bitmaps and deletes them with their device context.
2010-02-22 12:07:49 +01:00
Dylan Smith b278101580 wordpad: Get preview page character boundaries with number of pages.
Rather than making seperate calls to EM_FORMATRANGE to get the number of
pages and the character boundaries, it would be easiest to get both
together.  The time to process EM_FORMATRANGE seems like it would take a
lot longer than the time needed to cache the character page boundaries.
2010-02-22 12:07:33 +01:00
Dylan Smith 7451facf2f wordpad: Added missing calls to DeleteDC and ReleaseDC. 2010-02-22 12:07:22 +01:00
Dylan Smith 2397171cf3 wordpad: Added text colour toolbar button. 2010-02-18 12:42:46 +01:00
Dylan Smith 003e7e9675 wordpad: Avoid making monochrome bitmaps for print preview.
Previewly monochrome bitmaps were being created by CreateCompatibleBitmap
because the hdc passed into that call came from CreateCompatibleDC which is
initialized with a single pixel monochrome bitmap.
2010-02-18 12:18:26 +01:00
Dylan Smith 7aba35c608 wordpad: Fixed quick print so that it doesn't print blank pages. 2010-02-10 11:35:01 +01:00
Vladimir Pankratov 5af24c31ec wordpad: Update Russian translation. 2010-02-08 17:14:44 +01:00
Frédéric Delanoy f6aaddbd3b wordpad: Update French translation. 2010-02-02 11:47:20 +01:00
Frédéric Delanoy 51a6153672 wordpad: Fix typo in keyboard shortcut. 2010-02-02 11:47:20 +01:00
Igor Paliychuk c0c5ab16e1 wordpad: Update Ukrainian translations. 2010-02-01 12:08:54 +01:00
Luca Bennati 9f7c68fd92 wordpad: Add Italian translation. 2010-02-01 12:03:30 +01:00
André Hentschel 0c470a3362 wordpad: Fix German translation. 2010-02-01 12:00:22 +01:00
Anders Jonsson 18b918d0c4 wordpad: Update Swedish translation. 2010-02-01 11:59:46 +01:00
Aurimas Fišeras 6b64799c18 wordpad: Update Lithuanian translation. 2010-02-01 11:59:43 +01:00
Dylan Smith 0c46da86bf wordpad: Implement zooming in for print preview.
The preview is now drawn onto it's own window rather directly onto
the client area of the top level window.  This is done to allow for
scrollbars, since the page won't usually fit in the window when zoomed in.
Refactoring was needed as a result of this, and in order to provide more
granularity for updates to avoid EM_FORMATRANGE messages being sent when
the page the same page is being displayed.
2010-01-29 14:59:02 +01:00
Dylan Smith aaabd9f2f3 wordpad: Fixed spacing calculations for print preview. 2010-01-29 14:59:02 +01:00
Igor Paliychuk 05450498d0 wordpad: Add Ukrainian translations. 2010-01-29 13:30:04 +01:00
Dylan Smith ad52ae67a5 wordpad: Don't render the text when getting the number of pages.
EM_FORMATRANGE will render the text if wParam is non-zero, and there
is no reason to actually render the text when just getting the number
of pages.
2010-01-27 18:46:06 +01:00
Dylan Smith fc473e0f63 wordpad: Reset rc.bottom between calls to EM_FORMATRANGE.
EM_FORMATRANGE will set rc.bottom within the FORMATRANGE struct to be the
bottom of the area actually printed to, so this must be reset between calls
to make sure that the page boundaries are consistent between the pages.
2010-01-27 18:46:06 +01:00
Alexandre Julliard 55f024afe1 wordpad: Use the main module instance instead of getting it from the window. 2009-12-28 14:20:37 +01:00
Michael Stefaniuc cdaba88592 wordpad: Remove some explicit LPARAM/WPARAM casts. 2009-12-28 12:27:14 +01:00
Austin English 0b7903c46c wordpad: Only allow one find/replace window. 2009-11-23 13:09:13 +01:00
Andrey Turkin 64d488065a programs: Update Russian translations. 2009-10-20 13:46:42 +02:00
Dylan Smith 19c6edd497 wordpad: Use smaller cbSize for REBARBANDINFOW for compatibility.
The cbSize field for the REBARBANDINFOW structure was previously set to
the sizeof(REBARBANDINFOW), however, new fields were added to this
structure for newer version of windows.  Testing in Windows XP (or with
comctl32.dll from Windows XP) I found this larger size was rejected
causing the rebar to not be displayed in wordpad.
2009-08-17 13:57:50 +02:00
Dylan Smith 0c862dea00 wordpad: Use richedit class string macro from public headers. 2009-08-10 17:10:39 +02:00
Hwang YunSong 15ff2246b8 wordpad: Updated Korean resource. 2009-08-03 16:01:02 +02:00
Vladimir Pankratov 60dcd6365e wordpad: Convert the Russian resources to UTF-8. 2009-07-23 11:22:44 +02:00
Paul Vriens a607df2b69 wordpad: Align resources with the English ones. 2009-07-21 14:23:32 +02:00
Ricardo Filipe 87d5d882b3 wordpad: Update Portuguese translation and convert to UTF8. 2009-07-17 14:28:11 +02:00
Michael Stefaniuc 0c110597db wordpad: Change some string resource ids to logically group the strings in separate STRINGTABLEs. 2009-07-17 11:22:07 +02:00