michael@0: /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: /** michael@0: * The nsITextScroll is an interface that can be implemented by a control that michael@0: * supports text scrolling. michael@0: */ michael@0: michael@0: [scriptable, uuid(067B28A0-877F-11d3-AF7E-00A024FFC08C)] michael@0: interface nsITextScroll : nsISupports michael@0: { michael@0: /** michael@0: * Scroll the view up or down by aNumLines lines. positive michael@0: * values move down in the view. Prevents scrolling off the michael@0: * end of the view. michael@0: * @param numLines number of lines to scroll the view by michael@0: */ michael@0: void scrollByLines(in long numLines); michael@0: michael@0: /** michael@0: * Scroll the view up or down by numPages pages. a page michael@0: * is considered to be the amount displayed by the clip view. michael@0: * positive values move down in the view. Prevents scrolling michael@0: * off the end of the view. michael@0: * @param numPages number of pages to scroll the view by michael@0: */ michael@0: void scrollByPages(in long numPages); michael@0: };