/// <summary> /// Initializes a new instance of the <see cref="OpenOfficeDrawShapeManipulator"/> class. /// </summary> /// <param name="drawConnection">A connection to the Draw application. ATTENTION: doen not be null.</param> /// <param name="fbReciever">The fb reciever.</param> public OpenOfficeDrawShapeManipulator(IOoDrawConnection drawConnection, IZoomProvider zommable, IFeedbackReceiver fbReciever = null) : base(10) { feedbackReciever = fbReciever; Zoomable = zommable; if (drawConnection == null) { throw new ArgumentNullException("drawConnection", "Without any connection to the Draw application no Manipulation is possible."); } OoConnection = drawConnection; initializePatters(); loadConfiguration(); }
/// <summary> /// Sets the object to receive the feedback if some should be given. /// </summary> /// <param name="fbReceiver"></param> public void SetFeedbackReceiver(IFeedbackReceiver fbReceiver) { this.feedbackReciever = fbReceiver; }
public void AddReceiver(IFeedbackReceiver feedbackReceiver) { m_FeedbackReceivers.Add(feedbackReceiver); }
public void RemoveReceiver(IFeedbackReceiver feedbackReceiver) { m_FeedbackReceivers.Remove(feedbackReceiver); }
/// <summary> /// Initializes a new instance of the <see cref="OpenOfficeDrawShapeManipulator"/> class. /// </summary> /// <param name="drawConnection">A connection to the Draw application. ATTENTION: doen not be null.</param> /// <param name="fbReciever">The fb reciever.</param> public OpenOfficeDrawShapeManipulator(IOoDrawConnection drawConnection, IZoomProvider zommable, IFeedbackReceiver fbReciever = null) : base(10) { feedbackReciever = fbReciever; Zoomable = zommable; if (drawConnection == null) { throw new ArgumentNullException("drawConnection", "Without any connection to the Draw application no Manipulation is possible."); } OoConnection = drawConnection; initializePatters(); }