mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Initial checkin of files.
This commit is contained in:
parent
279d01c6be
commit
78383c59cf
53
editor/libeditor/txtsvc/nsITextService.h
Normal file
53
editor/libeditor/txtsvc/nsITextService.h
Normal file
@ -0,0 +1,53 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef nsITextService_h__
|
||||
#define nsITextService_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
|
||||
class nsITextServicesDocument;
|
||||
|
||||
/*
|
||||
TextService interface to outside world
|
||||
*/
|
||||
|
||||
#define NS_ITEXTSERVICE_IID \
|
||||
{ /* 019718E0-CDB5-11d2-8D3C-000000000000 */ \
|
||||
0x019718e0, 0xcdb5, 0x11d2, \
|
||||
{ 0x8d, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class nsITextService : public nsISupports{
|
||||
public:
|
||||
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_ITEXTSERVICE_IID; return iid; }
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD Init(nsITextServicesDocument *aDoc) = 0;
|
||||
NS_IMETHOD Execute() = 0;
|
||||
NS_IMETHOD GetMenuString(nsString &aString) = 0;
|
||||
};
|
||||
|
||||
#endif // nsITextService_h__
|
||||
|
116
editor/libeditor/txtsvc/nsITextServicesDocument.h
Normal file
116
editor/libeditor/txtsvc/nsITextServicesDocument.h
Normal file
@ -0,0 +1,116 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef nsITextServicesDocument_h__
|
||||
#define nsITextServicesDocument_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
|
||||
class nsIDOMDocument;
|
||||
class nsIPresShell;
|
||||
class nsIEditor;
|
||||
class nsString;
|
||||
|
||||
/*
|
||||
TextServicesDocument interface to outside world
|
||||
*/
|
||||
|
||||
#define NS_ITEXTSERVICESDOCUMENT_IID \
|
||||
{ /* 019718E1-CDB5-11d2-8D3C-000000000000 */ \
|
||||
0x019718e1, 0xcdb5, 0x11d2, \
|
||||
{ 0x8d, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
|
||||
/**
|
||||
* A text services specific interface.
|
||||
* <P>
|
||||
* It's implemented by an object that executes some behavior that must be
|
||||
* tracked by the transaction manager.
|
||||
*/
|
||||
class nsITextServicesDocument : public nsISupports{
|
||||
public:
|
||||
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_ITEXTSERVICESDOCUMENT_IID; return iid; }
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD Init(nsIDOMDocument *aDOMDocument, nsIPresShell *aPresShell) = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetEditor(nsIEditor *aEditor) = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD GetCurrentTextBlock(nsString *aStr) = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD FirstBlock() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD LastBlock() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD PrevBlock() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD NextBlock() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD IsDone() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD SetSelection(PRInt32 aOffset, PRInt32 aLength) = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD DeleteSelection() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD InsertText(const nsString *aText) = 0;
|
||||
};
|
||||
|
||||
#endif // nsITextServicesDocument_h__
|
||||
|
37
editor/libeditor/txtsvc/nsTextServicesCID.h
Normal file
37
editor/libeditor/txtsvc/nsTextServicesCID.h
Normal file
@ -0,0 +1,37 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef nsTextServicesCID_h__
|
||||
#define nsTextServicesCID_h__
|
||||
|
||||
#define NS_TEXTSERVICESDOCUMENTINTERNAL_CID \
|
||||
{ /* 019718E2-CDB5-11d2-8D3C-000000000000 */ \
|
||||
0x019718e2, 0xcdb5, 0x11d2, \
|
||||
{ 0x8d, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
#define NS_TEXTSERVICESDOCUMENT_CID \
|
||||
{ /* 019718E3-CDB5-11d2-8D3C-000000000000 */ \
|
||||
0x019718e3, 0xcdb5, 0x11d2, \
|
||||
{ 0x8d, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
#define NS_TEXTSERVICE_CID \
|
||||
{ /* 019718E4-CDB5-11d2-8D3C-000000000000 */ \
|
||||
0x019718e4, 0xcdb5, 0x11d2, \
|
||||
{ 0x8d, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
#endif /* nsTextServicesCID_h__ */
|
7
editor/txtsvc/public/MANIFEST
Normal file
7
editor/txtsvc/public/MANIFEST
Normal file
@ -0,0 +1,7 @@
|
||||
#
|
||||
# This is a list of local files which get copied to the mozilla:dist:editor directory
|
||||
#
|
||||
|
||||
nsITextService.h
|
||||
nsITextServicesDocument.h
|
||||
nsTextServicesCID.h
|
40
editor/txtsvc/public/Makefile.in
Normal file
40
editor/txtsvc/public/Makefile.in
Normal file
@ -0,0 +1,40 @@
|
||||
#!gmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
DEPTH=../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DEFINES =
|
||||
|
||||
EXPORTS = \
|
||||
nsITextService.h \
|
||||
nsITextServicesDocument.h \
|
||||
nsITextServicesDocumentInternal.h \
|
||||
nsTextServicesCID.h \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
||||
MODULE = txtsvc
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
31
editor/txtsvc/public/makefile.win
Normal file
31
editor/txtsvc/public/makefile.win
Normal file
@ -0,0 +1,31 @@
|
||||
#!nmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
DEPTH=..\..\..
|
||||
IGNORE_MANIFEST=1
|
||||
|
||||
EXPORTS = \
|
||||
nsITextService.h \
|
||||
nsITextServicesDocument.h \
|
||||
nsITextServicesDocumentInternal.h \
|
||||
nsTextServicesCID.h \
|
||||
$(NULL)
|
||||
|
||||
MODULE = txtsvc
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
53
editor/txtsvc/public/nsITextService.h
Normal file
53
editor/txtsvc/public/nsITextService.h
Normal file
@ -0,0 +1,53 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef nsITextService_h__
|
||||
#define nsITextService_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
|
||||
class nsITextServicesDocument;
|
||||
|
||||
/*
|
||||
TextService interface to outside world
|
||||
*/
|
||||
|
||||
#define NS_ITEXTSERVICE_IID \
|
||||
{ /* 019718E0-CDB5-11d2-8D3C-000000000000 */ \
|
||||
0x019718e0, 0xcdb5, 0x11d2, \
|
||||
{ 0x8d, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class nsITextService : public nsISupports{
|
||||
public:
|
||||
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_ITEXTSERVICE_IID; return iid; }
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD Init(nsITextServicesDocument *aDoc) = 0;
|
||||
NS_IMETHOD Execute() = 0;
|
||||
NS_IMETHOD GetMenuString(nsString &aString) = 0;
|
||||
};
|
||||
|
||||
#endif // nsITextService_h__
|
||||
|
116
editor/txtsvc/public/nsITextServicesDocument.h
Normal file
116
editor/txtsvc/public/nsITextServicesDocument.h
Normal file
@ -0,0 +1,116 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef nsITextServicesDocument_h__
|
||||
#define nsITextServicesDocument_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
|
||||
class nsIDOMDocument;
|
||||
class nsIPresShell;
|
||||
class nsIEditor;
|
||||
class nsString;
|
||||
|
||||
/*
|
||||
TextServicesDocument interface to outside world
|
||||
*/
|
||||
|
||||
#define NS_ITEXTSERVICESDOCUMENT_IID \
|
||||
{ /* 019718E1-CDB5-11d2-8D3C-000000000000 */ \
|
||||
0x019718e1, 0xcdb5, 0x11d2, \
|
||||
{ 0x8d, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
|
||||
/**
|
||||
* A text services specific interface.
|
||||
* <P>
|
||||
* It's implemented by an object that executes some behavior that must be
|
||||
* tracked by the transaction manager.
|
||||
*/
|
||||
class nsITextServicesDocument : public nsISupports{
|
||||
public:
|
||||
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_ITEXTSERVICESDOCUMENT_IID; return iid; }
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD Init(nsIDOMDocument *aDOMDocument, nsIPresShell *aPresShell) = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetEditor(nsIEditor *aEditor) = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD GetCurrentTextBlock(nsString *aStr) = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD FirstBlock() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD LastBlock() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD PrevBlock() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD NextBlock() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD IsDone() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD SetSelection(PRInt32 aOffset, PRInt32 aLength) = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD DeleteSelection() = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
NS_IMETHOD InsertText(const nsString *aText) = 0;
|
||||
};
|
||||
|
||||
#endif // nsITextServicesDocument_h__
|
||||
|
37
editor/txtsvc/public/nsTextServicesCID.h
Normal file
37
editor/txtsvc/public/nsTextServicesCID.h
Normal file
@ -0,0 +1,37 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef nsTextServicesCID_h__
|
||||
#define nsTextServicesCID_h__
|
||||
|
||||
#define NS_TEXTSERVICESDOCUMENTINTERNAL_CID \
|
||||
{ /* 019718E2-CDB5-11d2-8D3C-000000000000 */ \
|
||||
0x019718e2, 0xcdb5, 0x11d2, \
|
||||
{ 0x8d, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
#define NS_TEXTSERVICESDOCUMENT_CID \
|
||||
{ /* 019718E3-CDB5-11d2-8D3C-000000000000 */ \
|
||||
0x019718e3, 0xcdb5, 0x11d2, \
|
||||
{ 0x8d, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
#define NS_TEXTSERVICE_CID \
|
||||
{ /* 019718E4-CDB5-11d2-8D3C-000000000000 */ \
|
||||
0x019718e4, 0xcdb5, 0x11d2, \
|
||||
{ 0x8d, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
#endif /* nsTextServicesCID_h__ */
|
Loading…
x
Reference in New Issue
Block a user