editor/libeditor/html/nsHTMLObjectResizer.h

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef _nshtmlobjectresizer__h
michael@0 7 #define _nshtmlobjectresizer__h
michael@0 8
michael@0 9 #include "nsIDOMEventListener.h"
michael@0 10 #include "nsISelectionListener.h"
michael@0 11 #include "nsISupportsImpl.h"
michael@0 12 #include "nsIWeakReferenceUtils.h"
michael@0 13 #include "nsLiteralString.h"
michael@0 14
michael@0 15 class nsIHTMLEditor;
michael@0 16
michael@0 17 #define kTopLeft NS_LITERAL_STRING("nw")
michael@0 18 #define kTop NS_LITERAL_STRING("n")
michael@0 19 #define kTopRight NS_LITERAL_STRING("ne")
michael@0 20 #define kLeft NS_LITERAL_STRING("w")
michael@0 21 #define kRight NS_LITERAL_STRING("e")
michael@0 22 #define kBottomLeft NS_LITERAL_STRING("sw")
michael@0 23 #define kBottom NS_LITERAL_STRING("s")
michael@0 24 #define kBottomRight NS_LITERAL_STRING("se")
michael@0 25
michael@0 26 // ==================================================================
michael@0 27 // ResizerSelectionListener
michael@0 28 // ==================================================================
michael@0 29
michael@0 30 class ResizerSelectionListener : public nsISelectionListener
michael@0 31 {
michael@0 32 public:
michael@0 33
michael@0 34 ResizerSelectionListener(nsIHTMLEditor * aEditor);
michael@0 35 void Reset();
michael@0 36 virtual ~ResizerSelectionListener();
michael@0 37
michael@0 38 /*interfaces for addref and release and queryinterface*/
michael@0 39 NS_DECL_ISUPPORTS
michael@0 40
michael@0 41 NS_DECL_NSISELECTIONLISTENER
michael@0 42
michael@0 43 protected:
michael@0 44
michael@0 45 nsWeakPtr mEditor;
michael@0 46 };
michael@0 47
michael@0 48 // ==================================================================
michael@0 49 // ResizerMouseMotionListener
michael@0 50 // ==================================================================
michael@0 51
michael@0 52 class ResizerMouseMotionListener : public nsIDOMEventListener
michael@0 53 {
michael@0 54 public:
michael@0 55 ResizerMouseMotionListener(nsIHTMLEditor * aEditor);
michael@0 56 virtual ~ResizerMouseMotionListener();
michael@0 57
michael@0 58
michael@0 59 /*interfaces for addref and release and queryinterface*/
michael@0 60 NS_DECL_ISUPPORTS
michael@0 61
michael@0 62 NS_DECL_NSIDOMEVENTLISTENER
michael@0 63
michael@0 64 protected:
michael@0 65 nsWeakPtr mEditor;
michael@0 66
michael@0 67 };
michael@0 68
michael@0 69 // ==================================================================
michael@0 70 // DocumentResizeEventListener
michael@0 71 // ==================================================================
michael@0 72
michael@0 73 class DocumentResizeEventListener: public nsIDOMEventListener
michael@0 74 {
michael@0 75 public:
michael@0 76 DocumentResizeEventListener(nsIHTMLEditor * aEditor);
michael@0 77 virtual ~DocumentResizeEventListener();
michael@0 78
michael@0 79 /*interfaces for addref and release and queryinterface*/
michael@0 80 NS_DECL_ISUPPORTS
michael@0 81
michael@0 82 NS_DECL_NSIDOMEVENTLISTENER
michael@0 83
michael@0 84 protected:
michael@0 85 nsWeakPtr mEditor;
michael@0 86
michael@0 87 };
michael@0 88
michael@0 89 #endif /* _nshtmlobjectresizer__h */

mercurial