https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b6b7bda44328c9fd5d9c1…
commit b6b7bda44328c9fd5d9c1e94a9042723209b80c2
Author: Doug Lyons <douglyons(a)douglyons.com>
AuthorDate: Sat Oct 5 09:32:49 2019 -0500
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sat Oct 5 16:32:49 2019 +0200
Shell Find Improvements to make Search Item general and Show Sub-directories (#1927)
* Shell Find Improvement to make Search Item general by adding asterisks before and after before search and show sub-directories in find listing. CORE-16152
---
dll/win32/browseui/shellfind/CFindFolder.cpp | 6 ++++++
dll/win32/browseui/shellfind/CSearchBar.cpp | 28 ++++++++++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/dll/win32/browseui/shellfind/CFindFolder.cpp b/dll/win32/browseui/shellfind/CFindFolder.cpp
index 0a2aec890ac..4db35f633b3 100644
--- a/dll/win32/browseui/shellfind/CFindFolder.cpp
+++ b/dll/win32/browseui/shellfind/CFindFolder.cpp
@@ -260,6 +260,12 @@ static UINT RecursiveFind(LPCWSTR lpPath, _SearchData *pSearchData)
if (FindData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{
CStringW status;
+ if ((pSearchData->szFileName.IsEmpty() || PathMatchSpecW(FindData.cFileName, pSearchData->szFileName))
+ && (pSearchData->szQueryA.IsEmpty() || SearchFile(szPath, pSearchData)))
+ {
+ PostMessageW(pSearchData->hwnd, WM_SEARCH_ADD_RESULT, 0, (LPARAM) StrDupW(szPath));
+ uTotalFound++;
+ }
status.Format(IDS_SEARCH_FOLDER, FindData.cFileName);
PostMessageW(pSearchData->hwnd, WM_SEARCH_UPDATE_STATUS, 0, (LPARAM) StrDupW(status.GetBuffer()));
diff --git a/dll/win32/browseui/shellfind/CSearchBar.cpp b/dll/win32/browseui/shellfind/CSearchBar.cpp
index 6d486cec370..5e7117193d4 100644
--- a/dll/win32/browseui/shellfind/CSearchBar.cpp
+++ b/dll/win32/browseui/shellfind/CSearchBar.cpp
@@ -122,6 +122,10 @@ HRESULT CSearchBar::GetSearchResultsFolder(IShellBrowser **ppShellBrowser, HWND
LRESULT CSearchBar::OnSearchButtonClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
+ size_t len = 0;
+ WCHAR endchar;
+ WCHAR startchar;
+
CComHeapPtr<SearchStart> pSearchStart(static_cast<SearchStart *>(CoTaskMemAlloc(sizeof(SearchStart))));
GetDlgItemText(IDC_SEARCH_FILENAME, pSearchStart->szFileName, _countof(pSearchStart->szFileName));
GetDlgItemText(IDC_SEARCH_QUERY, pSearchStart->szQuery, _countof(pSearchStart->szQuery));
@@ -131,6 +135,30 @@ LRESULT CSearchBar::OnSearchButtonClicked(WORD wNotifyCode, WORD wID, HWND hWndC
return 0;
}
+ // See if we have an szFileName by testing for its entry lenth > 0 and our searched FileName does not contain
+ // an asterisk or a question mark. If so, then prepend and append an asterisk to the searched FileName.
+ // (i.e. it's equivalent to searching for *<the_file_name>* )
+ if (FAILED (StringCchLengthW (pSearchStart->szFileName, MAX_PATH, &len))) return 0;
+ if ((len > 0) && !wcspbrk(pSearchStart->szFileName, L"*?"))
+ {
+ endchar = pSearchStart->szFileName[len - 1];
+ startchar = pSearchStart->szFileName[0];
+ if ((len < MAX_PATH - 1) && (startchar != L'*'))
+ {
+ memmove(&pSearchStart->szFileName[1], &pSearchStart->szFileName[0],
+ len * sizeof(WCHAR) + sizeof(WCHAR));
+ len = len + 1;
+ pSearchStart->szFileName[0] = L'*';
+ }
+
+ // See if our last character is an asterisk and if not and we have room then add one
+ if ((len < MAX_PATH - 1) && (endchar != L'*'))
+ StringCchCatW(pSearchStart->szFileName, MAX_PATH, L"*");
+ }
+
+ // Print our final search string for szFileName
+ TRACE("Searched szFileName is '%S'.\n", pSearchStart->szFileName);
+
CComPtr<IShellBrowser> pShellBrowser;
HRESULT hr = IUnknown_QueryService(m_pSite, SID_SShellBrowser, IID_PPV_ARG(IShellBrowser, &pShellBrowser));
if (FAILED_UNEXPECTEDLY(hr))
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f45dd6577321355752e29…
commit f45dd6577321355752e29ccd5f49039cfdaa761e
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Oct 3 22:36:05 2019 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Oct 3 22:36:05 2019 +0900
[MEDIA][FONTS] Replace 'Verdana' fonts CORE-16400 (#1948)
CORE-16400
- Replace "Verdana", "Verdana Bold", "Verdana Bold Italic" and "Verdana Italic" fonts by duplicating "DejaVu Sans" fonts and renaming them.
- Replace LICENSE file.
I made these font files by using FontForge. Their family name is "Verdana". Their display names are "Verdana", "Verdana Bold", "Verdana Bold Italic" and "Verdana Italic". Their font filenames are verdana.ttf, verdanab.ttf, verdanaz.ttf and verdanai.ttf. The Underline Positions are hacked by adding an integer value for workaround of FontForge's bug.
---
media/fonts/doc/Verdana/COPYRIGHT.TXT | 124 ----------------------
media/fonts/doc/Verdana/LICENSE.txt | 187 ++++++++++++++++++++++++++++++++++
media/fonts/doc/Verdana/README.txt | 4 +-
media/fonts/verdana.ttf | Bin 38412 -> 571444 bytes
media/fonts/verdanab.ttf | Bin 36204 -> 564632 bytes
media/fonts/verdanai.ttf | Bin 34016 -> 524184 bytes
media/fonts/verdanaz.ttf | Bin 37124 -> 534876 bytes
7 files changed, 189 insertions(+), 126 deletions(-)
diff --git a/media/fonts/doc/Verdana/COPYRIGHT.TXT b/media/fonts/doc/Verdana/COPYRIGHT.TXT
deleted file mode 100644
index e651be1c4fe..00000000000
--- a/media/fonts/doc/Verdana/COPYRIGHT.TXT
+++ /dev/null
@@ -1,124 +0,0 @@
-Bitstream Vera Fonts Copyright
-
-The fonts have a generous copyright, allowing derivative works (as
-long as "Bitstream" or "Vera" are not in the names), and full
-redistribution (so long as they are not *sold* by themselves). They
-can be be bundled, redistributed and sold with any software.
-
-The fonts are distributed under the following copyright:
-
-Copyright
-=========
-
-Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream
-Vera is a trademark of Bitstream, Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of the fonts accompanying this license ("Fonts") and associated
-documentation files (the "Font Software"), to reproduce and distribute
-the Font Software, including without limitation the rights to use,
-copy, merge, publish, distribute, and/or sell copies of the Font
-Software, and to permit persons to whom the Font Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright and trademark notices and this permission notice
-shall be included in all copies of one or more of the Font Software
-typefaces.
-
-The Font Software may be modified, altered, or added to, and in
-particular the designs of glyphs or characters in the Fonts may be
-modified and additional glyphs or characters may be added to the
-Fonts, only if the fonts are renamed to names not containing either
-the words "Bitstream" or the word "Vera".
-
-This License becomes null and void to the extent applicable to Fonts
-or Font Software that has been modified and is distributed under the
-"Bitstream Vera" names.
-
-The Font Software may be sold as part of a larger software package but
-no copy of one or more of the Font Software typefaces may be sold by
-itself.
-
-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL
-BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR
-OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL,
-OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT
-SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
-
-Except as contained in this notice, the names of Gnome, the Gnome
-Foundation, and Bitstream Inc., shall not be used in advertising or
-otherwise to promote the sale, use or other dealings in this Font
-Software without prior written authorization from the Gnome Foundation
-or Bitstream Inc., respectively. For further information, contact:
-fonts at gnome dot org.
-
-Copyright FAQ
-=============
-
- 1. I don't understand the resale restriction... What gives?
-
- Bitstream is giving away these fonts, but wishes to ensure its
- competitors can't just drop the fonts as is into a font sale system
- and sell them as is. It seems fair that if Bitstream can't make money
- from the Bitstream Vera fonts, their competitors should not be able to
- do so either. You can sell the fonts as part of any software package,
- however.
-
- 2. I want to package these fonts separately for distribution and
- sale as part of a larger software package or system. Can I do so?
-
- Yes. A RPM or Debian package is a "larger software package" to begin
- with, and you aren't selling them independently by themselves.
- See 1. above.
-
- 3. Are derivative works allowed?
- Yes!
-
- 4. Can I change or add to the font(s)?
- Yes, but you must change the name(s) of the font(s).
-
- 5. Under what terms are derivative works allowed?
-
- You must change the name(s) of the fonts. This is to ensure the
- quality of the fonts, both to protect Bitstream and Gnome. We want to
- ensure that if an application has opened a font specifically of these
- names, it gets what it expects (though of course, using fontconfig,
- substitutions could still could have occurred during font
- opening). You must include the Bitstream copyright. Additional
- copyrights can be added, as per copyright law. Happy Font Hacking!
-
- 6. If I have improvements for Bitstream Vera, is it possible they might get
- adopted in future versions?
-
- Yes. The contract between the Gnome Foundation and Bitstream has
- provisions for working with Bitstream to ensure quality additions to
- the Bitstream Vera font family. Please contact us if you have such
- additions. Note, that in general, we will want such additions for the
- entire family, not just a single font, and that you'll have to keep
- both Gnome and Jim Lyles, Vera's designer, happy! To make sense to add
- glyphs to the font, they must be stylistically in keeping with Vera's
- design. Vera cannot become a "ransom note" font. Jim Lyles will be
- providing a document describing the design elements used in Vera, as a
- guide and aid for people interested in contributing to Vera.
-
- 7. I want to sell a software package that uses these fonts: Can I do so?
-
- Sure. Bundle the fonts with your software and sell your software
- with the fonts. That is the intent of the copyright.
-
- 8. If applications have built the names "Bitstream Vera" into them,
- can I override this somehow to use fonts of my choosing?
-
- This depends on exact details of the software. Most open source
- systems and software (e.g., Gnome, KDE, etc.) are now converting to
- use fontconfig (see www.fontconfig.org) to handle font configuration,
- selection and substitution; it has provisions for overriding font
- names and subsituting alternatives. An example is provided by the
- supplied local.conf file, which chooses the family Bitstream Vera for
- "sans", "serif" and "monospace". Other software (e.g., the XFree86
- core server) has other mechanisms for font substitution.
-
diff --git a/media/fonts/doc/Verdana/LICENSE.txt b/media/fonts/doc/Verdana/LICENSE.txt
new file mode 100644
index 00000000000..df52c1709be
--- /dev/null
+++ b/media/fonts/doc/Verdana/LICENSE.txt
@@ -0,0 +1,187 @@
+Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
+Glyphs imported from Arev fonts are (c) Tavmjong Bah (see below)
+
+
+Bitstream Vera Fonts Copyright
+------------------------------
+
+Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is
+a trademark of Bitstream, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of the fonts accompanying this license ("Fonts") and associated
+documentation files (the "Font Software"), to reproduce and distribute the
+Font Software, including without limitation the rights to use, copy, merge,
+publish, distribute, and/or sell copies of the Font Software, and to permit
+persons to whom the Font Software is furnished to do so, subject to the
+following conditions:
+
+The above copyright and trademark notices and this permission notice shall
+be included in all copies of one or more of the Font Software typefaces.
+
+The Font Software may be modified, altered, or added to, and in particular
+the designs of glyphs or characters in the Fonts may be modified and
+additional glyphs or characters may be added to the Fonts, only if the fonts
+are renamed to names not containing either the words "Bitstream" or the word
+"Vera".
+
+This License becomes null and void to the extent applicable to Fonts or Font
+Software that has been modified and is distributed under the "Bitstream
+Vera" names.
+
+The Font Software may be sold as part of a larger software package but no
+copy of one or more of the Font Software typefaces may be sold by itself.
+
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
+TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
+FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
+ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
+FONT SOFTWARE.
+
+Except as contained in this notice, the names of Gnome, the Gnome
+Foundation, and Bitstream Inc., shall not be used in advertising or
+otherwise to promote the sale, use or other dealings in this Font Software
+without prior written authorization from the Gnome Foundation or Bitstream
+Inc., respectively. For further information, contact: fonts at gnome dot
+org.
+
+Arev Fonts Copyright
+------------------------------
+
+Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the fonts accompanying this license ("Fonts") and
+associated documentation files (the "Font Software"), to reproduce
+and distribute the modifications to the Bitstream Vera Font Software,
+including without limitation the rights to use, copy, merge, publish,
+distribute, and/or sell copies of the Font Software, and to permit
+persons to whom the Font Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright and trademark notices and this permission notice
+shall be included in all copies of one or more of the Font Software
+typefaces.
+
+The Font Software may be modified, altered, or added to, and in
+particular the designs of glyphs or characters in the Fonts may be
+modified and additional glyphs or characters may be added to the
+Fonts, only if the fonts are renamed to names not containing either
+the words "Tavmjong Bah" or the word "Arev".
+
+This License becomes null and void to the extent applicable to Fonts
+or Font Software that has been modified and is distributed under the
+"Tavmjong Bah Arev" names.
+
+The Font Software may be sold as part of a larger software package but
+no copy of one or more of the Font Software typefaces may be sold by
+itself.
+
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL
+TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
+
+Except as contained in this notice, the name of Tavmjong Bah shall not
+be used in advertising or otherwise to promote the sale, use or other
+dealings in this Font Software without prior written authorization
+from Tavmjong Bah. For further information, contact: tavmjong @ free
+. fr.
+
+TeX Gyre DJV Math
+-----------------
+Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
+
+Math extensions done by B. Jackowski, P. Strzelczyk and P. Pianowski
+(on behalf of TeX users groups) are in public domain.
+
+Letters imported from Euler Fraktur from AMSfonts are (c) American
+Mathematical Society (see below).
+Bitstream Vera Fonts Copyright
+Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera
+is a trademark of Bitstream, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of the fonts accompanying this license (“Fonts”) and associated
+documentation
+files (the “Font Software”), to reproduce and distribute the Font Software,
+including without limitation the rights to use, copy, merge, publish,
+distribute,
+and/or sell copies of the Font Software, and to permit persons to whom
+the Font Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright and trademark notices and this permission notice
+shall be
+included in all copies of one or more of the Font Software typefaces.
+
+The Font Software may be modified, altered, or added to, and in particular
+the designs of glyphs or characters in the Fonts may be modified and
+additional
+glyphs or characters may be added to the Fonts, only if the fonts are
+renamed
+to names not containing either the words “Bitstream” or the word “Vera”.
+
+This License becomes null and void to the extent applicable to Fonts or
+Font Software
+that has been modified and is distributed under the “Bitstream Vera”
+names.
+
+The Font Software may be sold as part of a larger software package but
+no copy
+of one or more of the Font Software typefaces may be sold by itself.
+
+THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
+TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
+FOUNDATION
+BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL,
+SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN
+ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR
+INABILITY TO USE
+THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
+Except as contained in this notice, the names of GNOME, the GNOME
+Foundation,
+and Bitstream Inc., shall not be used in advertising or otherwise to promote
+the sale, use or other dealings in this Font Software without prior written
+authorization from the GNOME Foundation or Bitstream Inc., respectively.
+For further information, contact: fonts at gnome dot org.
+
+AMSFonts (v. 2.2) copyright
+
+The PostScript Type 1 implementation of the AMSFonts produced by and
+previously distributed by Blue Sky Research and Y&Y, Inc. are now freely
+available for general use. This has been accomplished through the
+cooperation
+of a consortium of scientific publishers with Blue Sky Research and Y&Y.
+Members of this consortium include:
+
+Elsevier Science IBM Corporation Society for Industrial and Applied
+Mathematics (SIAM) Springer-Verlag American Mathematical Society (AMS)
+
+In order to assure the authenticity of these fonts, copyright will be
+held by
+the American Mathematical Society. This is not meant to restrict in any way
+the legitimate use of the fonts, such as (but not limited to) electronic
+distribution of documents containing these fonts, inclusion of these fonts
+into other public domain or commercial font collections or computer
+applications, use of the outline data to create derivative fonts and/or
+faces, etc. However, the AMS does require that the AMS copyright notice be
+removed from any derivative versions of the fonts which have been altered in
+any way. In addition, to ensure the fidelity of TeX documents using Computer
+Modern fonts, Professor Donald Knuth, creator of the Computer Modern faces,
+has requested that any alterations which yield different font metrics be
+given a different name.
+
+$Id$
diff --git a/media/fonts/doc/Verdana/README.txt b/media/fonts/doc/Verdana/README.txt
index 365bc5eb550..699f1935dfc 100644
--- a/media/fonts/doc/Verdana/README.txt
+++ b/media/fonts/doc/Verdana/README.txt
@@ -1,3 +1,3 @@
-ReactOS Verdana fonts are based on "Bitstream Vera Sans" fonts.
+ReactOS "Verdana" fonts are based on "DejaVu Sans".
-See also COPYRIGHT.TXT.
+See also LICENSE.txt file.
diff --git a/media/fonts/verdana.ttf b/media/fonts/verdana.ttf
index 1a55bafcf3c..a23ffa1df93 100644
Binary files a/media/fonts/verdana.ttf and b/media/fonts/verdana.ttf differ
diff --git a/media/fonts/verdanab.ttf b/media/fonts/verdanab.ttf
index 7b56d8f2783..3a1f9cb279e 100644
Binary files a/media/fonts/verdanab.ttf and b/media/fonts/verdanab.ttf differ
diff --git a/media/fonts/verdanai.ttf b/media/fonts/verdanai.ttf
index 2b7628696e8..426dda189c4 100644
Binary files a/media/fonts/verdanai.ttf and b/media/fonts/verdanai.ttf differ
diff --git a/media/fonts/verdanaz.ttf b/media/fonts/verdanaz.ttf
index f1a96c4f128..8db4676d67c 100644
Binary files a/media/fonts/verdanaz.ttf and b/media/fonts/verdanaz.ttf differ