/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ Components.utils.import("resource://calendar/modules/calUtils.jsm"); Components.utils.import("resource://gre/modules/Preferences.jsm"); EXPORTED_SYMBOLS = ["cal"]; // even though it's defined in calUtils.jsm, import needs this cal.print = { /** * Returns a simple key in the format YYYY-MM-DD for use in the table of * dates to day boxes * * @param dt The date to translate * @return YYYY-MM-DD */ getDateKey: function getDateKey(dt) { return dt.year + "-" + dt.month + "-" + dt.day; }, /** * Add category styles to the document's "sheet" element. This is needed * since the HTML created is serialized, so we can't dynamically set the * styles and can be changed if the print formatter decides to return a * DOM document instead. * * @param document The document that contains