1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/txtsvc/public/nsITextService.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 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 +#ifndef nsITextService_h__ 1.10 +#define nsITextService_h__ 1.11 + 1.12 +#include "nsISupports.h" 1.13 + 1.14 +class nsITextServicesDocument; 1.15 + 1.16 +/* 1.17 +TextService interface to outside world 1.18 +*/ 1.19 + 1.20 +#define NS_ITEXTSERVICE_IID \ 1.21 +{ /* 019718E0-CDB5-11d2-8D3C-000000000000 */ \ 1.22 +0x019718e0, 0xcdb5, 0x11d2, \ 1.23 +{ 0x8d, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } } 1.24 + 1.25 + 1.26 +/** 1.27 + * 1.28 + */ 1.29 +class nsITextService : public nsISupports{ 1.30 +public: 1.31 + 1.32 + NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITEXTSERVICE_IID) 1.33 + 1.34 + /** 1.35 + * 1.36 + */ 1.37 + NS_IMETHOD Init(nsITextServicesDocument *aDoc) = 0; 1.38 + NS_IMETHOD Execute() = 0; 1.39 + NS_IMETHOD GetMenuString(nsString &aString) = 0; 1.40 +}; 1.41 + 1.42 +NS_DEFINE_STATIC_IID_ACCESSOR(nsITextService, NS_ITEXTSERVICE_IID) 1.43 + 1.44 +#endif // nsITextService_h__ 1.45 +