Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | /* |
michael@0 | 7 | * The sole purpose of the Find service is to store globally the |
michael@0 | 8 | * last used Find settings |
michael@0 | 9 | * |
michael@0 | 10 | */ |
michael@0 | 11 | |
michael@0 | 12 | #include "nsString.h" |
michael@0 | 13 | |
michael@0 | 14 | #include "nsIFindService.h" |
michael@0 | 15 | |
michael@0 | 16 | |
michael@0 | 17 | // {5060b803-340e-11d5-be5b-b3e063ec6a3c} |
michael@0 | 18 | #define NS_FIND_SERVICE_CID \ |
michael@0 | 19 | {0x5060b803, 0x340e, 0x11d5, {0xbe, 0x5b, 0xb3, 0xe0, 0x63, 0xec, 0x6a, 0x3c}} |
michael@0 | 20 | |
michael@0 | 21 | |
michael@0 | 22 | #define NS_FIND_SERVICE_CONTRACTID \ |
michael@0 | 23 | "@mozilla.org/find/find_service;1" |
michael@0 | 24 | |
michael@0 | 25 | |
michael@0 | 26 | class nsFindService : public nsIFindService |
michael@0 | 27 | { |
michael@0 | 28 | public: |
michael@0 | 29 | |
michael@0 | 30 | nsFindService(); |
michael@0 | 31 | virtual ~nsFindService(); |
michael@0 | 32 | |
michael@0 | 33 | NS_DECL_ISUPPORTS |
michael@0 | 34 | NS_DECL_NSIFINDSERVICE |
michael@0 | 35 | |
michael@0 | 36 | protected: |
michael@0 | 37 | |
michael@0 | 38 | nsString mSearchString; |
michael@0 | 39 | nsString mReplaceString; |
michael@0 | 40 | |
michael@0 | 41 | bool mFindBackwards; |
michael@0 | 42 | bool mWrapFind; |
michael@0 | 43 | bool mEntireWord; |
michael@0 | 44 | bool mMatchCase; |
michael@0 | 45 | }; |