Example #1
0
 public HyperlinksAndBookmarks()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("Hyperlinks.docx", richEdit);
     ribbonControl1.SelectedPage = pageInsert;
     InsertLinksInDocument();
 }
 public LayoutAPI()
 {
     DataContext          = this;
     this.layoutInfoItems = GetLayoutInfoItems();
     InitializeComponent();
     OpenXmlLoadHelper.Load("FloatingObjects.docx", richEdit);
     richEdit.DocumentLayout.DocumentFormatted += DocumentLayout_DocumentFormatted;
 }
        public TableOfContents()
        {
            InitializeComponent();
            ribbon.SelectedPage = pageReferences;
            isFirstLoad         = true;

            OpenXmlLoadHelper.Load("TableOfContents.docx", sourceRichEditControl);
            NWind   = Resources["NWindDataLoader"] as NWindDataLoader;
            this.ds = NWindContext.Create().Employees.ToList();

            IUriStreamService uriService = (IUriStreamService)sourceRichEditControl.GetService(typeof(IUriStreamService));

            uriService.RegisterProvider(new DBUriStreamProviderBase <DevExpress.DemoData.Models.Employee>(NWindContext.Create().Employees.ToList(),
                                                                                                          (es, id) => es.First(e => e.EmployeeID == id).Photo));
        }
 void richEdit_Loaded(object sender, RoutedEventArgs e)
 {
     richEdit.DocumentLoaded            += OnRichEditControlDocumentLoaded;
     richEdit.DocumentProtectionChanged += OnRichEditControlDocumentProtectionChanged;
     OpenXmlLoadHelper.Load("DocumentProtection.docx", richEdit);
 }
 public ThirdPartyComments()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("Comments.docx", richEditControl1);
     ribbonControl1.SelectedPage = pageReview;
 }
Example #6
0
 public LineNumbering()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("LineNumbering.docx", richEdit);
 }
 public HeadersAndFooters()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("HeadersFooters.docx", richEdit);
     ribbonControl1.SelectedPage = pageInsert;
 }
Example #8
0
 public Tables()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("ActiveCustomers.docx", richEdit);
 }
Example #9
0
 public RibbonUI()
 {
     InitializeComponent();
     this.spellChecker = SpellChecking.InitializeSpellChecker();
     OpenXmlLoadHelper.Load("MovieRentals.docx", richEdit);
 }
 public AutoCorrect()
 {
     InitializeComponent();
     this.spellChecker = SpellChecking.InitializeSpellChecker();
     OpenXmlLoadHelper.Load("AutoCorrect.docx", richEdit);
 }
Example #11
0
 public FloatingObjects()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("FloatingObjects.docx", richEdit);
 }