1 /* 2 * SessionPlots.hpp 3 * 4 * Copyright (C) 2021 by RStudio, PBC 5 * 6 * Unless you have received this program directly from RStudio pursuant 7 * to the terms of a commercial license agreement with RStudio, then 8 * this program is licensed to you under the terms of version 3 of the 9 * GNU Affero General Public License. This program is distributed WITHOUT 10 * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, 11 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the 12 * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. 13 * 14 */ 15 16 #ifndef SESSION_PLOTS_HPP 17 #define SESSION_PLOTS_HPP 18 19 #include <core/BoostSignals.hpp> 20 21 namespace rstudio { 22 namespace core { 23 class Error; 24 } 25 } 26 27 namespace rstudio { 28 namespace session { 29 namespace modules { 30 namespace plots { 31 32 bool haveCairoPdf(); 33 34 core::Error initialize(); 35 36 struct Events : boost::noncopyable 37 { 38 RSTUDIO_BOOST_SIGNAL<void()> onBeforeNewPlot; 39 RSTUDIO_BOOST_SIGNAL<void()> onBeforeNewGridPage; 40 RSTUDIO_BOOST_SIGNAL<void()> onNewPlot; 41 }; 42 43 Events& events(); 44 45 } // namespace plots 46 } // namespace modules 47 } // namespace session 48 } // namespace rstudio 49 50 #endif // SESSION_PLOTS_HPP 51