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/. */
6 #ifndef _nshtmlobjectresizer__h
7 #define _nshtmlobjectresizer__h
9 #include "nsIDOMEventListener.h"
10 #include "nsISelectionListener.h"
11 #include "nsISupportsImpl.h"
12 #include "nsIWeakReferenceUtils.h"
13 #include "nsLiteralString.h"
17 #define kTopLeft NS_LITERAL_STRING("nw")
18 #define kTop NS_LITERAL_STRING("n")
19 #define kTopRight NS_LITERAL_STRING("ne")
20 #define kLeft NS_LITERAL_STRING("w")
21 #define kRight NS_LITERAL_STRING("e")
22 #define kBottomLeft NS_LITERAL_STRING("sw")
23 #define kBottom NS_LITERAL_STRING("s")
24 #define kBottomRight NS_LITERAL_STRING("se")
26 // ==================================================================
27 // ResizerSelectionListener
28 // ==================================================================
30 class ResizerSelectionListener
: public nsISelectionListener
34 explicit ResizerSelectionListener(nsIHTMLEditor
* aEditor
);
37 /*interfaces for addref and release and queryinterface*/
40 NS_DECL_NSISELECTIONLISTENER
43 virtual ~ResizerSelectionListener();
48 // ==================================================================
49 // ResizerMouseMotionListener
50 // ==================================================================
52 class ResizerMouseMotionListener
: public nsIDOMEventListener
55 explicit ResizerMouseMotionListener(nsIHTMLEditor
* aEditor
);
57 /*interfaces for addref and release and queryinterface*/
60 NS_DECL_NSIDOMEVENTLISTENER
63 virtual ~ResizerMouseMotionListener();
69 // ==================================================================
70 // DocumentResizeEventListener
71 // ==================================================================
73 class DocumentResizeEventListener
: public nsIDOMEventListener
76 explicit DocumentResizeEventListener(nsIHTMLEditor
* aEditor
);
78 /*interfaces for addref and release and queryinterface*/
81 NS_DECL_NSIDOMEVENTLISTENER
84 virtual ~DocumentResizeEventListener();
89 #endif /* _nshtmlobjectresizer__h */