toolkit/components/find/nsFindService.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/find/nsFindService.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 + 
     1.9 +/*
    1.10 + * The sole purpose of the Find service is to store globally the
    1.11 + * last used Find settings
    1.12 + *
    1.13 + */
    1.14 + 
    1.15 +#include "nsString.h"
    1.16 +
    1.17 +#include "nsIFindService.h"
    1.18 +
    1.19 +
    1.20 +// {5060b803-340e-11d5-be5b-b3e063ec6a3c}
    1.21 +#define NS_FIND_SERVICE_CID \
    1.22 + {0x5060b803, 0x340e, 0x11d5, {0xbe, 0x5b, 0xb3, 0xe0, 0x63, 0xec, 0x6a, 0x3c}}
    1.23 +
    1.24 +
    1.25 +#define NS_FIND_SERVICE_CONTRACTID \
    1.26 + "@mozilla.org/find/find_service;1"
    1.27 +
    1.28 +
    1.29 +class nsFindService : public nsIFindService
    1.30 +{
    1.31 +public:
    1.32 +
    1.33 +                      nsFindService();
    1.34 +  virtual             ~nsFindService();
    1.35 +
    1.36 +  NS_DECL_ISUPPORTS
    1.37 +  NS_DECL_NSIFINDSERVICE
    1.38 + 
    1.39 +protected:
    1.40 +
    1.41 +  nsString        mSearchString;
    1.42 +  nsString        mReplaceString;
    1.43 +  
    1.44 +  bool            mFindBackwards;
    1.45 +  bool            mWrapFind;
    1.46 +  bool            mEntireWord;
    1.47 +  bool            mMatchCase;
    1.48 +};

mercurial