Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BaseModule"/> class.
        /// </summary>
        /// <param name="manager">The Live Editing manager.</param>
        public BaseModule(LiveEditingManager manager)
        {
            if (manager == null)
                throw new ArgumentNullException("manager");
            if (!manager.LiveEditingContext.Enabled)
                throw new ApplicationException("Live Editing is not enabled.");

            Manager = manager;
            Manager.MessageReceived += Manager_MessageReceived;
        }
        /// <summary>
        /// Creates a new default toolbar for the specified manager.
        /// </summary>
        /// <param name="manager">The manager.</param>
        public LiveEditingToolbar(LiveEditingManager manager)
        {
            if (manager == null)
                throw new ArgumentNullException("manager");

            m_Manager = manager;

            if (!UmbracoContext.Current.LiveEditingContext.InSkinningMode)
            {
                AddModules();
            }
            else
            {
                AddSkinningModules();
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Creates a new default toolbar for the specified manager.
        /// </summary>
        /// <param name="manager">The manager.</param>
        public LiveEditingToolbar(LiveEditingManager manager)
        {
            if (manager == null)
            {
                throw new ArgumentNullException("manager");
            }

            m_Manager = manager;

            if (!UmbracoContext.Current.LiveEditingContext.InSkinningMode)
            {
                AddModules();
            }
            else
            {
                AddSkinningModules();
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Creates a new default toolbar for the specified manager.
        /// </summary>
        /// <param name="manager">The manager.</param>
        public LiveEditingToolbar(LiveEditingManager manager)
        {
            if (manager == null)
                throw new ArgumentNullException("manager");

            m_Manager = manager;

            //Triphulcas handler, in order to set article's title as the content name
            Document.AfterSave += Document_AfterSave;

            if (!UmbracoContext.Current.LiveEditingContext.InSkinningMode)
            {
                AddModules();
            }
            else
            {
                AddSkinningModules();
            }
        }
Esempio n. 5
0
        /// <summary>
        /// Creates a new default toolbar for the specified manager.
        /// </summary>
        /// <param name="manager">The manager.</param>
        public LiveEditingToolbar(LiveEditingManager manager)
        {
            if (manager == null)
            {
                throw new ArgumentNullException("manager");
            }

            m_Manager = manager;

            //Triphulcas handler, in order to set article's title as the content name
            Document.AfterSave += Document_AfterSave;

            if (!UmbracoContext.Current.LiveEditingContext.InSkinningMode)
            {
                AddModules();
            }
            else
            {
                AddSkinningModules();
            }
        }
Esempio n. 6
0
        //private ImageButton m_MacroButton = new ImageButton();
        //private DropDownList m_MacroDropDown = new DropDownList();
        //private DropDownList m_ContainerDropDown = new DropDownList();
        //private List<Panel> containers = new List<Panel>();
        //private Button m_AddMacroButton = new Button();
        //private Panel m_MacroModal = new Panel();
        //private Panel m_AddMacroStep2 = new Panel();
        //private macroParameterControl m_MacroParameter = new macroParameterControl();

        public MacroModule(LiveEditingManager manager)
            : base(manager)
        { }
Esempio n. 7
0
 public DeleteModule(LiveEditingManager manager)
     : base(manager)
 { }
Esempio n. 8
0
 public SkinModule(LiveEditingManager manager)
     : base(manager)
 { }
Esempio n. 9
0
 public CreateModule(LiveEditingManager manager)
     : base(manager)
 { }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnpublishModule"/> class.
 /// </summary>
 /// <param name="manager">The Live Editing manager.</param>
 public UnpublishModule(LiveEditingManager manager)
     : base(manager)
 { }
Esempio n. 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemEditor"/> class.
 /// </summary>
 /// <param name="manager">The manager.</param>
 public ItemEditor(LiveEditingManager manager)
 {
     m_Manager = manager;
 }