nsIFind.idl 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsISupports.idl"
  6. interface nsIDOMRange;
  7. interface nsIWordBreaker;
  8. [scriptable, uuid(40aba110-2a56-4678-be90-e2c17a9ae7d7)]
  9. interface nsIFind : nsISupports
  10. {
  11. attribute boolean findBackwards;
  12. attribute boolean caseSensitive;
  13. attribute boolean entireWord;
  14. /**
  15. * Find some text in the current context. The implementation is
  16. * responsible for performing the find and highlighting the text.
  17. *
  18. * @param aPatText The text to search for.
  19. * @param aSearchRange A Range specifying domain of search.
  20. * @param aStartPoint A Range specifying search start point.
  21. * If not collapsed, we'll start from
  22. * end (forward) or start (backward).
  23. * @param aEndPoint A Range specifying search end point.
  24. * If not collapsed, we'll end at
  25. * end (forward) or start (backward).
  26. * @retval A range spanning the match that was found (or null).
  27. */
  28. nsIDOMRange Find(in AString aPatText, in nsIDOMRange aSearchRange,
  29. in nsIDOMRange aStartPoint, in nsIDOMRange aEndPoint);
  30. };