├── .gitignore ├── LICENSE ├── README.md ├── Source ├── DCSoft.CSharpWriter.WinFormDemo │ ├── DCSoft.CSharpWriter.WinFormDemo.csproj │ ├── DemoFile │ │ └── about.xml │ ├── MyCommandNames.cs │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── frmTextUseCommand.Designer.cs │ ├── frmTextUseCommand.cs │ └── frmTextUseCommand.resx ├── DCSoft.CSharpWriter.sln └── DCSoft.CSharpWriter │ ├── CSharpWriter │ ├── AccessFlags.cs │ ├── AssemblyInfo.cs │ ├── Commands │ │ ├── BorderBackgroundCommandParameter.cs │ │ ├── CSWriterCommandContainer.cs │ │ ├── CSWriterCommandControler.cs │ │ ├── CSWriterCommandModule.cs │ │ ├── CommandUtils.cs │ │ ├── ControlStateManager.cs │ │ ├── Design │ │ │ ├── WriterCommandNameEditor.cs │ │ │ ├── dlgCommandNameEditor.Designer.cs │ │ │ ├── dlgCommandNameEditor.cs │ │ │ ├── dlgCommandNameEditor.en.resx │ │ │ ├── dlgCommandNameEditor.resx │ │ │ └── dlgCommandNameEditor.zh-cn.resx │ │ ├── Images │ │ │ ├── BorderBoth.bmp │ │ │ ├── BorderCustom.bmp │ │ │ ├── BorderFlagBottom.bmp │ │ │ ├── BorderFlagCenterVertical.bmp │ │ │ ├── BorderFlagLeft.bmp │ │ │ ├── BorderFlagMiddleHorizontal.bmp │ │ │ ├── BorderFlagNone.bmp │ │ │ ├── BorderFlagRight.bmp │ │ │ ├── BorderFlagTop.bmp │ │ │ ├── BorderNone.bmp │ │ │ ├── BorderPreview.bmp │ │ │ ├── BorderRectangle.bmp │ │ │ ├── CommandAboutControl.bmp │ │ │ ├── CommandAlignBottomCenter.bmp │ │ │ ├── CommandAlignBottomLeft.bmp │ │ │ ├── CommandAlignBottomRight.bmp │ │ │ ├── CommandAlignCenter.bmp │ │ │ ├── CommandAlignJustify.bmp │ │ │ ├── CommandAlignLeft.bmp │ │ │ ├── CommandAlignMiddleCenter.bmp │ │ │ ├── CommandAlignMiddleLeft.bmp │ │ │ ├── CommandAlignMiddleRight.bmp │ │ │ ├── CommandAlignRight.bmp │ │ │ ├── CommandAlignTopCenter.bmp │ │ │ ├── CommandAlignTopLeft.bmp │ │ │ ├── CommandAlignTopRight.bmp │ │ │ ├── CommandAllBorder.bmp │ │ │ ├── CommandBackColor.bmp │ │ │ ├── CommandBold.bmp │ │ │ ├── CommandBorderBottom.bmp │ │ │ ├── CommandBorderLeft.bmp │ │ │ ├── CommandBorderNone.bmp │ │ │ ├── CommandBorderRight.bmp │ │ │ ├── CommandBorderTop.bmp │ │ │ ├── CommandBulletedList.bmp │ │ │ ├── CommandColor.bmp │ │ │ ├── CommandCopy.bmp │ │ │ ├── CommandCut.bmp │ │ │ ├── CommandDebugOutputWindow.bmp │ │ │ ├── CommandDefault.bmp │ │ │ ├── CommandDelete.bmp │ │ │ ├── CommandDeleteColumn.bmp │ │ │ ├── CommandDeleteRow.bmp │ │ │ ├── CommandDesignMode.bmp │ │ │ ├── CommandEditImageAdditionShape.bmp │ │ │ ├── CommandEditVBAScript.bmp │ │ │ ├── CommandElementProperties.bmp │ │ │ ├── CommandFileNew.bmp │ │ │ ├── CommandFileOpen.bmp │ │ │ ├── CommandFirstLineIndent.bmp │ │ │ ├── CommandFont.bmp │ │ │ ├── CommandFormatBrush.bmp │ │ │ ├── CommandInsertBarcode.bmp │ │ │ ├── CommandInsertColumnLeft.bmp │ │ │ ├── CommandInsertColumnRight.bmp │ │ │ ├── CommandInsertImage.bmp │ │ │ ├── CommandInsertParameter.bmp │ │ │ ├── CommandInsertRowDown.bmp │ │ │ ├── CommandInsertRowUp.bmp │ │ │ ├── CommandInsertTable.bmp │ │ │ ├── CommandItalic.bmp │ │ │ ├── CommandMergeCell.bmp │ │ │ ├── CommandModule.bmp │ │ │ ├── CommandNumberedList.bmp │ │ │ ├── CommandPageSettings.bmp │ │ │ ├── CommandPaste.bmp │ │ │ ├── CommandPrint.bmp │ │ │ ├── CommandRedo.bmp │ │ │ ├── CommandSave.bmp │ │ │ ├── CommandSearch.bmp │ │ │ ├── CommandSignDocument.bmp │ │ │ ├── CommandSplitCell.bmp │ │ │ ├── CommandSubscript.bmp │ │ │ ├── CommandSuperscript.bmp │ │ │ ├── CommandUnderline.bmp │ │ │ ├── CommandUndo.bmp │ │ │ ├── CommandWordCount.bmp │ │ │ ├── DashStyleDash.bmp │ │ │ ├── DashStyleDashDot.bmp │ │ │ ├── DashStyleDashDotDot.bmp │ │ │ ├── DashStyleDot.bmp │ │ │ ├── DashStyleSolid.bmp │ │ │ └── Null.bmp │ │ ├── InsertRTFCommandParameter.cs │ │ ├── InsertStringCommandParameter.cs │ │ ├── ParagraphFormatCommandParameter.cs │ │ ├── SearchReplaceCommandArgs.cs │ │ ├── StandardCommandNames.cs │ │ ├── White16-16.bmp │ │ ├── WriterCommand.cs │ │ ├── WriterCommandCenter.cs │ │ ├── WriterCommandControler.bmp │ │ ├── WriterCommandDelegate.cs │ │ ├── WriterCommandDescriptionAttribute.cs │ │ ├── WriterCommandDescriptor.cs │ │ ├── WriterCommandEventArgs.cs │ │ ├── WriterCommandList.cs │ │ ├── WriterCommandModuleBrowse.cs │ │ ├── WriterCommandModuleDescriptor.cs │ │ ├── WriterCommandModuleEdit.cs │ │ ├── WriterCommandModuleFile.cs │ │ ├── WriterCommandModuleFormat.cs │ │ ├── WriterCommandModuleInsert.cs │ │ ├── WriterCommandModuleSecurity.cs │ │ ├── WriterCommandModuleTools.cs │ │ ├── XTextElementProperties.cs │ │ ├── XTextImageElementEditor.cs │ │ ├── dlgAttributes.Designer.cs │ │ ├── dlgAttributes.cs │ │ ├── dlgAttributes.en.resx │ │ ├── dlgAttributes.resx │ │ ├── dlgAttributes.zh-cn.resx │ │ ├── dlgDocumentBorderBackground.Designer.cs │ │ ├── dlgDocumentBorderBackground.cs │ │ ├── dlgDocumentBorderBackground.en.resx │ │ ├── dlgDocumentBorderBackground.resx │ │ ├── dlgDocumentBorderBackground.zh-cn.resx │ │ ├── dlgDocumentOptions.Designer.cs │ │ ├── dlgDocumentOptions.cs │ │ ├── dlgDocumentOptions.en.resx │ │ ├── dlgDocumentOptions.resx │ │ ├── dlgDocumentOptions.zh-cn.resx │ │ ├── dlgElementTypeEditor.Designer.cs │ │ ├── dlgElementTypeEditor.cs │ │ ├── dlgElementTypeEditor.resx │ │ ├── dlgImageElementEditor.Designer.cs │ │ ├── dlgImageElementEditor.cs │ │ ├── dlgImageElementEditor.resx │ │ ├── dlgInputRTF.Designer.cs │ │ ├── dlgInputRTF.cs │ │ ├── dlgInputRTF.resx │ │ ├── dlgInputString.Designer.cs │ │ ├── dlgInputString.cs │ │ ├── dlgInputString.resx │ │ ├── dlgParagraphFormatcs.Designer.cs │ │ ├── dlgParagraphFormatcs.cs │ │ ├── dlgParagraphFormatcs.resx │ │ ├── dlgSearch.Designer.cs │ │ ├── dlgSearch.cs │ │ ├── dlgSearch.en.resx │ │ ├── dlgSearch.resx │ │ ├── dlgSearch.zh-cn.resx │ │ ├── dlgSpecifyPaste.Designer.cs │ │ ├── dlgSpecifyPaste.cs │ │ ├── dlgSpecifyPaste.en.resx │ │ ├── dlgSpecifyPaste.resx │ │ ├── dlgSpecifyPaste.zh-cn.resx │ │ ├── dlgWordCount.Designer.cs │ │ ├── dlgWordCount.cs │ │ ├── dlgWordCount.en.resx │ │ ├── dlgWordCount.resx │ │ ├── dlgWordCount.zh-cn.resx │ │ ├── frmViewXML.Designer.cs │ │ ├── frmViewXML.cs │ │ └── frmViewXML.resx │ ├── CommonTypeConverter.cs │ ├── ContentBuilder.cs │ ├── Controls │ │ ├── CSWriterControl.bmp │ │ ├── CSWriterControl.cs │ │ ├── CSWriterControl.resx │ │ ├── CommandErrorHandler.cs │ │ ├── DateTimeSelectControl.Designer.cs │ │ ├── DateTimeSelectControl.cs │ │ ├── DateTimeSelectControl.en.resx │ │ ├── DateTimeSelectControl.resx │ │ ├── DateTimeSelectControl.zh-cn.resx │ │ ├── ElementToolTip.cs │ │ ├── ElementValueEditResult.cs │ │ ├── ElementValueEditor.cs │ │ ├── ErrorReporter.cs │ │ ├── FormViewMode.cs │ │ ├── IWriterControlComEvents.cs │ │ ├── KeyState.cs │ │ ├── TextPageViewControl.cs │ │ ├── TextWindowsFormsEditorHost.cs │ │ ├── XTreeListBoxEditControl.cs │ │ ├── dlgAbout.Designer.cs │ │ ├── dlgAbout.cs │ │ ├── dlgAbout.en.resx │ │ ├── dlgAbout.resx │ │ ├── dlgAbout.zh-cn.resx │ │ ├── dlgError.cs │ │ ├── dlgError.resx │ │ ├── dlgErrorViewSource.Designer.cs │ │ ├── dlgErrorViewSource.cs │ │ └── dlgErrorViewSource.resx │ ├── Data │ │ ├── DefaultFileSystem.cs │ │ ├── IFileSystem.cs │ │ ├── UrlStream.cs │ │ ├── VFileInfo.cs │ │ └── WriterServiceContainer.cs │ ├── Demo.config │ ├── DocumentBehaviorOptions.cs │ ├── DocumentEditOptions.cs │ ├── DocumentLoader.cs │ ├── DocumentOptions.cs │ ├── DocumentSaver.cs │ ├── DocumentViewOptions.cs │ ├── Dom │ │ ├── CompareHandler.cs │ │ ├── ContentChangedEventHandler.cs │ │ ├── ContentChangingEventHandler.cs │ │ ├── ContentReferenceState.cs │ │ ├── ContentSearchReplacer.cs │ │ ├── DocumentContentStyle.cs │ │ ├── DocumentContentStyleContainer.cs │ │ ├── DocumentContentWriter.cs │ │ ├── DocumentControler.cs │ │ ├── DocumentEventArgs.cs │ │ ├── DocumentInfo.cs │ │ ├── DocumentPageDrawer.cs │ │ ├── DocumentPaintEventHandler.cs │ │ ├── DocumentViewTransform.cs │ │ ├── DomAccessFlags.cs │ │ ├── DomAttribute.cs │ │ ├── DomCharElement.cs │ │ ├── DomContainerElement.cs │ │ ├── DomContent.cs │ │ ├── DomContentElement.cs │ │ ├── DomContentLine.cs │ │ ├── DomContentLineList.cs │ │ ├── DomContentRender.cs │ │ ├── DomDocument.cs │ │ ├── DomDocumentContentElement.cs │ │ ├── DomDocumentList.cs │ │ ├── DomEOFElement.cs │ │ ├── DomElement.cs │ │ ├── DomElementDescriptorAttribute.cs │ │ ├── DomElementList.cs │ │ ├── DomImageElement.cs │ │ ├── DomLineBreakElement.cs │ │ ├── DomObjectElement.cs │ │ ├── DomParagraphElement.cs │ │ ├── DomParagraphFlagElement.cs │ │ ├── DomParagraphList.cs │ │ ├── DomParagraphListItemElement.cs │ │ ├── DomRange.cs │ │ ├── DomSectionElement.cs │ │ ├── DomSelection.cs │ │ ├── DomStringElement.cs │ │ ├── ElementEnumerator.cs │ │ ├── ElementEventList.cs │ │ ├── ElementType.cs │ │ ├── FilterValueEventHandler.cs │ │ ├── HighlightInfo.cs │ │ ├── HighlightManager.cs │ │ ├── IParameterProvider.cs │ │ ├── LinkClickEventHandler.cs │ │ ├── MouseCaptureInfo.cs │ │ ├── PageLineInfo.cs │ │ ├── ReplaceElementsArgs.cs │ │ ├── SelectionChangingEventArgs.cs │ │ ├── SolidBrushBuffer.cs │ │ ├── TextAlignment.cs │ │ ├── Undo │ │ │ ├── XTextDocumentUndoList.cs │ │ │ ├── XTextUndoBase.cs │ │ │ ├── XTextUndoModifyArrayItem.cs │ │ │ ├── XTextUndoNameProperty.cs │ │ │ ├── XTextUndoProperty.cs │ │ │ ├── XTextUndoReplaceElements.cs │ │ │ ├── XTextUndoSetDefaultFont.cs │ │ │ ├── XTextUndoSetDocumentProperty.cs │ │ │ ├── XTextUndoSetElementStyle.cs │ │ │ └── XTextUndoSetStyle.cs │ │ ├── ValueValidateResult.cs │ │ ├── ViewEffects.cs │ │ └── WordCountResult.cs │ ├── ElementEditor.cs │ ├── EnableState.cs │ ├── FileFormat.cs │ ├── Html │ │ ├── HtmlLoader.cs │ │ ├── WriterHtmlDocumentWriter.cs │ │ └── XHtmlWriter.cs │ ├── MoveUnit.cs │ ├── Printing │ │ ├── DocumentPrinter.cs │ │ └── WriterPrintDocument.cs │ ├── RTF │ │ ├── RTFContentWriter.cs │ │ └── RTFLoader.cs │ ├── Resources │ │ ├── ArrowDropdown.bmp │ │ ├── CheckEdit.bmp │ │ ├── CheckEdit1.bmp │ │ ├── CheckEdit11.bmp │ │ ├── CheckEdit111.bmp │ │ ├── close.bmp │ │ ├── close1.bmp │ │ ├── frm.bmp │ │ ├── frm1.bmp │ │ ├── frmX.bmp │ │ ├── frmX1.bmp │ │ └── lock.bmp │ ├── Script │ │ ├── DocumentScriptEngine.cs │ │ ├── DomExpression.cs │ │ ├── DomExpressionEventArgs.cs │ │ ├── DomExpressionExecuter.cs │ │ ├── DomExpressionList.cs │ │ ├── ScriptGlobalObjectContainer.cs │ │ ├── WriterWindow.cs │ │ ├── dlgExpressionEditor.Designer.cs │ │ ├── dlgExpressionEditor.cs │ │ ├── dlgExpressionEditor.resx │ │ ├── frmScriptEdtior.Designer.cs │ │ ├── frmScriptEdtior.cs │ │ ├── frmScriptEdtior.en.resx │ │ ├── frmScriptEdtior.resx │ │ └── frmScriptEdtior.zh-cn.resx │ ├── Security │ │ ├── DocumentSecurityOptions.cs │ │ ├── UserHistoryInfo.cs │ │ ├── UserHistoryInfoList.cs │ │ └── UserLoginInfo.cs │ ├── Undo │ │ ├── IUndoable.cs │ │ ├── XUndoEventArgs.cs │ │ ├── XUndoGroup.cs │ │ ├── XUndoList.cs │ │ └── XUndoObjectPropertyValue.cs │ ├── WriterAppHost.cs │ ├── WriterConst.cs │ ├── WriterDebugger.cs │ ├── WriterResources.Designer.cs │ ├── WriterResources.resx │ ├── WriterStrings.Designer.cs │ ├── WriterStrings.en.Designer.cs │ ├── WriterStrings.en.resx │ ├── WriterStrings.resx │ ├── WriterStrings.zh-cn.resx │ ├── WriterUtils.cs │ ├── Xml │ │ └── MyXmlSerializeHelper.cs │ ├── blue96.png │ └── images │ │ ├── XDesignerZoomInAction.bmp │ │ ├── XDesignerZoomOutAction.bmp │ │ ├── linebreak.bmp │ │ ├── paragrapheof.bmp │ │ └── paragrapheof1.bmp │ ├── Common │ ├── AttributeString.cs │ ├── CellIndex.cs │ ├── CountDown.cs │ ├── DataObjectHelper.cs │ ├── DocumentCommentAttribute.cs │ ├── FileHeaderHelper.cs │ ├── FileHelper.cs │ ├── HtmlDocumentWriter.cs │ ├── ImageHelper.cs │ ├── ListDebugView.cs │ ├── ListDictionary.cs │ ├── MeasureConvert.cs │ ├── StackTraceHelper.cs │ ├── StringConvertHelper.cs │ ├── StringFormatHelper.cs │ ├── ValueTypeHelper.cs │ ├── ValueValidateStyle.cs │ ├── ValueValidateStyleStrings.en.Designer.cs │ ├── ValueValidateStyleStrings.en.resx │ ├── ValueValidateStyleStrings.resx │ ├── ValueValidateStyleStrings.zh-cn.resx │ ├── ValueValidateStyleStrings1.Designer.cs │ ├── VariableString.cs │ ├── XDependencyObject.cs │ ├── XDependencyObjectEventHandler.cs │ ├── XDependencyProperty.cs │ ├── XDependencyPropertyDescriptor.cs │ ├── dlgValueValidateStyleEditor.Designer.cs │ ├── dlgValueValidateStyleEditor.cs │ ├── dlgValueValidateStyleEditor.en.resx │ ├── dlgValueValidateStyleEditor.resx │ ├── dlgValueValidateStyleEditor.zh-cn.resx │ ├── frmDebugOutput.Designer.cs │ ├── frmDebugOutput.cs │ └── frmDebugOutput.resx │ ├── DCSoft.CSharpWriter.csproj │ ├── Data │ ├── DataStrings.Designer.cs │ ├── DataStrings.en.Designer.cs │ ├── DataStrings.en.resx │ ├── DataStrings.resx │ ├── DataStrings.zh-cn.resx │ ├── ParameterStyle.cs │ ├── SQLHelper.cs │ ├── ValueFormater.cs │ └── WinForms │ │ ├── Design │ │ └── ValueFormaterUIEditor.cs │ │ ├── dlgFormatDesigner.cs │ │ ├── dlgFormatDesigner.en.resx │ │ ├── dlgFormatDesigner.resx │ │ └── dlgFormatDesigner.zh-cn.resx │ ├── Drawing │ ├── ContentStyle.cs │ ├── ContentStyleContainer.cs │ ├── ContentStyleList.cs │ ├── Design │ │ ├── dlgBorder.Designer.cs │ │ ├── dlgBorder.cs │ │ └── dlgBorder.resx │ ├── DocumentContentAlignment.cs │ ├── DrawerUtil.cs │ ├── GraphicsObjectBuffer.cs │ ├── GraphicsUnitConvert.cs │ ├── MathCommon.cs │ ├── MultiRectangleTransform.cs │ ├── PageFrameDrawer.cs │ ├── RectangleCommon.cs │ ├── RectangleCounter.cs │ ├── RectangleDrawer.cs │ ├── Resources │ │ └── Workspace-Background.jpg │ ├── ShapeDrawer.cs │ ├── ShapeTypes.cs │ ├── SimpleRectangleTransform.cs │ ├── TransformBase.cs │ ├── VerticalAlignStyle.cs │ ├── WatermarkDrawer.cs │ ├── XBrushStyle.cs │ ├── XColorValue.cs │ ├── XFontValue.cs │ ├── XImageValue.cs │ └── XPenStyle.cs │ ├── HtmlDom │ ├── HTMLAElement.cs │ ├── HTMLAppletElement.cs │ ├── HTMLAreaElement.cs │ ├── HTMLAttribute.cs │ ├── HTMLAttributeList.cs │ ├── HTMLBElement.cs │ ├── HTMLBGSoundElement.cs │ ├── HTMLBRElement.cs │ ├── HTMLBodyElement.cs │ ├── HTMLColElement.cs │ ├── HTMLCommentElement.cs │ ├── HTMLContainer.cs │ ├── HTMLDivElement.cs │ ├── HTMLDocument.cs │ ├── HTMLElement.cs │ ├── HTMLElementList.cs │ ├── HTMLFontElement.cs │ ├── HTMLFormElement.cs │ ├── HTMLFrameElement.cs │ ├── HTMLFrameSetElement.cs │ ├── HTMLHRElement.cs │ ├── HTMLHTAApplicationElement.cs │ ├── HTMLHeadElement.cs │ ├── HTMLHnElement.cs │ ├── HTMLIEDeviceRect.cs │ ├── HTMLIEHeaderfooter.cs │ ├── HTMLIELayoutrect.cs │ ├── HTMLIETemplateprinter.cs │ ├── HTMLIFrameElement.cs │ ├── HTMLImgElement.cs │ ├── HTMLInputElement.cs │ ├── HTMLLIElement.cs │ ├── HTMLLabelElement.cs │ ├── HTMLLinkElement.cs │ ├── HTMLMapElement.cs │ ├── HTMLMarqueeElement.cs │ ├── HTMLMetaElement.cs │ ├── HTMLNameStyleItem.cs │ ├── HTMLNobarElement.cs │ ├── HTMLObjectElement.cs │ ├── HTMLOptionElement.cs │ ├── HTMLPElement.cs │ ├── HTMLParamElement.cs │ ├── HTMLPreElement.cs │ ├── HTMLScriptElement.cs │ ├── HTMLSelectElement.cs │ ├── HTMLSpanElement.cs │ ├── HTMLStyle.cs │ ├── HTMLStyleElement.cs │ ├── HTMLSubElement.cs │ ├── HTMLSupElement.cs │ ├── HTMLTBodyElement.cs │ ├── HTMLTDElement.cs │ ├── HTMLTRElement.cs │ ├── HTMLTableElement.cs │ ├── HTMLTextAreaElement.cs │ ├── HTMLTextNodeElement.cs │ ├── HTMLTextReader.cs │ ├── HTMLTitleElement.cs │ ├── HTMLULElement.cs │ ├── HTMLUnknowElement.cs │ ├── HTMLWriteOptions.cs │ ├── HTMLXMLElement.cs │ ├── IHTMLFormElement.cs │ ├── StringConstAlign.cs │ ├── StringConstAttributeName.cs │ ├── StringConstBorderStyle.cs │ ├── StringConstColor.cs │ ├── StringConstCursor.cs │ ├── StringConstDisplay.cs │ ├── StringConstEntity.cs │ ├── StringConstImgAlign.cs │ ├── StringConstInputType.cs │ ├── StringConstScriptLanguage.cs │ ├── StringConstStyleName.cs │ ├── StringConstTagName.cs │ ├── StringConstTarget.cs │ ├── StringConstValue.cs │ ├── StringConstVisibility.cs │ ├── StringConstWordBreak.cs │ ├── StringConstWordWrap.cs │ ├── StringConstWrap.cs │ └── StringConstXSLT.cs │ ├── Printing │ ├── IPageDocument.cs │ ├── MultiPageTransform.cs │ ├── PageContentDrawer.cs │ ├── PageDocumentPaintEventArgs.cs │ ├── PageRangeInfo.cs │ ├── PageViewControl.cs │ ├── PageViewMode.cs │ ├── PrintJob.cs │ ├── PrintPage.cs │ ├── PrintPageCollection.cs │ ├── PrintUtil.cs │ ├── PrintingResources.Designer.cs │ ├── PrintingResources.en.Designer.cs │ ├── PrintingResources.en.resx │ ├── PrintingResources.resx │ ├── PrintingResources.zh-cn.resx │ ├── XPageSettings.cs │ ├── XPrintDocument.cs │ ├── dlgPageSetup.cs │ ├── dlgPageSetup.en.resx │ ├── dlgPageSetup.resx │ ├── dlgPageSetup.zh-cn.resx │ ├── dlgWaitPrintJob.cs │ ├── dlgWaitPrintJob.en.resx │ ├── dlgWaitPrintJob.resx │ └── dlgWaitPrintJob.zh-cn.resx │ ├── RTF │ ├── ByteBuffer.cs │ ├── DocumentFormatInfo.cs │ ├── Parser.cs │ ├── ProgressEventHandler.cs │ ├── RTFAlignment.cs │ ├── RTFAttribute.cs │ ├── RTFBorderStyle.cs │ ├── RTFColorTable.cs │ ├── RTFConsts.cs │ ├── RTFDocumentInfo.cs │ ├── RTFDocumentWriter.cs │ ├── RTFDomBookmark.cs │ ├── RTFDomDocument.cs │ ├── RTFDomElement.cs │ ├── RTFDomElementContainer.cs │ ├── RTFDomElementList.cs │ ├── RTFDomField.cs │ ├── RTFDomHeader.cs │ ├── RTFDomImage.cs │ ├── RTFDomLineBreak.cs │ ├── RTFDomObject.cs │ ├── RTFDomPageBreak.cs │ ├── RTFDomParagraph.cs │ ├── RTFDomShape.cs │ ├── RTFDomShapeGroup.cs │ ├── RTFDomTable.cs │ ├── RTFDomTableCell.cs │ ├── RTFDomTableColumn.cs │ ├── RTFDomTableRow.cs │ ├── RTFDomTempContainer.cs │ ├── RTFDomText.cs │ ├── RTFFontTable.cs │ ├── RTFInstanceDebugView.cs │ ├── RTFNode.cs │ ├── RTFNodeGroup.cs │ ├── RTFNodeList.cs │ ├── RTFNodeType.cs │ ├── RTFRawDocument.cs │ ├── RTFUtil.cs │ ├── RTFVerticalAlignment.cs │ ├── RTFWriter.cs │ └── StringAttribute.cs │ ├── Script │ ├── DotNetAssemblyInfo.cs │ ├── DynamicCompiler.cs │ ├── MyStringList.cs │ ├── ScriptAssemblyBuffer.cs │ ├── ScriptError.cs │ ├── ScriptExpression.cs │ ├── ScriptExpressionPropertyTab.cs │ ├── ScriptExpressionPropertyTabBmp.bmp │ ├── ScriptOptionsEditor.cs │ ├── ScriptStrings.Designer.cs │ ├── ScriptStrings.en.resx │ ├── ScriptStrings.resx │ ├── ScriptStrings.zh-cn.resx │ ├── VBAScript.ico │ ├── XVBAEngine.cs │ ├── XVBAOptions.cs │ ├── XVBAScriptGlobalObject.cs │ ├── XVBAWindowObject.cs │ ├── dlgBrowseGACAssembly.Designer.cs │ ├── dlgBrowseGACAssembly.cs │ ├── dlgBrowseGACAssembly.en.resx │ ├── dlgBrowseGACAssembly.resx │ ├── dlgBrowseGACAssembly.zh-cn.resx │ ├── dlgInputBox.cs │ ├── dlgInputBox.en.resx │ ├── dlgInputBox.resx │ ├── dlgInputBox.zh-cn.resx │ ├── dlgScriptOptions.Designer.cs │ ├── dlgScriptOptions.cs │ ├── dlgScriptOptions.en.resx │ ├── dlgScriptOptions.resx │ └── dlgScriptOptions.zh-cn.resx │ ├── WinForms │ ├── ApplicationStyle.cs │ ├── BorderUserControl.cs │ ├── BorderUserControl.resx │ ├── ColorButton.cs │ ├── ColorStripMenuItem.cs │ ├── Design │ │ ├── CustomDrawValueListBoxEditor.cs │ │ ├── FontSizeEditor.cs │ │ ├── dlgBorderBackground.Designer.cs │ │ ├── dlgBorderBackground.cs │ │ └── dlgBorderBackground.resx │ ├── DocumentViewControl.cs │ ├── DragRectangle.cs │ ├── FormList.cs │ ├── ImageListBox.cs │ ├── MouseClickCounter.cs │ ├── MouseEventStyle.cs │ ├── Native │ │ ├── DeviceCapsClass.cs │ │ ├── DeviceContext.cs │ │ ├── DeviceContextBase.cs │ │ ├── GDIFont.cs │ │ ├── GDIObject.cs │ │ ├── GDIPen.cs │ │ ├── Gdi32.cs │ │ ├── IEHelper.cs │ │ ├── MessageFilter.cs │ │ ├── MessageSender.cs │ │ ├── MouseCapturer.cs │ │ ├── MouseMessageHelper.cs │ │ ├── Msgs.cs │ │ ├── ReversibleDrawer.cs │ │ ├── Struct.cs │ │ ├── SystemMetricsClass.cs │ │ ├── SystemParametersInfoClass.cs │ │ ├── User32.cs │ │ ├── VirtualKeys.cs │ │ ├── Win32Caret.cs │ │ ├── Win32Imm.cs │ │ ├── Win32Message.cs │ │ ├── WindowInformation.cs │ │ ├── dlgInputUrl.Designer.cs │ │ ├── dlgInputUrl.cs │ │ ├── dlgInputUrl.resx │ │ └── enum.cs │ ├── PageSettingPreview.cs │ ├── Resources │ │ ├── Blank16_16.bmp │ │ └── picBorderPreview.Image.bmp │ ├── ScrollToViewStyle.cs │ ├── UpdateLock.cs │ ├── Utils.cs │ ├── XCursors.cs │ ├── XCursors │ │ ├── Black.cur │ │ ├── DragCopy.cur │ │ ├── DragLink.cur │ │ ├── DragMove.cur │ │ ├── DragNo.cur │ │ ├── DragPage.cur │ │ ├── DragPageNo.cur │ │ ├── FormatBrush.cur │ │ ├── HandDragDown.cur │ │ ├── HandDragUp.cur │ │ ├── Right.cur │ │ ├── RightArrow.cur │ │ ├── ZoomIn.cur │ │ └── ZoomOut.cur │ ├── XGUICommon.cs │ ├── XPictureBox.cs │ ├── XPopupForm.cs │ └── XTreeListBox.cs │ └── csharpwriter.vsd ├── about.files ├── dcimg_39225.jpg ├── dcimg_39226.jpg ├── dcimg_39227.jpg ├── dcimg_39228.jpg ├── dcimg_39229.jpg ├── dcimg_39230.jpg ├── dcimg_39231.jpg └── dcimg_39232.jpg ├── about.htm └── snapshort.png /Source/DCSoft.CSharpWriter.WinFormDemo/MyCommandNames.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.WinFormDemo 14 | { 15 | 16 | public class MyCommandNames 17 | { 18 | public const string OpenXMLDemo = "openxmldemo"; 19 | public const string OpenRTFDemo = "openrtfdemo"; 20 | public const string OpenFormViewDemo = "OpenFormViewDemo"; 21 | public const string New = "new"; 22 | public const string Open = "open"; 23 | public const string Save = "save"; 24 | public const string SaveAs = "saveas"; 25 | public const string SaveWeb = "saveweb"; 26 | public const string Settings = "settings"; 27 | public const string Find = "find"; 28 | public const string DragMove = "dragmove"; 29 | public const string Link = "link"; 30 | public const string Bookmark = "bookmark"; 31 | public const string ShowBookmark = "showbookmark"; 32 | public const string WordCount = "wordcount"; 33 | public const string About = "about"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter.WinFormDemo/Program.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Windows.Forms; 12 | 13 | namespace DCSoft.CSharpWriter.WinFormDemo 14 | { 15 | static class Program 16 | { 17 | /// 18 | /// 应用程序的主入口点。 19 | /// 20 | [STAThread] 21 | static void Main() 22 | { 23 | Application.EnableVisualStyles(); 24 | Application.SetCompatibleTextRenderingDefault(false); 25 | Application.Run(new frmTextUseCommand()); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter.WinFormDemo/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System.Reflection; 10 | using System.Runtime.CompilerServices; 11 | using System.Runtime.InteropServices; 12 | 13 | // 有关程序集的一般信息由以下 14 | // 控制。更改这些特性值可修改 15 | // 与程序集关联的信息。 16 | [assembly: AssemblyTitle("DCSoft.CSharpWriter.WinFormDemo")] 17 | [assembly: AssemblyDescription("")] 18 | [assembly: AssemblyConfiguration("")] 19 | [assembly: AssemblyCompany("")] 20 | [assembly: AssemblyProduct("DCSoft.CSharpWriter.WinFormDemo")] 21 | [assembly: AssemblyCopyright("Copyright © 2020")] 22 | [assembly: AssemblyTrademark("")] 23 | [assembly: AssemblyCulture("")] 24 | 25 | // 将 ComVisible 设置为 false 会使此程序集中的类型 26 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 27 | //请将此类型的 ComVisible 特性设置为 true。 28 | [assembly: ComVisible(false)] 29 | 30 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 31 | [assembly: Guid("5BFE09D0-AE23-4529-9E74-2FD110C0E9E6")] 32 | 33 | // 程序集的版本信息由下列四个值组成: 34 | // 35 | // 主版本 36 | // 次版本 37 | // 生成号 38 | // 修订号 39 | // 40 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 41 | // 方法是按如下所示使用“*”: : 42 | // [assembly: AssemblyVersion("1.0.*")] 43 | [assembly: AssemblyVersion("1.0.0.0")] 44 | [assembly: AssemblyFileVersion("1.0.0.0")] 45 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter.WinFormDemo/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | //------------------------------------------------------------------------------ 10 | // 11 | // This code was generated by a tool. 12 | // Runtime Version:4.0.30319.42000 13 | // 14 | // Changes to this file may cause incorrect behavior and will be lost if 15 | // the code is regenerated. 16 | // 17 | //------------------------------------------------------------------------------ 18 | 19 | namespace DCSoft.CSharpWriter.WinFormDemo.Properties 20 | { 21 | 22 | 23 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 24 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 25 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 26 | { 27 | 28 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 29 | 30 | public static Settings Default 31 | { 32 | get 33 | { 34 | return defaultInstance; 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter.WinFormDemo/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30711.63 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DCSoft.CSharpWriter", "DCSoft.CSharpWriter\DCSoft.CSharpWriter.csproj", "{0B4EE2EE-8187-4F6D-9F05-249D8359B7CC}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DCSoft.CSharpWriter.WinFormDemo", "DCSoft.CSharpWriter.WinFormDemo\DCSoft.CSharpWriter.WinFormDemo.csproj", "{4AAD2D1D-8447-456E-92D8-B640CF85E9DE}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {0B4EE2EE-8187-4F6D-9F05-249D8359B7CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {0B4EE2EE-8187-4F6D-9F05-249D8359B7CC}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {0B4EE2EE-8187-4F6D-9F05-249D8359B7CC}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {0B4EE2EE-8187-4F6D-9F05-249D8359B7CC}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {4AAD2D1D-8447-456E-92D8-B640CF85E9DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {4AAD2D1D-8447-456E-92D8-B640CF85E9DE}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {4AAD2D1D-8447-456E-92D8-B640CF85E9DE}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {4AAD2D1D-8447-456E-92D8-B640CF85E9DE}.Release|Any CPU.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {80342B8C-F7A7-4EBC-8937-25F12E73CE95} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/AccessFlags.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter 14 | { 15 | /// 16 | /// 可访问标记 17 | /// 18 | [Flags] 19 | public enum AccessFlags 20 | { 21 | /// 22 | /// 元素只读 23 | /// 24 | Readonly = 1 , 25 | /// 26 | /// 能修改内容 27 | /// 28 | Modify = 2, 29 | /// 30 | /// 能删除 31 | /// 32 | Delete = 3 , 33 | /// 34 | /// 所有的权限 35 | /// 36 | All = 0xffffff 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderBoth.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderBoth.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderCustom.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderCustom.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagBottom.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagBottom.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagCenterVertical.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagCenterVertical.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagLeft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagLeft.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagMiddleHorizontal.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagMiddleHorizontal.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagNone.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagNone.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagRight.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagRight.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagTop.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderFlagTop.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderNone.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderNone.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderPreview.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderPreview.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderRectangle.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/BorderRectangle.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAboutControl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAboutControl.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignBottomCenter.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignBottomCenter.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignBottomLeft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignBottomLeft.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignBottomRight.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignBottomRight.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignCenter.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignCenter.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignJustify.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignJustify.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignLeft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignLeft.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignMiddleCenter.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignMiddleCenter.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignMiddleLeft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignMiddleLeft.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignMiddleRight.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignMiddleRight.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignRight.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignRight.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignTopCenter.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignTopCenter.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignTopLeft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignTopLeft.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignTopRight.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAlignTopRight.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAllBorder.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandAllBorder.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBackColor.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBackColor.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBold.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBold.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBorderBottom.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBorderBottom.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBorderLeft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBorderLeft.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBorderNone.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBorderNone.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBorderRight.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBorderRight.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBorderTop.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBorderTop.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBulletedList.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandBulletedList.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandColor.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandColor.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandCopy.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandCopy.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandCut.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandCut.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDebugOutputWindow.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDebugOutputWindow.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDefault.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDefault.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDelete.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDelete.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDeleteColumn.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDeleteColumn.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDeleteRow.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDeleteRow.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDesignMode.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandDesignMode.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandEditImageAdditionShape.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandEditImageAdditionShape.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandEditVBAScript.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandEditVBAScript.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandElementProperties.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandElementProperties.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandFileNew.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandFileNew.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandFileOpen.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandFileOpen.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandFirstLineIndent.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandFirstLineIndent.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandFont.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandFont.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandFormatBrush.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandFormatBrush.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertBarcode.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertBarcode.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertColumnLeft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertColumnLeft.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertColumnRight.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertColumnRight.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertImage.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertImage.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertParameter.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertParameter.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertRowDown.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertRowDown.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertRowUp.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertRowUp.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertTable.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandInsertTable.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandItalic.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandItalic.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandMergeCell.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandMergeCell.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandModule.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandModule.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandNumberedList.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandNumberedList.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandPageSettings.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandPageSettings.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandPaste.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandPaste.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandPrint.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandPrint.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandRedo.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandRedo.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSave.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSave.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSearch.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSearch.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSignDocument.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSignDocument.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSplitCell.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSplitCell.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSubscript.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSubscript.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSuperscript.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandSuperscript.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandUnderline.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandUnderline.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandUndo.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandUndo.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandWordCount.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/CommandWordCount.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/DashStyleDash.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/DashStyleDash.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/DashStyleDashDot.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/DashStyleDashDot.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/DashStyleDashDotDot.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/DashStyleDashDotDot.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/DashStyleDot.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/DashStyleDot.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/DashStyleSolid.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/DashStyleSolid.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/Null.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/Images/Null.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/InsertRTFCommandParameter.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Commands 14 | { 15 | /// 16 | /// 插入RTF文本的命令参数对象 17 | /// 18 | [Serializable] 19 | public class InsertRTFCommandParameter 20 | { 21 | /// 22 | /// 初始化对象 23 | /// 24 | /// 编写 袁永福 25 | public InsertRTFCommandParameter() 26 | { 27 | } 28 | 29 | private string _RTFText = null; 30 | /// 31 | /// RTF文本 32 | /// 33 | public string RTFText 34 | { 35 | get 36 | { 37 | return _RTFText; 38 | } 39 | set 40 | { 41 | _RTFText = value; 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/InsertStringCommandParameter.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Commands 14 | { 15 | /// 16 | /// 插入字符串的命令参数对象 17 | /// 18 | /// 编写 袁永福 19 | [Serializable] 20 | public class InsertStringCommandParameter 21 | { 22 | /// 23 | /// 初始化对象 24 | /// 25 | public InsertStringCommandParameter() 26 | { 27 | } 28 | 29 | private string _Text = null; 30 | /// 31 | /// 要插入的文本 32 | /// 33 | public string Text 34 | { 35 | get { return _Text; } 36 | set { _Text = value; } 37 | } 38 | 39 | //private bool _DeleteSelection = true; 40 | ///// 41 | ///// 插入文本时是否删除选中的文档内容 42 | ///// 43 | //public bool DeleteSelection 44 | //{ 45 | // get { return _DeleteSelection; } 46 | // set { _DeleteSelection = value; } 47 | //} 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/White16-16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/White16-16.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/WriterCommandControler.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Commands/WriterCommandControler.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/WriterCommandDelegate.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Commands 14 | { 15 | /// 16 | /// 基于委托的动态命令对象 17 | /// 18 | public class WriterCommandDelegate : WriterCommand 19 | { 20 | /// 21 | /// 初始化对象 22 | /// 23 | public WriterCommandDelegate() 24 | { 25 | } 26 | 27 | /// 28 | /// 初始化对象 29 | /// 30 | /// 动作名称 31 | /// 执行动作的委托对象 32 | public WriterCommandDelegate(string name, WriterCommandEventHandler handler) 33 | { 34 | base.strName = name; 35 | this.Handler = handler; 36 | } 37 | 38 | public WriterCommandEventHandler Handler = null; 39 | 40 | public override void Invoke(DCSoft.CSharpWriter.Commands.WriterCommandEventArgs args) 41 | { 42 | if (Handler != null) 43 | { 44 | Handler( this , args); 45 | } 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/dlgDocumentOptions.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.ComponentModel; 12 | using System.Data; 13 | using System.Drawing; 14 | using System.Text; 15 | using System.Windows.Forms; 16 | using DCSoft.CSharpWriter ; 17 | 18 | namespace DCSoft.CSharpWriter.Commands 19 | { 20 | public partial class dlgDocumentOptions : Form 21 | { 22 | public dlgDocumentOptions() 23 | { 24 | InitializeComponent(); 25 | this.DialogResult = System.Windows.Forms.DialogResult.Cancel; 26 | } 27 | 28 | private DocumentOptions _DocumentOptions = null; 29 | 30 | public DocumentOptions DocumentOptions 31 | { 32 | get 33 | { 34 | return _DocumentOptions; 35 | } 36 | set 37 | { 38 | _DocumentOptions = value; 39 | } 40 | } 41 | 42 | private void dlgDocumentOptions_Load(object sender, EventArgs e) 43 | { 44 | if (_DocumentOptions == null) 45 | { 46 | _DocumentOptions = new DocumentOptions(); 47 | } 48 | pgOptions.SelectedObject = _DocumentOptions; 49 | } 50 | 51 | private void btnOK_Click(object sender, EventArgs e) 52 | { 53 | this.DialogResult = System.Windows.Forms.DialogResult.OK; 54 | this.Close(); 55 | } 56 | 57 | private void btnCancel_Click(object sender, EventArgs e) 58 | { 59 | this.Close(); 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/dlgInputRTF.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.ComponentModel; 12 | using System.Data; 13 | using System.Drawing; 14 | using System.Text; 15 | using System.Windows.Forms; 16 | 17 | namespace DCSoft.CSharpWriter.Commands 18 | { 19 | public partial class dlgInputRTF : Form 20 | { 21 | public dlgInputRTF() 22 | { 23 | InitializeComponent(); 24 | this.DialogResult = System.Windows.Forms.DialogResult.Cancel; 25 | } 26 | 27 | public string InputRTFText 28 | { 29 | get 30 | { 31 | return txtInputText.Rtf ; 32 | } 33 | set 34 | { 35 | txtInputText.Rtf = value; 36 | } 37 | } 38 | 39 | private void btnOK_Click(object sender, EventArgs e) 40 | { 41 | this.DialogResult = System.Windows.Forms.DialogResult.OK; 42 | this.Close(); 43 | } 44 | 45 | private void btnCancel_Click(object sender, EventArgs e) 46 | { 47 | this.Close(); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/dlgInputString.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.ComponentModel; 12 | using System.Data; 13 | using System.Drawing; 14 | using System.Text; 15 | using System.Windows.Forms; 16 | 17 | namespace DCSoft.CSharpWriter.Commands 18 | { 19 | public partial class dlgInputString : Form 20 | { 21 | public dlgInputString() 22 | { 23 | InitializeComponent(); 24 | this.DialogResult = System.Windows.Forms.DialogResult.Cancel; 25 | } 26 | 27 | public string InputText 28 | { 29 | get 30 | { 31 | return txtInputText.Text; 32 | } 33 | set 34 | { 35 | txtInputText.Text = value; 36 | } 37 | } 38 | 39 | private void dlgInsertString_Load(object sender, EventArgs e) 40 | { 41 | 42 | } 43 | 44 | private void btnOK_Click(object sender, EventArgs e) 45 | { 46 | this.DialogResult = System.Windows.Forms.DialogResult.OK; 47 | this.Close(); 48 | } 49 | 50 | private void btnCancel_Click(object sender, EventArgs e) 51 | { 52 | this.Close(); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/dlgWordCount.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.ComponentModel; 12 | using System.Data; 13 | using System.Drawing; 14 | using System.Text; 15 | using System.Windows.Forms; 16 | using DCSoft.CSharpWriter.Dom; 17 | 18 | namespace DCSoft.CSharpWriter.Commands 19 | { 20 | public partial class dlgWordCount : Form 21 | { 22 | public dlgWordCount() 23 | { 24 | InitializeComponent(); 25 | } 26 | 27 | private WordCountResult _CountResult = null; 28 | 29 | public WordCountResult CountResult 30 | { 31 | get { return _CountResult; } 32 | set { _CountResult = value; } 33 | } 34 | 35 | private void dlgWordCount_Load(object sender, EventArgs e) 36 | { 37 | if (_CountResult == null) 38 | { 39 | _CountResult = new WordCountResult(); 40 | } 41 | lblChars.Text = _CountResult.Chars.ToString(); 42 | lblCharsNOWhitespace.Text = _CountResult.CharsNoWhitespace.ToString(); 43 | lblImages.Text = _CountResult.Images.ToString(); 44 | lblLines.Text = _CountResult.Lines.ToString(); 45 | lblPages.Text = _CountResult.Pages.ToString(); 46 | lblParagraphs.Text = _CountResult.Paragraphs.ToString(); 47 | lblWords.Text = _CountResult.Words.ToString(); 48 | } 49 | 50 | private void btnClose_Click(object sender, EventArgs e) 51 | { 52 | this.Close(); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Commands/frmViewXML.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.ComponentModel; 12 | using System.Data; 13 | using System.Drawing; 14 | using System.Text; 15 | using System.Windows.Forms; 16 | 17 | namespace DCSoft.CSharpWriter.Commands 18 | { 19 | public partial class frmViewXML : Form 20 | { 21 | public frmViewXML() 22 | { 23 | InitializeComponent(); 24 | } 25 | 26 | public string XMLSource 27 | { 28 | get 29 | { 30 | return txtXML.Text; 31 | } 32 | set 33 | { 34 | txtXML.Text = value; 35 | } 36 | } 37 | 38 | private void frmViewXML_Load(object sender, EventArgs e) 39 | { 40 | 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/CommonTypeConverter.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | using System.ComponentModel; 13 | namespace DCSoft.CSharpWriter 14 | { 15 | public class CommonTypeConverter : System.ComponentModel.TypeConverter 16 | { 17 | public override bool GetPropertiesSupported(ITypeDescriptorContext context) 18 | { 19 | return true; 20 | } 21 | public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) 22 | { 23 | return TypeDescriptor.GetProperties(value, attributes); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Controls/CSWriterControl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Controls/CSWriterControl.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Controls/CSWriterControl.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | text/microsoft-resx 32 | 33 | 34 | 1.0.0.0 35 | 36 | 37 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 38 | 39 | 40 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 41 | 42 | 43 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Controls/ElementValueEditResult.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Controls 14 | { 15 | /// 16 | /// 元素值编辑操作结果 17 | /// 18 | /// 编制 袁永福 19 | public enum ElementValueEditResult 20 | { 21 | /// 22 | /// 没执行任何编辑操作. 23 | /// 24 | None , 25 | /// 26 | /// 试图执行编辑器操作,但用户取消了。 27 | /// 28 | UserCancel , 29 | /// 30 | /// 成功执行了编辑器操作. 31 | /// 32 | UserAccept 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Controls/FormViewMode.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Controls 14 | { 15 | /// 16 | /// 表单视图模式类型 17 | /// 18 | /// 编制 袁永福 19 | public enum FormViewMode 20 | { 21 | /// 22 | /// 不处于表单视图模式 23 | /// 24 | Disable , 25 | /// 26 | /// 普通表单视图模式 27 | /// 28 | Normal , 29 | /// 30 | /// 严格的表单视图模式 31 | /// 32 | Strict 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Controls/IWriterControlComEvents.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | using System.ComponentModel; 13 | using System.Runtime.InteropServices; 14 | 15 | namespace DCSoft.CSharpWriter.Controls 16 | { 17 | [ComVisible(true)] 18 | [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] 19 | public interface IWriterControlComEvents 20 | { 21 | [DispId(12341)] 22 | void ComEventSelectionChanged(); 23 | [DispId(12342)] 24 | void ComEventDocumentLoad(); 25 | [DispId(12343)] 26 | void ComEventDocumentContentChanged(); 27 | [DispId(12344)] 28 | void ComEventStatusTextChanged(); 29 | } 30 | 31 | /// 32 | /// 无参数无返回值委托类型 33 | /// 34 | public delegate void VoidEventHandler(); 35 | 36 | /// 37 | /// Import the IObjectSaftety COM Interface. 38 | /// See http://msdn.microsoft.com/en-us/library/aa768224(VS.85).aspx 39 | /// 40 | [ComImport] 41 | [Guid("CB5BDC81-93C1-11CF-8F20-00805F2CD064")] // This is the only Guid that cannot be modifed in this file 42 | [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] 43 | interface IObjectSafety 44 | { 45 | [PreserveSig] 46 | int GetInterfaceSafetyOptions(ref Guid riid, out int pdwSupportedOptions, out int pdwEnabledOptions); 47 | 48 | [PreserveSig] 49 | int SetInterfaceSafetyOptions(ref Guid riid, int dwOptionSetMask, int dwEnabledOptions); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Controls/dlgErrorViewSource.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.ComponentModel; 12 | using System.Data; 13 | using System.Drawing; 14 | using System.Text; 15 | using System.Windows.Forms; 16 | 17 | namespace DCSoft.CSharpWriter.Controls 18 | { 19 | public partial class dlgErrorViewSource : Form 20 | { 21 | public dlgErrorViewSource() 22 | { 23 | InitializeComponent(); 24 | } 25 | 26 | public string ReportSource 27 | { 28 | get 29 | { 30 | return txtSource.Text; 31 | } 32 | set 33 | { 34 | txtSource.Text = value; 35 | } 36 | } 37 | 38 | private void dlgErrorViewSource_Load(object sender, EventArgs e) 39 | { 40 | 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/CompareHandler.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Dom 14 | { 15 | /// 16 | /// 比较两个对象的委托类型 17 | /// 18 | /// 对象1 19 | /// 对象2 20 | /// 比较结果 21 | public delegate int CompareHandler( object object1 , object object2 ); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/ContentReferenceState.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Dom 14 | { 15 | /// 16 | /// 内容引用状态 17 | /// 18 | /// 编制 袁永福 19 | [Serializable] 20 | public enum ContentReferenceState 21 | { 22 | /// 23 | /// 禁止引用 24 | /// 25 | Disable , 26 | /// 27 | /// 每次都自动更新。 28 | /// 29 | AutoUpdate , 30 | /// 31 | /// 只更新一次,成功后不再更新。 32 | /// 33 | OnceUpdate , 34 | /// 35 | /// 加载成功,不再更新。 36 | /// 37 | Loaded 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/DomAccessFlags.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Dom 14 | { 15 | /// 16 | /// 访问文档对象模型时的标记 17 | /// 18 | [Flags] 19 | public enum DomAccessFlags 20 | { 21 | /// 22 | /// 没有任何标记 23 | /// 24 | None = 0 , 25 | /// 26 | /// 检查控件是否只读 27 | /// 28 | CheckControlReadonly= 1 , 29 | /// 30 | /// 是否检查用户可直接编辑设置 31 | /// 32 | CheckUserEditable = 2 , 33 | /// 34 | /// 检查输入域是否只读 35 | /// 36 | CheckReadonly = 4 , 37 | /// 38 | /// 检查用户权限限制 39 | /// 40 | CheckPermission= 8 , 41 | /// 42 | /// 检查表单视图模式 43 | /// 44 | CheckFormView = 16 , 45 | /// 46 | /// 检查文档锁定状态 47 | /// 48 | CheckLock = 32, 49 | ///// 50 | ///// 临时性的禁止授权控制 51 | ///// 52 | //ForbitPermission= 64, 53 | /// 54 | /// 所有的标记 55 | /// 56 | Normal = CheckControlReadonly 57 | | CheckUserEditable 58 | | CheckReadonly 59 | | CheckPermission 60 | | CheckFormView 61 | | CheckLock 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/DomElementDescriptorAttribute.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Dom 14 | { 15 | /// 16 | /// 描述文档元素类型的属性 17 | /// 18 | /// 编制 袁永福 19 | [AttributeUsage(AttributeTargets.Class )] 20 | public class DomElementDescriptorAttribute : Attribute 21 | { 22 | public DomElementDescriptorAttribute() 23 | { 24 | } 25 | 26 | private Type _PropertiesType = null; 27 | /// 28 | /// 元素属性包对象类型 29 | /// 30 | public Type PropertiesType 31 | { 32 | get { return _PropertiesType; } 33 | set { _PropertiesType = value; } 34 | } 35 | 36 | public static DomElementDescriptorAttribute GetDescriptor(Type elementType) 37 | { 38 | if (elementType == null) 39 | { 40 | throw new ArgumentNullException("elementType"); 41 | } 42 | if (elementType.Equals(typeof( DomElement)) == false 43 | && elementType.IsSubclassOf(typeof(DomElement)) == false) 44 | { 45 | throw new ArgumentOutOfRangeException(elementType.FullName); 46 | } 47 | DomElementDescriptorAttribute attr = (DomElementDescriptorAttribute)Attribute.GetCustomAttribute(elementType, typeof(DomElementDescriptorAttribute), true); 48 | return attr; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/DomLineBreakElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using DCSoft.CSharpWriter.Html; 11 | 12 | 13 | namespace DCSoft.CSharpWriter.Dom 14 | { 15 | /// 16 | /// 换行元素 17 | /// 18 | /// 编制 袁永福 19 | [System.Xml.Serialization.XmlType("XLineBreak")] 20 | [Serializable()] 21 | public class DomLineBreakElement : DomElement 22 | { 23 | private static System.Drawing.Bitmap myIcon = null; 24 | /// 25 | /// 静态构造函数,加载图标 26 | /// 27 | static DomLineBreakElement() 28 | { 29 | myIcon = WriterResources.linebreak; 30 | myIcon.MakeTransparent(System.Drawing.Color.White); 31 | } 32 | 33 | /// 34 | /// 初始化对象 35 | /// 36 | public DomLineBreakElement() 37 | { 38 | 39 | } 40 | 41 | internal void RefreshSize2( DomElement PreElement ) 42 | { 43 | float h = this.OwnerDocument.DefaultStyle.DefaultLineHeight ; 44 | if( PreElement != null && PreElement.Height > 0 ) 45 | { 46 | h = PreElement.Height ; 47 | } 48 | h = Math.Max( h , this.OwnerDocument.PixelToDocumentUnit( 10 )); 49 | this.Height = h ; 50 | this.Width = this.OwnerDocument.PixelToDocumentUnit( 10 ); 51 | this.SizeInvalid = false; 52 | } 53 | 54 | /// 55 | /// 返回对象包含的字符串数据 56 | /// 57 | /// 字符串数据 58 | public override string ToString() 59 | { 60 | return System.Environment.NewLine ; 61 | } 62 | 63 | public override void WriteHTML(WriterHtmlDocumentWriter writer) 64 | { 65 | writer.WriteElementString("br" , ""); 66 | } 67 | 68 | public override void WriteRTF(DCSoft.CSharpWriter.RTF.RTFContentWriter writer) 69 | { 70 | writer.WriteLineBreak(); 71 | } 72 | } 73 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/DomParagraphList.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using DCSoft.CSharpWriter.Html; 11 | 12 | namespace DCSoft.CSharpWriter.Dom 13 | { 14 | /// 15 | /// 段落列表对象 16 | /// 17 | public class DomParagraphList : DomContainerElement 18 | { 19 | /// 20 | /// 初始化对象 21 | /// 22 | public DomParagraphList() 23 | { 24 | } 25 | 26 | /// 27 | /// 段落列表样式 28 | /// 29 | protected ParagraphListStyle intListStyle = ParagraphListStyle.None ; 30 | /// 31 | /// 段落列表样式 32 | /// 33 | public ParagraphListStyle ListStyle 34 | { 35 | get{ return intListStyle ;} 36 | set{ intListStyle = value;} 37 | } 38 | 39 | public override void WriteHTML(WriterHtmlDocumentWriter writer) 40 | { 41 | if( intListStyle == ParagraphListStyle.BulletedList ) 42 | { 43 | writer.WriteStartElement("ul"); 44 | } 45 | else 46 | { 47 | writer.WriteStartElement("ol"); 48 | } 49 | DomElementList list = WriterUtils.MergeElements( this.Elements , false ); 50 | if( list != null && list.Count > 0 ) 51 | { 52 | foreach( DomElement element in list ) 53 | { 54 | if( writer.IncludeSelectionOndly == false 55 | || element.HasSelection ) 56 | { 57 | element.WriteHTML( writer ); 58 | } 59 | } 60 | } 61 | writer.WriteEndElement(); 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/ElementEnumerator.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Dom 14 | { 15 | /// 16 | /// 遍历文档元素事件委托类型 17 | /// 18 | /// 19 | /// 20 | public delegate void ElementEnumerateEventHandler( 21 | object sender , 22 | ElementEnumerateEventArgs args ); 23 | 24 | /// 25 | /// 遍历元素事件参数 26 | /// 27 | public class ElementEnumerateEventArgs : EventArgs 28 | { 29 | private bool _Cancel = false; 30 | /// 31 | /// 取消操作 32 | /// 33 | public bool Cancel 34 | { 35 | get { return _Cancel; } 36 | set { _Cancel = value; } 37 | } 38 | 39 | private bool _CancelChild = false; 40 | /// 41 | /// 取消遍历子孙元素 42 | /// 43 | public bool CancelChild 44 | { 45 | get { return _CancelChild; } 46 | set { _CancelChild = value; } 47 | } 48 | 49 | internal DomContainerElement _Parent = null; 50 | /// 51 | /// 父节点 52 | /// 53 | public DomContainerElement Parent 54 | { 55 | get { return _Parent; } 56 | //set { _Parent = value; } 57 | } 58 | 59 | internal DomElement _Element = null; 60 | /// 61 | /// 当前处理的元素 62 | /// 63 | public DomElement Element 64 | { 65 | get { return _Element; } 66 | //set { _Element = value; } 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/LinkClickEventHandler.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.CSharpWriter.Dom 12 | { 13 | /// 14 | /// 文档外部链接点击事件 15 | /// 16 | public delegate void LinkClickEventHandler( object Sender , LinkClickEventArgs args ); 17 | /// 18 | /// 文档链接点击事件参数类型 19 | /// 20 | public class LinkClickEventArgs : EventArgs 21 | { 22 | /// 23 | /// 初始化对象 24 | /// 25 | /// 文档对象 26 | /// 元素 27 | /// 链接目标 28 | public LinkClickEventArgs( DomDocument doc , DomElement e , string link ) 29 | { 30 | myDocument = doc ; 31 | myElement = e ; 32 | strLink = link ; 33 | } 34 | private DomDocument myDocument = null; 35 | /// 36 | /// 文档对象 37 | /// 38 | public DomDocument Document 39 | { 40 | get{ return myDocument ;} 41 | } 42 | 43 | private DomElement myElement = null; 44 | /// 45 | /// 触发链接的文档元素对象 46 | /// 47 | public DomElement Element 48 | { 49 | get{ return myElement ;} 50 | } 51 | 52 | private string strLink = null; 53 | /// 54 | /// 链接目标地址 55 | /// 56 | public string Link 57 | { 58 | get{ return strLink ;} 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/MouseCaptureInfo.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.CSharpWriter.Dom 12 | { 13 | /// 14 | /// MouseCaptureInfo 的摘要说明。 15 | /// 16 | public class MouseCaptureInfo 17 | { 18 | public MouseCaptureInfo( DocumentEventArgs args ) 19 | { 20 | intButton = args.Button ; 21 | intStartX = args.X ; 22 | intStartY = args.Y ; 23 | intLastX = args.X ; 24 | intLastY = args.Y ; 25 | } 26 | private System.Windows.Forms.MouseButtons intButton = System.Windows.Forms.MouseButtons.None ; 27 | public System.Windows.Forms.MouseButtons Button 28 | { 29 | get{ return intButton ;} 30 | set{ intButton = value;} 31 | } 32 | 33 | private int intStartX = 0 ; 34 | public int StartX 35 | { 36 | get{ return intStartX ;} 37 | set{ intStartX = value;} 38 | } 39 | 40 | private int intStartY = 0 ; 41 | public int StartY 42 | { 43 | get{ return intStartY ;} 44 | set{ intStartY = value;} 45 | } 46 | 47 | private int intLastX = 0 ; 48 | public int LastX 49 | { 50 | get{ return intLastX ;} 51 | set{ intLastX = value;} 52 | } 53 | 54 | private int intLastY = 0 ; 55 | public int LastY 56 | { 57 | get{ return intLastY ;} 58 | set{ intLastY = value;} 59 | } 60 | 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/TextAlignment.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | //using System; 10 | 11 | //namespace DCSoft.CSharpWriter.Dom 12 | //{ 13 | // /// 14 | // ///文档内容对齐方式 15 | // /// 16 | // public enum DocumentContentAlignment 17 | // { 18 | // /// 19 | // /// 左对齐 20 | // /// 21 | // Left = 0 , 22 | // /// 23 | // /// 居中对齐 24 | // /// 25 | // Center = 1 , 26 | // /// 27 | // /// 右对齐 28 | // /// 29 | // Right = 2 , 30 | // /// 31 | // /// 两边对齐 32 | // /// 33 | // Justify = 3 34 | // }//public enum TextAlignment 35 | //} -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/Undo/XTextUndoBase.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using DCSoft.CSharpWriter.Undo; 11 | namespace DCSoft.CSharpWriter.Dom.Undo 12 | { 13 | /// 14 | /// 文档撤销操作对象基础类型 15 | /// 16 | public class XTextUndoBase : IUndoable 17 | { 18 | /// 19 | /// 初始化对象 20 | /// 21 | public XTextUndoBase() 22 | { 23 | } 24 | 25 | /// 26 | /// 文档对象的撤销操作列表 27 | /// 28 | public XTextDocumentUndoList OwnerList 29 | { 30 | get{ return myDocument.UndoList ;} 31 | } 32 | 33 | //private XTextDocumentUndoGroup _OwnerGroup = null; 34 | 35 | //internal XTextDocumentUndoGroup OwnerGroup 36 | //{ 37 | // get { return _OwnerGroup; } 38 | // set { _OwnerGroup = value; } 39 | //} 40 | 41 | 42 | /// 43 | /// 对象所属的文档对象 44 | /// 45 | protected DomDocument myDocument = null; 46 | /// 47 | /// 对象所属的文档对象 48 | /// 49 | public DomDocument Document 50 | { 51 | get{ return myDocument ;} 52 | set{ myDocument = value;} 53 | } 54 | /// 55 | /// 对象名称 56 | /// 57 | public virtual string Name 58 | { 59 | get{ return null;} 60 | set{ ; } 61 | } 62 | 63 | private bool bolInGroup = false; 64 | /// 65 | /// 对象是否在一个批处理中 66 | /// 67 | public bool InGroup 68 | { 69 | get{ return bolInGroup ;} 70 | set{ bolInGroup = value;} 71 | } 72 | 73 | /// 74 | /// 执行撤销操作 75 | /// 76 | public virtual void Undo( XUndoEventArgs args ){} 77 | 78 | /// 79 | /// 执行重复操作 80 | /// 81 | public virtual void Redo(XUndoEventArgs args ){} 82 | } 83 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/Undo/XTextUndoSetDefaultFont.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | using System.Drawing; 13 | using DCSoft.Drawing; 14 | using DCSoft.CSharpWriter.Dom; 15 | using DCSoft.CSharpWriter.Controls ; 16 | namespace DCSoft.CSharpWriter.Dom.Undo 17 | { 18 | public class XTextUndoSetDefaultFont : XTextUndoBase 19 | { 20 | public XTextUndoSetDefaultFont( CSWriterControl ctl , XFontValue of, Color oc, XFontValue nf, Color nc) 21 | { 22 | _Control = ctl; 23 | _OldFont = of; 24 | _OldColor = oc; 25 | _NewFont = nf; 26 | _NewColor = nc; 27 | } 28 | private CSWriterControl _Control = null; 29 | private XFontValue _OldFont = null; 30 | private Color _OldColor = Color.Empty; 31 | private XFontValue _NewFont = null; 32 | private Color _NewColor = Color.Empty; 33 | 34 | public override void Undo(DCSoft.CSharpWriter.Undo.XUndoEventArgs args) 35 | { 36 | _Control.EditorSetDefaultFont(_OldFont, _OldColor, true); 37 | } 38 | 39 | public override void Redo(DCSoft.CSharpWriter.Undo.XUndoEventArgs args) 40 | { 41 | _Control.EditorSetDefaultFont(_NewFont, _NewColor, true); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/Undo/XTextUndoSetStyle.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Dom.Undo 14 | { 15 | /// 16 | /// 设置元素样式的重复/撤销操作对象 17 | /// 18 | public class XTextUndoSetStyle : XTextUndoBase 19 | { 20 | private DomElement _Element = null; 21 | 22 | public DomElement Element 23 | { 24 | get { return _Element; } 25 | set { _Element = value; } 26 | } 27 | 28 | 29 | 30 | private DocumentContentStyle _NewStyle = null; 31 | 32 | public DocumentContentStyle NewStyle 33 | { 34 | get { return _NewStyle; } 35 | set { _NewStyle = value; } 36 | } 37 | 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Dom/ViewEffects.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Dom 14 | { 15 | /// 16 | /// 影响视图的类型 17 | /// 18 | public enum ViewEffects 19 | { 20 | /// 21 | /// 没有影响 22 | /// 23 | None , 24 | /// 25 | /// 只是影响到显示,重新绘制即可。 26 | /// 27 | Display , 28 | /// 29 | /// 影响到文档的排版,需要重新排版重新绘制。 30 | /// 31 | Layout 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/EnableState.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter 14 | { 15 | /// 16 | /// 可用状态 17 | /// 18 | public enum EnableState 19 | { 20 | /// 21 | /// 默认状态 22 | /// 23 | Default , 24 | /// 25 | /// 可用状态 26 | /// 27 | Enabled , 28 | /// 29 | /// 无效状态 30 | /// 31 | Disabled 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/FileFormat.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.CSharpWriter 12 | { 13 | /// 14 | /// 文档格式样式 15 | /// 16 | public enum FileFormat 17 | { 18 | /// 19 | /// 无效值 20 | /// 21 | None, 22 | /// 23 | /// 标准的XML序列化格式 24 | /// 25 | XML , 26 | /// 27 | /// RTF文档 28 | /// 29 | RTF , 30 | /// 31 | /// 纯文本 32 | /// 33 | Text, 34 | /// 35 | /// HTML文档 36 | /// 37 | Html, 38 | ///// 39 | ///// 旧版本XML格式。 40 | ///// 41 | //OldXML 42 | } 43 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/MoveUnit.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter 14 | { 15 | /// 16 | /// 在文档中移动的单位 17 | /// 18 | public enum MoveUnit 19 | { 20 | Character , 21 | Word , 22 | Line , 23 | Paragraph , 24 | Cell , 25 | 26 | } 27 | 28 | public enum MoveTarget 29 | { 30 | /// 31 | /// 无意义 32 | /// 33 | None , 34 | /// 35 | /// 文档开头 36 | /// 37 | DocumentHome , 38 | /// 39 | /// 单元格的开头 40 | /// 41 | CellHome, 42 | /// 43 | /// 段落开头 44 | /// 45 | ParagraphHome , 46 | /// 47 | /// 上一行 48 | /// 49 | PreLine , 50 | /// 51 | /// 行首 52 | /// 53 | Home , 54 | /// 55 | /// 行尾 56 | /// 57 | End , 58 | /// 59 | /// 下一行 60 | /// 61 | NextLine, 62 | /// 63 | /// 段落尾 64 | /// 65 | ParagraphEnd , 66 | /// 67 | /// 单元格结尾 68 | /// 69 | CellEnd , 70 | /// 71 | /// 文档尾 72 | /// 73 | DocumentEnd 74 | 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/ArrowDropdown.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/ArrowDropdown.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/CheckEdit.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/CheckEdit.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/CheckEdit1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/CheckEdit1.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/CheckEdit11.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/CheckEdit11.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/CheckEdit111.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/CheckEdit111.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/close.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/close.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/close1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/close1.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/frm.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/frm.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/frm1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/frm1.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/frmX.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/frmX.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/frmX1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/frmX1.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Resources/lock.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/Resources/lock.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Script/DomExpressionList.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Script 14 | { 15 | /// 16 | /// 表达式信息列表 17 | /// 18 | [Serializable] 19 | public class DomExpressionList : List 20 | { 21 | /// 22 | /// 初始化对象 23 | /// 24 | public DomExpressionList() 25 | { 26 | } 27 | 28 | /// 29 | /// 获得指定名称的表达式对象 30 | /// 31 | /// 表达式名称 32 | /// 表达式对象 33 | public DomExpression this[string name] 34 | { 35 | get 36 | { 37 | foreach (DomExpression item in this) 38 | { 39 | if (item.Name == name) 40 | { 41 | return item; 42 | } 43 | } 44 | return null; 45 | } 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Script/WriterWindow.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | using DCSoft.Script; 13 | using DCSoft.CSharpWriter.Controls; 14 | 15 | namespace DCSoft.CSharpWriter.Script 16 | { 17 | /// 18 | /// 编辑器脚本使用的Window对象类型 19 | /// 20 | /// 编制 袁永福 21 | public class WriterWindow : XVBAWindowObject 22 | { 23 | /// 24 | /// 初始化对象 25 | /// 26 | public WriterWindow() 27 | { 28 | } 29 | 30 | private CSWriterControl _WriterControl = null; 31 | /// 32 | /// 文本编辑器控件 33 | /// 34 | public CSWriterControl WriterControl 35 | { 36 | get 37 | { 38 | return _WriterControl; 39 | } 40 | set 41 | { 42 | _WriterControl = value; 43 | } 44 | } 45 | 46 | /// 47 | /// 状态栏文本 48 | /// 49 | public object StatusText 50 | { 51 | get 52 | { 53 | if (this.WriterControl != null) 54 | { 55 | return this.WriterControl.StatusText; 56 | } 57 | else 58 | { 59 | return null; 60 | } 61 | } 62 | set 63 | { 64 | if (this.WriterControl != null) 65 | { 66 | this.WriterControl.SetStatusText(GetDisplayText(value)); 67 | } 68 | } 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Script/dlgExpressionEditor.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.ComponentModel; 12 | using System.Data; 13 | using System.Drawing; 14 | using System.Text; 15 | using System.Windows.Forms; 16 | 17 | namespace DCSoft.CSharpWriter.Script 18 | { 19 | public partial class dlgExpressionEditor : Form 20 | { 21 | public dlgExpressionEditor() 22 | { 23 | InitializeComponent(); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Undo/IUndoable.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.CSharpWriter.Undo 12 | { 13 | /// 14 | /// 可撤销和重做的接口类型 15 | /// 16 | public interface IUndoable 17 | { 18 | /// 19 | /// 撤销操作 20 | /// 21 | /// 事件参数 22 | void Undo(XUndoEventArgs args); 23 | /// 24 | /// 重新操作 25 | /// 26 | /// 事件参数 27 | void Redo( XUndoEventArgs args ); 28 | /// 29 | /// 对象是否在一个批处理中 30 | /// 31 | bool InGroup { get ; set ; } 32 | } 33 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/Undo/XUndoEventArgs.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter.Undo 14 | { 15 | public class XUndoEventArgs : EventArgs 16 | { 17 | /// 18 | /// 初始化对象 19 | /// 20 | public XUndoEventArgs() 21 | { 22 | } 23 | 24 | private Dictionary _Parameters = new Dictionary(); 25 | /// 26 | /// 参数 27 | /// 28 | public Dictionary Parameters 29 | { 30 | get { return _Parameters; } 31 | set { _Parameters = value; } 32 | } 33 | 34 | private bool _Cancel = false; 35 | /// 36 | /// 取消操作 37 | /// 38 | public bool Cancel 39 | { 40 | get { return _Cancel; } 41 | set { _Cancel = value; } 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/WriterConst.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.CSharpWriter 14 | { 15 | /// 16 | /// 定义一些常量 17 | /// 18 | internal class WriterConst 19 | { 20 | public readonly static DateTime NullDate = new DateTime(1900, 1, 1); 21 | public const int WriterApplicationID = 4; 22 | public const int License_OldXML = 1; 23 | 24 | public const string FS_Default = "default"; 25 | public const string FS_KBLibrary = "kblibrary"; 26 | public const string FS_Document = "document"; 27 | public const string FS_Template = "template"; 28 | public const string FS_KBListItem = "kblistitem"; 29 | 30 | public const string Header = "Header"; 31 | public const string Footer = "Footer"; 32 | public const string Body = "Body"; 33 | 34 | public const string FieldCode_Page = "Page"; 35 | public const string FieldCode_NumPages = "NumPages"; 36 | 37 | public const string EventName_ContentChanged = "ContentChanged"; 38 | 39 | public const string PropertyName_Visible = "Visible"; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/WriterStrings.en.Designer.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/blue96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/blue96.png -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/images/XDesignerZoomInAction.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/images/XDesignerZoomInAction.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/images/XDesignerZoomOutAction.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/images/XDesignerZoomOutAction.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/images/linebreak.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/images/linebreak.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/images/paragrapheof.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/images/paragrapheof.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/CSharpWriter/images/paragrapheof1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/CSharpWriter/images/paragrapheof1.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Common/DocumentCommentAttribute.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Text; 11 | 12 | namespace DCSoft.Common 13 | { 14 | /// 15 | /// 文档注释输出属性 16 | /// 17 | /// 编制 袁永福 18 | [System.AttributeUsage( AttributeTargets.All , AllowMultiple= false )] 19 | public class DocumentCommentAttribute : System.Attribute 20 | { 21 | /// 22 | /// 初始化对象 23 | /// 24 | public DocumentCommentAttribute() 25 | { 26 | } 27 | /// 28 | /// 初始化对象 29 | /// 30 | /// 输出等级 31 | public DocumentCommentAttribute(int level) 32 | { 33 | intLevel = level; 34 | } 35 | 36 | private int intLevel = 5 ; 37 | /// 38 | /// 输出等级 39 | /// 40 | public int Level 41 | { 42 | get { return intLevel; } 43 | set { intLevel = value; } 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Common/ListDebugView.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | using System.Collections; 13 | 14 | namespace DCSoft.Common 15 | { 16 | /// 17 | /// IDE调试模式下查看列表类型数据的视图对象 18 | /// 19 | /// 编制 袁永福 20 | public class ListDebugView 21 | { 22 | /// 23 | /// initialize instance 24 | /// 25 | /// 26 | public ListDebugView(object instance) 27 | { 28 | if (instance == null) 29 | { 30 | throw new ArgumentNullException("instance"); 31 | } 32 | myInstance = instance; 33 | } 34 | 35 | private object myInstance = null; 36 | 37 | /// 38 | /// output debug item at design time 39 | /// 40 | [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)] 41 | public object Items 42 | { 43 | get 44 | { 45 | if (myInstance is System.Collections.IEnumerable) 46 | { 47 | ArrayList list = new ArrayList(); 48 | foreach (object obj in ((IEnumerable)myInstance)) 49 | { 50 | list.Add(obj); 51 | } 52 | return list.ToArray(); 53 | } 54 | else 55 | { 56 | return myInstance; 57 | } 58 | } 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Common/ValueValidateStyleStrings.en.Designer.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Data/DataStrings.en.Designer.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Drawing/Design/dlgBorder.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.ComponentModel; 12 | using System.Data; 13 | using System.Drawing; 14 | using System.Text; 15 | using System.Windows.Forms; 16 | 17 | namespace DCSoft.Drawing.Design 18 | { 19 | public partial class dlgBorder : Form 20 | { 21 | public dlgBorder() 22 | { 23 | InitializeComponent(); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Drawing/DocumentContentAlignment.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | //using DCSoft.Common; 11 | 12 | namespace DCSoft.Drawing 13 | { 14 | /// 15 | ///文档内容对齐方式 16 | /// 17 | //[DocumentComment()] 18 | public enum DocumentContentAlignment 19 | { 20 | /// 21 | /// 左对齐 22 | /// 23 | Left = 0 , 24 | /// 25 | /// 居中对齐 26 | /// 27 | Center = 1 , 28 | /// 29 | /// 右对齐 30 | /// 31 | Right = 2 , 32 | /// 33 | /// 两边对齐 34 | /// 35 | Justify = 3 36 | }//public enum DocumentContentAlignment 37 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Drawing/Resources/Workspace-Background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/Drawing/Resources/Workspace-Background.jpg -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Drawing/VerticalAlignStyle.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | //using DCSoft.Common; 11 | 12 | namespace DCSoft.Drawing 13 | { 14 | /// 15 | /// 垂直对齐方式 16 | /// 17 | //[DocumentComment()] 18 | public enum VerticalAlignStyle 19 | { 20 | /// 21 | /// 对齐到顶端 22 | /// 23 | Top = 0 , 24 | /// 25 | /// 垂直居中对齐 26 | /// 27 | Middle = 1 , 28 | /// 29 | /// 对齐到底端 30 | /// 31 | Bottom = 2 , 32 | /// 33 | /// 垂直两边对齐 34 | /// 35 | Justify = 3 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLAttribute.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// HTML元素属性对象 14 | /// 15 | public class HTMLAttribute 16 | { 17 | /// 18 | /// 属性名称 19 | /// 20 | public string Name ; 21 | /// 22 | /// 属性值 23 | /// 24 | public string Value ; 25 | /// 26 | /// 返回除去换行回车字符的属性值 27 | /// 28 | public string FixValue 29 | { 30 | get 31 | { 32 | if( Value != null && Value.IndexOf("\r\n") >= 0 ) 33 | return Value.Replace("\r\n" , ""); 34 | else 35 | return Value ; 36 | } 37 | } 38 | /// 39 | /// 本属性值是否表示为XSL类型(即又前缀 "xsl:" ) 40 | /// 41 | public bool IsXSLAttribute 42 | { 43 | get 44 | { 45 | return Value != null && Value.StartsWith("xsl:"); 46 | } 47 | } 48 | /// 49 | /// 若本属性值表示XSL类型,则返回XSL值的名称(即前缀 "xsl:" 后面的部分) 50 | /// 51 | public string XSLSource 52 | { 53 | get 54 | { 55 | if( Value != null && Value.StartsWith("xsl:")) 56 | { 57 | string strValue = Value.Substring( 4 ); 58 | if( strValue.IndexOf("\r\n") >= 0 ) 59 | return strValue.Replace("\r\n",""); 60 | else 61 | return strValue ; 62 | } 63 | else 64 | return null; 65 | } 66 | } 67 | }//public class HTMLAttribute 68 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLBElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 粗体对象 14 | /// 15 | public class HTMLBElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回 "b" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.B ; } 23 | } 24 | /// 25 | /// 对象是否可用 26 | /// 27 | public bool Disabled 28 | { 29 | get{ return HasAttribute( StringConstAttributeName.Disabled );} 30 | set 31 | { 32 | if( value) 33 | SetAttribute( StringConstAttributeName.Disabled , "1"); 34 | else 35 | RemoveAttribute( StringConstAttributeName.Disabled ); 36 | } 37 | } 38 | }//public class HTMLBElement : HTMLContainer 39 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLBGSoundElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 网页背景音乐对象(Enables an author to create pages with background sounds or soundtracks.) 14 | /// 15 | public class HTMLBGSoundElement : HTMLElement 16 | { 17 | /// 18 | /// 对象标签名称,返回 "bgsound" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.BGSound ;} 23 | } 24 | /// 25 | /// Sets or retrieves the value indicating how the volume of the background sound is divided between the left and right speakers. 26 | /// 27 | public string Balance 28 | { 29 | get{ return GetAttribute( StringConstAttributeName.Balance );} 30 | set{ SetAttribute( StringConstAttributeName.Balance , value);} 31 | } 32 | /// 33 | /// Sets or retrieves the URL of a sound to play. 34 | /// 35 | public string Src 36 | { 37 | get{ return GetAttribute( StringConstAttributeName.Src );} 38 | set{ SetAttribute( StringConstAttributeName.Src , value);} 39 | } 40 | /// 41 | /// Sets or retrieves the number of times a sound or video clip will loop when activated. 42 | /// 43 | public string Loop 44 | { 45 | get{ return GetAttribute( StringConstAttributeName.Loop );} 46 | set{ SetAttribute( StringConstAttributeName.Loop , value);} 47 | } 48 | /// 49 | /// Sets or retrieves the volume setting for the sound. 50 | /// 51 | public string Volume 52 | { 53 | get{ return GetAttribute( StringConstAttributeName.Volume );} 54 | set{ SetAttribute( StringConstAttributeName.Volume , value);} 55 | } 56 | }//public class HTMLBGSoundElement : HTMLElement 57 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLBRElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 换行元素 14 | /// 15 | public class HTMLBRElement : HTMLElement 16 | { 17 | /// 18 | /// 对象标签名称, 返回 "br" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Br ; } 23 | } 24 | /// 25 | /// 对象表示的文本,返回一个换行回车符 26 | /// 27 | public override string InnerText 28 | { 29 | get 30 | { 31 | return System.Environment.NewLine ; 32 | } 33 | } 34 | }//public class HTMLBRElement : HTMLElement 35 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLDivElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// Div 对象 14 | /// 15 | public class HTMLDivElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"div" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Div ;} 23 | } 24 | }//public class HTMLDivElement : HTMLContainer 25 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLFontElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 字体对象 14 | /// 15 | public class HTMLFontElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签,返回"font" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Font ;} 23 | } 24 | /// 25 | /// 文字颜色 26 | /// 27 | public string Color 28 | { 29 | get{ return GetAttribute( StringConstAttributeName.Color );} 30 | set{ SetAttribute( StringConstAttributeName.Color , value);} 31 | } 32 | /// 33 | /// 对象是否可用 34 | /// 35 | public bool Disabled 36 | { 37 | get{ return GetBoolAttribute( StringConstAttributeName.Disabled );} 38 | set{ SetBoolAttribute( StringConstAttributeName.Disabled , value);} 39 | } 40 | /// 41 | /// 字体名称 42 | /// 43 | public string Face 44 | { 45 | get{ return GetAttribute( StringConstAttributeName.Face );} 46 | set{ SetAttribute( StringConstAttributeName.Face , value);} 47 | } 48 | /// 49 | /// 字体大小 50 | /// 51 | public string Size 52 | { 53 | get{ return GetAttribute( StringConstAttributeName.Size );} 54 | set{ SetAttribute( StringConstAttributeName.Size , value);} 55 | } 56 | }//public class HTMLFontElement : HTMLContainer 57 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLHRElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 水平线元素 14 | /// 15 | public class HTMLHRElement : HTMLElement 16 | { 17 | /// 18 | /// 对象标签名称,返回"hr" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Hr ; } 23 | } 24 | /// 25 | /// Sets or retrieves the alignment of the object relative to the display or table. 26 | /// 27 | public string Align 28 | { 29 | get{ return GetAttribute( StringConstAttributeName.Align );} 30 | set{ SetAttribute( StringConstAttributeName.Align , value);} 31 | } 32 | /// 33 | /// Sets or retrieves the color to be used by the object. 34 | /// 35 | public string Color 36 | { 37 | get{ return GetAttribute( StringConstAttributeName.Color );} 38 | set{ SetAttribute( StringConstAttributeName.Color , value);} 39 | } 40 | /// 41 | /// Sets or retrieves whether the horizontal rule is drawn with 3-D shading. 42 | /// 43 | public bool NoShade 44 | { 45 | get{ return GetBoolAttribute( StringConstAttributeName.Noshade ); } 46 | set{ SetBoolAttribute( StringConstAttributeName.Noshade , value );} 47 | } 48 | /// 49 | /// Sets or retrieves the height of the hr object. 50 | /// 51 | public string Size 52 | { 53 | get{ return GetAttribute( StringConstAttributeName.Size );} 54 | set{ SetAttribute( StringConstAttributeName.Size , value);} 55 | } 56 | }//public class HTMLHRElement : HTMLElement 57 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLHeadElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 文档头对象 14 | /// 15 | public class HTMLHeadElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"head" 19 | /// 20 | public override string TagName 21 | { 22 | get{return StringConstTagName.Head ;} 23 | } 24 | /// 25 | /// 内部方法,本对象子标签只能为 meta,link,script,style,hta:application,#comment,xml,并且最多只能有一个title 26 | /// 27 | /// 28 | /// 29 | internal override bool CheckChildTagName(string strName) 30 | { 31 | if( strName == StringConstAttributeName.Title ) 32 | { 33 | foreach( object obj in this.myChildNodes ) 34 | if( obj is HTMLTitleElement ) 35 | return false; 36 | return true; 37 | } 38 | else 39 | return strName == StringConstTagName.Meta 40 | || strName == StringConstTagName.Link 41 | || strName == StringConstTagName.Script 42 | || strName == StringConstTagName.Style 43 | || strName == StringConstTagName.HTAApplication 44 | || strName == StringConstTagName.Comment 45 | || strName == StringConstTagName.XML ; 46 | } 47 | /// 48 | /// 处理结束标签 49 | /// 50 | /// 51 | /// 52 | /// 53 | internal override bool MeetEndTag(HTMLTextReader myReader, string vTagName) 54 | { 55 | if( vTagName == StringConstTagName.Head ) 56 | { 57 | myReader.MoveAfter('>'); 58 | return true; 59 | } 60 | else 61 | return false; 62 | } 63 | }//public class HTMLHeadElement : HTMLContainer 64 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLHnElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 标题行对象 14 | /// 15 | public class HTMLHnElement : HTMLContainer 16 | { 17 | /// 18 | /// 标题等级 从1到6 19 | /// 20 | protected int intLevel = 1 ; 21 | /// 22 | /// 标题等级 从1到6 23 | /// 24 | public int Level 25 | { 26 | get{ return intLevel ;} 27 | set{ if( value >= 1 && value <= 6 ) intLevel = value;} 28 | } 29 | /// 30 | /// 对象标签名称,返回标题等级返回 h1,h2,h3,h4,h5或h6 31 | /// 32 | public override string TagName 33 | { 34 | get{ return StringConstTagName.H + intLevel ; } 35 | } 36 | /// 37 | /// 对象是否可用 38 | /// 39 | public bool Disabled 40 | { 41 | get{ return GetBoolAttribute( StringConstAttributeName.Disabled );} 42 | set{ SetBoolAttribute( StringConstAttributeName.Disabled , value);} 43 | } 44 | /// 45 | /// Sets or retrieves the alignment of the object relative to the display or table. 46 | /// 47 | public string Align 48 | { 49 | get{ return base.GetAttribute( StringConstAttributeName.Align );} 50 | set{ base.SetAttribute( StringConstAttributeName.Align , value );} 51 | } 52 | }//public class HTMLHnElement : HTMLContainer 53 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLIEDeviceRect.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 打印模板边框对象(Provides a container for LAYOUTRECT elements and other content in a print template.) 14 | /// 15 | public class HTMLIEDeviceRect : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"ie:devicerect" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.IEDevicerect ;} 23 | } 24 | /// 25 | /// Sets or retrieves whether the document will be printed at the highest possible resolution. 26 | /// 27 | public string Media 28 | { 29 | get{ return base.GetAttribute( StringConstAttributeName.Media );} 30 | set{ base.SetAttribute( StringConstAttributeName.Media , value);} 31 | } 32 | }//public class HTMLIEDeviceRect : HTMLContainer 33 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLLIElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// li 对象(Denotes one item in a list.) 14 | /// 15 | public class HTMLLIElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"li" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.LI ; } 23 | } 24 | /// 25 | /// 对象是否可用 26 | /// 27 | public bool Disabled 28 | { 29 | get{ return GetBoolAttribute( StringConstAttributeName.Disabled );} 30 | set{ SetBoolAttribute( StringConstAttributeName.Disabled ,value);} 31 | } 32 | /// 33 | /// Sets or retrieves advisory information (a ToolTip) for the object. 34 | /// 35 | public string Title 36 | { 37 | get{ return GetAttribute( StringConstAttributeName.Title );} 38 | set{ SetAttribute( StringConstAttributeName.Title , value );} 39 | } 40 | /// 41 | /// Sets or retrieves the style of the list. 42 | /// 43 | public string Type 44 | { 45 | get{ return GetAttribute( StringConstAttributeName.Type );} 46 | set{ SetAttribute( StringConstAttributeName.Type , value );} 47 | } 48 | /// 49 | /// 加载标签前的处理 50 | /// 51 | /// 52 | /// 53 | protected override bool BeforeLoadTag(string vTagName) 54 | { 55 | return vTagName != StringConstTagName.LI ; 56 | } 57 | }//public class HTMLLIElement : HTMLContainer 58 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLLabelElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 标签对象 14 | /// 15 | public class HTMLLabelElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"label" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Label ;} 23 | } 24 | /// 25 | /// 对象是否可用 26 | /// 27 | public bool Disabled 28 | { 29 | get{ return GetBoolAttribute( StringConstAttributeName.Disabled );} 30 | set{ SetBoolAttribute( StringConstAttributeName.Disabled , value);} 31 | } 32 | /// 33 | /// Sets or retrieves the object to which the given label object is assigned. 34 | /// 35 | public string HTMLFor 36 | { 37 | get{ return GetAttribute( StringConstAttributeName.HTMLFor );} 38 | set{ SetAttribute( StringConstAttributeName.HTMLFor , value);} 39 | } 40 | /// 41 | /// Sets or retrieves advisory information (a ToolTip) for the object. 42 | /// 43 | public string Title 44 | { 45 | get{ return GetAttribute( StringConstAttributeName.Title );} 46 | set{ SetAttribute( StringConstAttributeName.Title , value);} 47 | } 48 | }//public class HTMLLabelElement : HTMLContainer 49 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLMapElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 图片热点对象 14 | /// 15 | public class HTMLMapElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"map" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Map ; } 23 | } 24 | /// 25 | /// Sets or retrieves the name of the object. 26 | /// 27 | public string Name 28 | { 29 | get{ return GetAttribute( StringConstAttributeName.Name );} 30 | set{ SetAttribute( StringConstAttributeName.Name , value);} 31 | } 32 | /// 33 | /// Sets or retrieves advisory information (a ToolTip) for the object. 34 | /// 35 | public string Title 36 | { 37 | get{ return GetAttribute( StringConstAttributeName.Title );} 38 | set{ SetAttribute( StringConstAttributeName.Title , value);} 39 | } 40 | }//public class HTMLMapElement : HTMLContainer 41 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLNameStyleItem.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 带名称的样式表元素名称 14 | /// 15 | public class HTMLNameStyleItem : HTMLStyle 16 | { 17 | /// 18 | /// 元素名称 19 | /// 20 | protected string strName = "."; 21 | /// 22 | /// 元素名称 23 | /// 24 | public string Name 25 | { 26 | get{ return strName ;} 27 | set{ strName = value;} 28 | } 29 | }//public class HTMLNameStyleItem : HTMLStyle 30 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLNobarElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// Nobar 元素 14 | /// 15 | public class HTMLNobarElement : HTMLContainer 16 | { 17 | /// 18 | /// 元素标签名称,返回"nobr" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Nobr ; } 23 | } 24 | } 25 | 26 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLParamElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 对象参数对象,父标签只能为"applet"或"object" 14 | /// 15 | public class HTMLParamElement : HTMLElement 16 | { 17 | /// 18 | /// 对象标签名称,返回"param" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Param ; } 23 | } 24 | /// 25 | /// 参数名称 26 | /// 27 | public string Name 28 | { 29 | get{ return GetAttribute( StringConstAttributeName.Name );} 30 | set{ SetAttribute( StringConstAttributeName.Name , value);} 31 | } 32 | /// 33 | /// 参数数值 34 | /// 35 | public override string Value 36 | { 37 | get{ return GetAttribute( StringConstAttributeName.Value );} 38 | set{ SetAttribute( StringConstAttributeName.Value , value);} 39 | } 40 | }//public class HTMLParamElement : HTMLElement 41 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLPreElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 文本显示区域对象 14 | /// 15 | public class HTMLPreElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"pre" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Pre ; } 23 | } 24 | /// 25 | /// 对象是否不可用 26 | /// 27 | public bool Disabled 28 | { 29 | get{ return HasAttribute( StringConstAttributeName.Disabled );} 30 | set 31 | { 32 | if( value) 33 | SetAttribute( StringConstAttributeName.Disabled , "1"); 34 | else 35 | RemoveAttribute( StringConstAttributeName.Disabled ); 36 | } 37 | } 38 | /// 39 | /// 宽度 40 | /// 41 | public string Width 42 | { 43 | get{ return GetAttribute( StringConstAttributeName.Width );} 44 | set{ SetAttribute( StringConstAttributeName.Width , value);} 45 | } 46 | /// 47 | /// 是否换行 48 | /// 49 | public string Wrap 50 | { 51 | get{ return GetAttribute( StringConstAttributeName.Wrap );} 52 | set{ SetAttribute( StringConstAttributeName.Wrap , value);} 53 | } 54 | }//public class HTMLPreElement : HTMLContainer 55 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLSpanElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// SPAN 对象 14 | /// 15 | public class HTMLSpanElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"span" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Span ;} 23 | } 24 | /// 25 | /// 对象是否不可用 26 | /// 27 | public bool Disabled 28 | { 29 | get{ return GetBoolAttribute( StringConstAttributeName.Disabled );} 30 | set{ SetBoolAttribute( StringConstAttributeName.Disabled , value);} 31 | } 32 | }//public class HTMLSpanElement : HTMLContainer 33 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLSubElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 下标对象 14 | /// 15 | public class HTMLSubElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"sub" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Sub ;} 23 | } 24 | /// 25 | /// 对象是否不可用 26 | /// 27 | public bool Disabled 28 | { 29 | get{ return GetBoolAttribute( StringConstAttributeName.Disabled );} 30 | set{ SetBoolAttribute( StringConstAttributeName.Disabled , value);} 31 | } 32 | }//public class HTMLSubElement : HTMLContainer 33 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLSupElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 上标对象 14 | /// 15 | public class HTMLSupElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"sup" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.Sup ;} 23 | } 24 | /// 25 | /// 对象是否不可用 26 | /// 27 | public bool Disabled 28 | { 29 | get{ return GetBoolAttribute( StringConstAttributeName.Disabled );} 30 | set{ SetBoolAttribute( StringConstAttributeName.Disabled , value);} 31 | } 32 | }//public class HTMLSupElement : HTMLContainer 33 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLTBodyElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 表身对象 14 | /// 15 | public class HTMLTBodyElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"tbody" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.TBody ; } 23 | } 24 | /// 25 | /// 表格对象下属对象只能是 tr 26 | /// 27 | /// 28 | /// 29 | internal override bool CheckChildTagName(string strName) 30 | { 31 | return strName == StringConstTagName.Tr 32 | || strName == StringConstTagName.Col ; 33 | } 34 | }//public class HTMLTBodyElement : HTMLContainer 35 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLTitleElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 文档标题对象 14 | /// 15 | public class HTMLTitleElement : HTMLElement 16 | { 17 | private string strText ; 18 | /// 19 | /// 对象标签名称,返回"title" 20 | /// 21 | public override string TagName 22 | { 23 | get{ return StringConstAttributeName.Title ;} 24 | } 25 | /// 26 | /// 对象文本 27 | /// 28 | public override string Text 29 | { 30 | get{ return strText ; } 31 | set{ strText = value; } 32 | } 33 | /// 34 | /// 对象值 35 | /// 36 | public override string Value 37 | { 38 | get{ return strText ; } 39 | set{ strText = value; } 40 | } 41 | /// 42 | /// 内部使用 43 | /// 44 | protected override bool HasText 45 | { 46 | get{ return true;} 47 | } 48 | }//public class HTMLTitleElement : HTMLElement 49 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLULElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// UL对象 14 | /// 15 | public class HTMLULElement : HTMLContainer 16 | { 17 | /// 18 | /// 对象标签名称,返回"ul" 19 | /// 20 | public override string TagName 21 | { 22 | get{ return StringConstTagName.UL ;} 23 | } 24 | /// 25 | /// 对象是否不可用 26 | /// 27 | public bool Disabled 28 | { 29 | get{ return GetBoolAttribute( StringConstAttributeName.Disabled );} 30 | set{ SetBoolAttribute( StringConstAttributeName.Disabled ,value);} 31 | } 32 | /// 33 | /// 标题 34 | /// 35 | public string Title 36 | { 37 | get{ return GetAttribute( StringConstAttributeName.Title );} 38 | set{ SetAttribute( StringConstAttributeName.Title , value );} 39 | } 40 | /// 41 | /// 类型 42 | /// 43 | public string Type 44 | { 45 | get{ return GetAttribute( StringConstAttributeName.Type );} 46 | set{ SetAttribute( StringConstAttributeName.Type , value );} 47 | } 48 | /// 49 | /// 已重载:UL对象只能接收LI子对象 50 | /// 51 | /// 52 | /// 53 | internal override bool CheckChildTagName(string strName) 54 | { 55 | return strName == StringConstTagName.LI ; 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/HTMLUnknowElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 不可识别的对象 14 | /// 15 | public class HTMLUnknowElement : HTMLContainer 16 | { 17 | // public override bool Write(System.Xml.XmlWriter myWriter) 18 | // { 19 | // return base.Write (myWriter); 20 | // } 21 | 22 | private string strTagName ; 23 | /// 24 | /// 对象标签名称,根据解析结果输出对象标签名称 25 | /// 26 | public override string TagName 27 | { 28 | get{ return strTagName ;} 29 | } 30 | internal void SetTagName( string v) 31 | { 32 | strTagName = v; 33 | } 34 | }//public class HTMLUnknowElement : HTMLContainer 35 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/IHTMLFormElement.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System ; 10 | namespace DCSoft.HtmlDom 11 | { 12 | /// 13 | /// 表单元素接口 14 | /// 15 | internal interface IHTMLFormElement 16 | { 17 | /// 18 | /// 对象所在的表单对象 19 | /// 20 | HTMLFormElement Form 21 | { 22 | get; 23 | set; 24 | } 25 | }//internal interface IHTMLFormElement 26 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstAlign.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// 对齐方式可选值字符串常量列表 15 | /// 16 | public sealed class StringConstAlign 17 | { 18 | /// 19 | /// 常量 "center" 20 | /// 21 | public const string Center = "center"; 22 | /// 23 | /// 常量 "justify" 24 | /// 25 | public const string Justify = "justify"; 26 | /// 27 | /// 常量 "left" 28 | /// 29 | public const string Left = "left"; 30 | /// 31 | /// 常量 "right" 32 | /// 33 | public const string Right = "right"; 34 | 35 | private StringConstAlign(){} 36 | }//public sealed class StringConstAlign 37 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstEntity.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// HTML实体字符串常量列表 15 | /// 16 | public sealed class StringConstEntity 17 | { 18 | /// 19 | /// 空格 20 | /// 21 | public const string WhiteSpace = " "; 22 | /// 23 | /// and 符号 24 | /// 25 | public const string Entity_And = "&"; // 实体 & 26 | /// 27 | /// 小于号 28 | /// 29 | public const string Entity_Small = "<"; // 实体 < 30 | /// 31 | /// 大于号 32 | /// 33 | public const string Entity_Big = ">"; // 实体 > 34 | /// 35 | /// 单引号 36 | /// 37 | public const string Entity_Mark = "'"; // 实体 ' 38 | /// 39 | /// 双引号 40 | /// 41 | public const string Entity_DblMark = """; // 实体 " 42 | 43 | private StringConstEntity(){} 44 | } 45 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstImgAlign.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// 图片对齐方式字符串常量列表,应用于 img 标签的 align 属性 15 | /// 16 | public sealed class StringConstImgAlign 17 | { 18 | /// 19 | /// 默认值 20 | /// 21 | public const string DefaultValue= "left"; 22 | 23 | public const string absbottom = "absbottom"; 24 | public const string absmiddle = "absmiddle"; 25 | public const string baseline = "baseline"; 26 | public const string bottom = "bottom"; 27 | public const string left = "left"; 28 | public const string middle = "middle"; 29 | public const string right = "right"; 30 | public const string texttop = "texttop"; 31 | public const string top = "top"; 32 | 33 | private StringConstImgAlign(){} 34 | }//public sealed class StringConstImgAlign 35 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstInputType.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// 表单域类型可选值字符串常量列表 15 | /// 16 | public sealed class StringConstInputType 17 | { 18 | /// 19 | /// 常量 "button" 20 | /// 21 | public const string Button = "button"; 22 | /// 23 | /// 常量 "radio" 24 | /// 25 | public const string Radio = "radio"; 26 | /// 27 | /// 常量 "checkbox" 28 | /// 29 | public const string CheckBox = "checkbox"; 30 | /// 31 | /// 常量 "file" 32 | /// 33 | public const string File = "file"; 34 | /// 35 | /// 常量 "text" 36 | /// 37 | public const string Text = "text"; 38 | /// 39 | /// 常量 "password" 40 | /// 41 | public const string Password = "password"; 42 | /// 43 | /// 常量 "image" 44 | /// 45 | public const string Image = "image"; 46 | /// 47 | /// 常量 "hidden" 48 | /// 49 | public const string Hidden = "hidden"; 50 | 51 | private StringConstInputType(){} 52 | }//public sealed class StringConstInputType 53 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstScriptLanguage.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// 脚本语言类型可选值字符串常量列表 15 | /// 16 | public sealed class StringConstScriptLanguage 17 | { 18 | public const string JScript = "jscript"; 19 | public const string JavaScript = "javascript"; 20 | public const string VBS = "vbs"; 21 | public const string VBScript = "vbscript"; 22 | public const string XML = "xml"; 23 | 24 | private StringConstScriptLanguage(){} 25 | }//public sealed class StringConstScriptLanguage 26 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstTarget.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// target属性可选值字符串常量列表 15 | /// 16 | public sealed class StringConstTarget 17 | { 18 | /// 19 | /// 新页面 "_blank" 20 | /// 21 | public const string _Blank = "_blank"; 22 | /// 23 | /// 媒体页面 "_media" 24 | /// 25 | public const string _Media = "_media"; 26 | /// 27 | /// 父框架 "_parent" 28 | /// 29 | public const string _Parent = "_parent"; 30 | /// 31 | /// 搜索页面 "_search" 32 | /// 33 | public const string _Search = "_search"; 34 | /// 35 | /// 当前框架 "_self" 36 | /// 37 | public const string _Self = "_self"; 38 | /// 39 | /// 顶框架 "_top" 40 | /// 41 | public const string _Top = "_top"; 42 | 43 | private StringConstTarget() 44 | { 45 | } 46 | }//public sealed class HTMLTargetConst 47 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstValue.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// 某些表示真假的属性的值 15 | /// 16 | public sealed class StringConstValue 17 | { 18 | /// 19 | /// 常量 "true" 20 | /// 21 | public const string _True = "true"; 22 | /// 23 | /// 常量 "false" 24 | /// 25 | public const string _False = "false"; 26 | /// 27 | /// 常量 "yes" 28 | /// 29 | public const string _Yes = "yes"; 30 | /// 31 | /// 常量 "no" 32 | /// 33 | public const string _No = "no"; 34 | 35 | private StringConstValue(){} 36 | }//public sealed class StringConstValue 37 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstVisibility.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// Visibility属性可选值字符串常量列表 15 | /// 16 | public class StringConstVisibility 17 | { 18 | /// 19 | /// 常量 "inherit" 20 | /// 21 | public const string Inherit = "inherit"; 22 | /// 23 | /// 常量 "visible" 24 | /// 25 | public const string Visible = "visible"; 26 | /// 27 | /// 常量 "hidden" 28 | /// 29 | public const string Hidden = "hidden"; 30 | 31 | private StringConstVisibility(){} 32 | }//public class StringConstVisibility 33 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstWordBreak.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// WordBreak属性可选值字符串常量列表 15 | /// 16 | public sealed class StringConstWordBreak 17 | { 18 | /// 19 | /// 常量 "normal" 20 | /// 21 | public const string Normal = "normal"; 22 | /// 23 | /// 常量 "break-all" 24 | /// 25 | public const string Break_All = "break-all"; 26 | /// 27 | /// 常量 "keep-all" 28 | /// 29 | public const string Keep_All = "keep-all"; 30 | 31 | private StringConstWordBreak(){} 32 | }//public sealed class StringConstWordBreak 33 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstWordWrap.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// WordWrap属性可选值字符串常量列表 15 | /// 16 | public sealed class StringConstWordWrap 17 | { 18 | /// 19 | /// 常量 "normal" 20 | /// 21 | public const string Normal = "normal"; 22 | /// 23 | /// 常量 "break_word" 24 | /// 25 | public const string Break_Word = "break-word"; 26 | 27 | private StringConstWordWrap(){} 28 | }//public sealed class StringConstWordWrap 29 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstWrap.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// Wrap属性可选值字符串常量列表 15 | /// 16 | public sealed class StringConstWrap 17 | { 18 | /// 19 | /// 常量 "soft" 20 | /// 21 | public const string Soft = "soft"; 22 | /// 23 | /// 常量 "hard" 24 | /// 25 | public const string Hard = "hard"; 26 | /// 27 | /// 常量 "off" 28 | /// 29 | public const string Off = "off"; 30 | 31 | private StringConstWrap(){} 32 | }//public sealed class StringConstWrap 33 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/HtmlDom/StringConstXSLT.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.HtmlDom 12 | { 13 | /// 14 | /// 一些XSLT标签和属性的名称列表 15 | /// 16 | public sealed class StringConstXSLT 17 | { 18 | public const string Stylesheet = "xsl:stylesheet"; 19 | public const string Template = "xsl:template"; 20 | public const string NSName = "xmlns:xsl"; 21 | public const string NSValue = "http://www.w3.org/1999/XSL/Transform"; 22 | public const string Version = "version"; 23 | public const string Match = "match"; 24 | public const string For_each = "xsl:for-each"; 25 | public const string Value_of = "xsl:value-of"; 26 | public const string IF = "xsl:if"; 27 | public const string Test = "test"; 28 | public const string Select = "select"; 29 | public const string Name = "name"; 30 | public const string Attribute = "xsl:attribute"; 31 | public const string Variable = "xsl:variable"; 32 | public const string Text = "xsl:text"; 33 | public const string Comment = "xsl:comment"; 34 | public const string Output = "xsl:output"; 35 | public const string Include = "xsl:include"; 36 | public const string Calltemplate = "xsl:call-template" ; 37 | public const string WithParam = "xsl:with-param" ; 38 | public const string Disable_output_escaping = "disable-output-escaping"; 39 | 40 | private StringConstXSLT(){} 41 | }//public sealed class StringConstXSLT 42 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Printing/IPageDocument.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | namespace DCSoft.Printing 11 | { 12 | /// 13 | /// 支持分页显示的文档接口类型 14 | /// 15 | public interface IPageDocument 16 | { 17 | /// 18 | /// 页面设置信息对象 19 | /// 20 | XPageSettings PageSettings 21 | { 22 | get; 23 | set; 24 | } 25 | /// 26 | /// 文档使用的绘图单位 27 | /// 28 | System.Drawing.GraphicsUnit DocumentGraphicsUnit 29 | { 30 | get ; 31 | set ; 32 | } 33 | /// 34 | /// 页面对象集合 35 | /// 36 | PrintPageCollection Pages 37 | { 38 | get ; 39 | set ; 40 | } 41 | 42 | ///// 43 | ///// 当前打印的页面序号 44 | ///// 45 | //int PageIndex 46 | //{ 47 | // get; 48 | // set; 49 | //} 50 | /// 51 | /// 绘制文档内容 52 | /// 53 | /// 事件发起者 54 | /// 事件参数 55 | void DrawContent( PageDocumentPaintEventArgs args ); 56 | }//public interface IPageDocument 57 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Printing/PageViewMode.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.Printing 14 | { 15 | /// 16 | /// 页面显示方式 17 | /// 18 | public enum PageViewMode 19 | { 20 | /// 21 | /// 普通方式 22 | /// 23 | Normal, 24 | /// 25 | /// 页面方式 26 | /// 27 | Page, 28 | /// 29 | /// 压缩页面方式 30 | /// 31 | CompressPage 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Printing/PrintUtil.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.Printing 12 | { 13 | /// 14 | /// 打印相关的例程 15 | /// 16 | internal sealed class PrintUtil 17 | { 18 | /// 19 | /// 将图形坐标单位转换为图元坐标单位 20 | /// 21 | /// 图形坐标单位 22 | /// 图元坐标单位 23 | public static System.Drawing.Imaging.MetafileFrameUnit ConvertUnit( System.Drawing.GraphicsUnit unit ) 24 | { 25 | if( unit == System.Drawing.GraphicsUnit.Document ) 26 | return System.Drawing.Imaging.MetafileFrameUnit.Document ; 27 | if( unit == System.Drawing.GraphicsUnit.Inch ) 28 | return System.Drawing.Imaging.MetafileFrameUnit.Inch ; 29 | if( unit == System.Drawing.GraphicsUnit.Millimeter ) 30 | return System.Drawing.Imaging.MetafileFrameUnit.Millimeter ; 31 | if( unit == System.Drawing.GraphicsUnit.Pixel ) 32 | return System.Drawing.Imaging.MetafileFrameUnit.Pixel ; 33 | if( unit == System.Drawing.GraphicsUnit.Point ) 34 | return System.Drawing.Imaging.MetafileFrameUnit.Point ; 35 | return System.Drawing.Imaging.MetafileFrameUnit.Pixel ; 36 | } 37 | 38 | /// 39 | /// 本对象不可实例化 40 | /// 41 | private PrintUtil(){} 42 | } 43 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Printing/PrintingResources.en.Designer.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/RTF/RTFAlignment.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | /* 10 | * 11 | * DCSoft RTF DOM v1.0 12 | * Author : Yuan yong fu. 13 | * Email : yyf9989@hotmail.com 14 | * blog site:http://www.cnblogs.com/xdesigner. 15 | * 16 | */ 17 | 18 | 19 | 20 | using System; 21 | using System.Text; 22 | 23 | namespace DCSoft.RTF 24 | { 25 | /// 26 | /// text alignment 27 | /// 28 | public enum RTFAlignment 29 | { 30 | /// 31 | /// left 32 | /// 33 | Left, 34 | /// 35 | /// center 36 | /// 37 | Center, 38 | /// 39 | /// right 40 | /// 41 | Right, 42 | /// 43 | /// justify 44 | /// 45 | Justify 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/RTF/RTFDomBookmark.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | /* 10 | * 11 | * DCSoft RTF DOM v1.0 12 | * Author : Yuan yong fu. 13 | * Email : yyf9989@hotmail.com 14 | * blog site:http://www.cnblogs.com/xdesigner. 15 | * 16 | */ 17 | 18 | 19 | 20 | using System; 21 | using System.Text; 22 | 23 | namespace DCSoft.RTF 24 | { 25 | /// 26 | /// rtf bookmark 27 | /// 28 | [Serializable()] 29 | public class RTFDomBookmark : RTFDomElement 30 | { 31 | public RTFDomBookmark() 32 | { 33 | } 34 | 35 | private string strName = null; 36 | /// 37 | /// name 38 | /// 39 | [System.ComponentModel.DefaultValue( null )] 40 | public string Name 41 | { 42 | get 43 | { 44 | return strName; 45 | } 46 | set 47 | { 48 | strName = value; 49 | } 50 | } 51 | 52 | public override string ToString() 53 | { 54 | return "BookMark:" + strName; 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/RTF/RTFDomElementContainer.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | /* 10 | * 11 | * DCSoft RTF DOM v1.0 12 | * Author : Yuan yong fu. 13 | * Email : yyf9989@hotmail.com 14 | * blog site:http://www.cnblogs.com/xdesigner. 15 | * 16 | */ 17 | 18 | using System; 19 | using System.Text; 20 | 21 | namespace DCSoft.RTF 22 | { 23 | /// 24 | /// RTF element container 25 | /// 26 | [Serializable()] 27 | public class RTFDomElementContainer : RTFDomElement 28 | { 29 | /// 30 | /// initialize instance 31 | /// 32 | public RTFDomElementContainer() 33 | { 34 | } 35 | private string strName = null; 36 | /// 37 | /// name 38 | /// 39 | [System.ComponentModel.DefaultValue( null )] 40 | public string Name 41 | { 42 | get 43 | { 44 | return strName; 45 | } 46 | set 47 | { 48 | strName = value; 49 | } 50 | } 51 | 52 | public override string ToString() 53 | { 54 | return "Container : " + strName; 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/RTF/RTFDomLineBreak.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | /* 10 | * 11 | * DCSoft RTF DOM v1.0 12 | * Author : Yuan yong fu. 13 | * Email : yyf9989@hotmail.com 14 | * blog site:http://www.cnblogs.com/xdesigner. 15 | * 16 | */ 17 | 18 | 19 | 20 | using System; 21 | using System.Text; 22 | 23 | namespace DCSoft.RTF 24 | { 25 | /// 26 | /// line element 27 | /// 28 | [Serializable()] 29 | public class RTFDomLineBreak : RTFDomElement 30 | { 31 | /// 32 | /// initialize instance 33 | /// 34 | public RTFDomLineBreak() 35 | { 36 | this.Locked = true; 37 | } 38 | 39 | public override string InnerText 40 | { 41 | get 42 | { 43 | return Environment.NewLine; 44 | } 45 | } 46 | public override string ToString() 47 | { 48 | return "linebreak"; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/RTF/RTFDomPageBreak.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | /* 10 | * 11 | * DCSoft RTF DOM v1.0 12 | * Author : Yuan yong fu. 13 | * Email : yyf9989@hotmail.com 14 | * blog site:http://www.cnblogs.com/xdesigner. 15 | * 16 | */ 17 | 18 | using System; 19 | using System.Collections.Generic; 20 | using System.Text; 21 | 22 | namespace DCSoft.RTF 23 | { 24 | /// 25 | /// 强制分页符 26 | /// 27 | [Serializable()] 28 | public class RTFDomPageBreak:RTFDomElement 29 | { 30 | /// 31 | /// 初始化对象 32 | /// 33 | public RTFDomPageBreak() 34 | { 35 | //对象不能有子元素 36 | this.Locked = true; 37 | } 38 | 39 | public override string InnerText 40 | { 41 | get 42 | { 43 | return ""; 44 | } 45 | } 46 | public override string ToString() 47 | { 48 | return "page"; 49 | } 50 | } 51 | 52 | 53 | } 54 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/RTF/RTFDomShapeGroup.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | /* 10 | * 11 | * DCSoft RTF DOM v1.0 12 | * Author : Yuan yong fu. 13 | * Email : yyf9989@hotmail.com 14 | * blog site:http://www.cnblogs.com/xdesigner. 15 | * 16 | */ 17 | 18 | 19 | 20 | using System; 21 | using System.Text; 22 | 23 | namespace DCSoft.RTF 24 | { 25 | /// 26 | /// shape group 27 | /// 28 | [Serializable()] 29 | public class RTFDomShapeGroup : RTFDomElement 30 | { 31 | /// 32 | /// initialize instance 33 | /// 34 | public RTFDomShapeGroup() 35 | { 36 | } 37 | 38 | private StringAttributeCollection myExtAttrbutes = new StringAttributeCollection(); 39 | /// 40 | /// extern attributes 41 | /// 42 | public StringAttributeCollection ExtAttrbutes 43 | { 44 | get 45 | { 46 | return myExtAttrbutes; 47 | } 48 | set 49 | { 50 | myExtAttrbutes = value; 51 | } 52 | } 53 | 54 | public override string ToString() 55 | { 56 | return "ShapeGroup"; 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/RTF/RTFDomTable.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | /* 10 | * 11 | * DCSoft RTF DOM v1.0 12 | * Author : Yuan yong fu. 13 | * Email : yyf9989@hotmail.com 14 | * blog site:http://www.cnblogs.com/xdesigner. 15 | * 16 | */ 17 | 18 | 19 | using System; 20 | using System.Text; 21 | 22 | namespace DCSoft.RTF 23 | { 24 | /// 25 | /// table 26 | /// 27 | [Serializable()] 28 | public class RTFDomTable : RTFDomElement 29 | { 30 | /// 31 | /// initialize instance 32 | /// 33 | public RTFDomTable() 34 | { 35 | } 36 | 37 | private RTFDomElementList myColumns = new RTFDomElementList(); 38 | /// 39 | /// column list 40 | /// 41 | public RTFDomElementList Columns 42 | { 43 | get 44 | { 45 | return myColumns; 46 | } 47 | set 48 | { 49 | myColumns = value; 50 | } 51 | } 52 | 53 | public override string ToString() 54 | { 55 | return "Table(Rows:" + this.Elements.Count + " Columns:" + myColumns.Count + ")"; 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/RTF/RTFDomTableColumn.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | /* 10 | * 11 | * DCSoft RTF DOM v1.0 12 | * Author : Yuan yong fu. 13 | * Email : yyf9989@hotmail.com 14 | * blog site:http://www.cnblogs.com/xdesigner. 15 | * 16 | */ 17 | 18 | 19 | 20 | using System; 21 | using System.Text; 22 | 23 | namespace DCSoft.RTF 24 | { 25 | /// 26 | /// table column 27 | /// 28 | [Serializable()] 29 | public class RTFDomTableColumn : RTFDomElement 30 | { 31 | /// 32 | /// initialize instance 33 | /// 34 | public RTFDomTableColumn() 35 | { 36 | } 37 | 38 | private int intWidth = 0; 39 | /// 40 | /// width 41 | /// 42 | [System.ComponentModel.DefaultValue( 0 )] 43 | public int Width 44 | { 45 | get 46 | { 47 | return intWidth; 48 | } 49 | set 50 | { 51 | intWidth = value; 52 | } 53 | } 54 | 55 | public override string ToString() 56 | { 57 | return "Column"; 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/RTF/RTFDomTempContainer.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | /* 10 | * 11 | * DCSoft RTF DOM v1.0 12 | * Author : Yuan yong fu. 13 | * Email : yyf9989@hotmail.com 14 | * blog site:http://www.cnblogs.com/xdesigner. 15 | * 16 | */ 17 | 18 | using System; 19 | using System.Collections.Generic; 20 | using System.Text; 21 | 22 | namespace DCSoft.RTF 23 | { 24 | public class RTFDomTempContainer: RTFDomElement 25 | { 26 | 27 | public RTFDomTempContainer() 28 | { 29 | } 30 | 31 | private DocumentFormatInfo myFormat = new DocumentFormatInfo(); 32 | /// 33 | /// format 34 | /// 35 | public DocumentFormatInfo Format 36 | { 37 | get 38 | { 39 | return myFormat; 40 | } 41 | set 42 | { 43 | myFormat = value; 44 | } 45 | } 46 | 47 | public override string ToString() 48 | { 49 | return "TempContainer"; 50 | } 51 | 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/RTF/RTFNodeType.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | /* 10 | * 11 | * DCSoft RTF DOM v1.0 12 | * Author : Yuan yong fu. 13 | * Email : yyf9989@hotmail.com 14 | * blog site:http://www.cnblogs.com/xdesigner. 15 | * 16 | */ 17 | 18 | 19 | using System; 20 | 21 | namespace DCSoft.RTF 22 | { 23 | /// 24 | /// RTF node type 25 | /// 26 | public enum RTFNodeType 27 | { 28 | /// 29 | /// root 30 | /// 31 | Root , 32 | /// 33 | /// keyword, etc /marginl 34 | /// 35 | Keyword , 36 | /// 37 | /// external keyword node , etc. /*/keyword 38 | /// 39 | ExtKeyword , 40 | /// 41 | /// control 42 | /// 43 | Control , 44 | /// 45 | /// plain text 46 | /// 47 | Text , 48 | /// 49 | /// group , etc . { } 50 | /// 51 | Group , 52 | /// 53 | /// nothing 54 | /// 55 | None 56 | } 57 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/RTF/RTFVerticalAlignment.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | /* 10 | * 11 | * DCSoft RTF DOM v1.0 12 | * Author : Yuan yong fu. 13 | * Email : yyf9989@hotmail.com 14 | * blog site:http://www.cnblogs.com/xdesigner. 15 | * 16 | */ 17 | 18 | 19 | using System; 20 | 21 | namespace DCSoft.RTF 22 | { 23 | /// 24 | /// vertiacal alignment 25 | /// 26 | public enum RTFVerticalAlignment 27 | { 28 | /// 29 | /// top alignment 30 | /// 31 | Top, 32 | /// 33 | /// middle alignment 34 | /// 35 | Middle, 36 | /// 37 | /// bottom alignment 38 | /// 39 | Bottom 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Script/MyStringList.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Text; 11 | 12 | namespace DCSoft.Script 13 | { 14 | /// 15 | /// string list , would not contains empty , null or same text, ignore case. 16 | /// 17 | [Serializable()] 18 | public class MyStringList : System.Collections.CollectionBase 19 | { 20 | /// 21 | /// initialize instance 22 | /// 23 | public MyStringList() 24 | { 25 | } 26 | 27 | public string this[int index] 28 | { 29 | get 30 | { 31 | return (string)this.List[index]; 32 | } 33 | } 34 | 35 | public int Add(string item) 36 | { 37 | if (item == null || item.Length == 0) 38 | return -1; 39 | if (IndexOf(item) >= 0) 40 | return -1; 41 | return this.List.Add(item); 42 | } 43 | 44 | public bool Contains(string item) 45 | { 46 | return this.IndexOf(item) >= 0; 47 | } 48 | 49 | public MyStringList Clone() 50 | { 51 | MyStringList list = new MyStringList(); 52 | foreach (string item in this) 53 | { 54 | list.List.Add(item); 55 | } 56 | return list; 57 | } 58 | public int IndexOf(string item) 59 | { 60 | for (int iCount = 0; iCount < this.List.Count; iCount++) 61 | { 62 | if (string.Compare((string)(this.List[iCount]), item, true) == 0) 63 | return iCount; 64 | } 65 | return -1; 66 | } 67 | 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Script/ScriptExpressionPropertyTabBmp.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/Script/ScriptExpressionPropertyTabBmp.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Script/ScriptOptionsEditor.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Text; 11 | using System.ComponentModel; 12 | using System.Windows.Forms.Design; 13 | using System.Drawing.Design; 14 | 15 | namespace DCSoft.Script 16 | { 17 | public class ScriptOptionsEditor : UITypeEditor 18 | { 19 | public ScriptOptionsEditor() 20 | { 21 | } 22 | 23 | public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) 24 | { 25 | return UITypeEditorEditStyle.Modal; 26 | } 27 | public override object EditValue( 28 | ITypeDescriptorContext context, 29 | IServiceProvider provider, 30 | object Value) 31 | { 32 | XVBAOptions opt = Value as XVBAOptions; 33 | if (opt == null) 34 | { 35 | opt = new XVBAOptions(); 36 | } 37 | else 38 | { 39 | opt = opt.Clone(); 40 | } 41 | IWindowsFormsEditorService svc = (IWindowsFormsEditorService)provider.GetService( 42 | typeof(IWindowsFormsEditorService)); 43 | using (dlgScriptOptions dlg = new dlgScriptOptions()) 44 | { 45 | dlg.OptionsInstance = opt; 46 | if (svc.ShowDialog(dlg) == System.Windows.Forms.DialogResult.OK) 47 | { 48 | return opt; 49 | } 50 | } 51 | return Value; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/Script/VBAScript.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/Script/VBAScript.ico -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/ApplicationStyle.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.WinForms 14 | { 15 | public enum ApplicationStyle 16 | { 17 | /// 18 | /// 控件运行在WinForm环境下 19 | /// 20 | WinForm, 21 | /// 22 | /// WPF环境下 23 | /// 24 | WPF, 25 | /// 26 | /// 运行在IE浏览器宿主中 27 | /// 28 | IEHost , 29 | /// 30 | /// 运行在IE中的智能客户端 31 | /// 32 | SmartClient, 33 | /// 34 | /// 未知 35 | /// 36 | UnKnow 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/BorderUserControl.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | text/microsoft-resx 32 | 33 | 34 | 1.0.0.0 35 | 36 | 37 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 38 | 39 | 40 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 41 | 42 | 43 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/FormList.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | using System.Windows.Forms; 13 | 14 | namespace DCSoft.WinForms 15 | { 16 | /// 17 | /// 窗体对象列表 18 | /// 19 | public class FormList : List< System.Windows.Forms.Form> 20 | { 21 | /// 22 | /// 初始化对象 23 | /// 24 | public FormList() 25 | { 26 | } 27 | 28 | /// 29 | /// 获得指定类型的窗体对象 30 | /// 31 | /// 窗体对象类型 32 | /// 获得的窗体对象 33 | public Form this[Type type] 34 | { 35 | get 36 | { 37 | foreach (Form frm in this) 38 | { 39 | if (type.IsInstanceOfType(frm)) 40 | { 41 | if (frm.IsDisposed) 42 | { 43 | this.Remove(frm); 44 | return null; 45 | } 46 | return frm; 47 | } 48 | } 49 | return null; 50 | } 51 | } 52 | 53 | /// 54 | /// 销毁所有的窗体对象 55 | /// 56 | public void DisposeAllForm() 57 | { 58 | foreach (Form frm in this) 59 | { 60 | if (frm != null && frm.IsDisposed == false) 61 | { 62 | frm.Dispose(); 63 | } 64 | } 65 | this.Clear(); 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/MouseEventStyle.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.WinForms 14 | { 15 | /// 16 | /// 鼠标事件样式 17 | /// 18 | /// 编制 袁永福 19 | public enum MouseEventStyle 20 | { 21 | /// 22 | /// 鼠标按键按下事件 23 | /// 24 | MouseDown , 25 | /// 26 | /// 鼠标移动事件 27 | /// 28 | MouseMove , 29 | /// 30 | /// 鼠标按键松开事件 31 | /// 32 | MouseUp , 33 | /// 34 | /// 鼠标单击事件 35 | /// 36 | MouseClick , 37 | /// 38 | /// 鼠标双击事件 39 | /// 40 | MouseDoubleClick 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/Native/Msgs.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | 11 | namespace DCSoft.WinForms.Native 12 | { 13 | 14 | } -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/Native/dlgInputUrl.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.ComponentModel; 12 | using System.Data; 13 | using System.Drawing; 14 | using System.Text; 15 | using System.Windows.Forms; 16 | 17 | namespace DCSoft.WinForms.Native 18 | { 19 | /// 20 | /// URL地址输入对话框 21 | /// 22 | /// 编制 袁永福 23 | public partial class dlgInputUrl : Form 24 | { 25 | public dlgInputUrl() 26 | { 27 | InitializeComponent(); 28 | this.DialogResult = System.Windows.Forms.DialogResult.Cancel; 29 | } 30 | 31 | private string _InputURL = null; 32 | /// 33 | /// 输入的URL地址 34 | /// 35 | public string InputURL 36 | { 37 | get { return _InputURL; } 38 | set { _InputURL = value; } 39 | } 40 | 41 | private void dlgInputUrl_Load(object sender, EventArgs e) 42 | { 43 | string[] urls = IEHelper.TypedURLs; 44 | if (urls != null) 45 | { 46 | cboURL.Items.AddRange(urls); 47 | } 48 | cboURL.Text = _InputURL; 49 | } 50 | 51 | private void btnOK_Click(object sender, EventArgs e) 52 | { 53 | string txt = cboURL.Text; 54 | if (txt.Trim().Length == 0) 55 | { 56 | return; 57 | } 58 | _InputURL = txt ; 59 | this.DialogResult = System.Windows.Forms.DialogResult.OK; 60 | this.Close(); 61 | } 62 | 63 | private void btnCancel_Click(object sender, EventArgs e) 64 | { 65 | this.Close(); 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/Resources/Blank16_16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/Resources/Blank16_16.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/Resources/picBorderPreview.Image.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/Resources/picBorderPreview.Image.bmp -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/ScrollToViewStyle.cs: -------------------------------------------------------------------------------- 1 | /***************************** 2 | CSharpWriter is a RTF style Text writer control written by C#,Currently, 3 | it use license.More than RichTextBox, 4 | It is provide a DOM to access every thing in document and save in XML format. 5 | It can use in WinForm.NET ,WPF,Console application.Any idea about CSharpWriter 6 | can write to 28348092@qq.com(or yyf9989@hotmail.com). 7 | Project web site is [https://github.com/dcsoft-yyf/CSharpWriter]. 8 | *****************************///@DCHC@ 9 | using System; 10 | using System.Collections.Generic; 11 | using System.Text; 12 | 13 | namespace DCSoft.WinForms 14 | { 15 | /// 16 | /// 滚动到视图的样式 17 | /// 18 | public enum ScrollToViewStyle 19 | { 20 | /// 21 | /// 正常模式 22 | /// 23 | Normal , 24 | /// 25 | /// 滚动到顶端 26 | /// 27 | Top , 28 | /// 29 | /// 滚动到中间 30 | /// 31 | Middle , 32 | /// 33 | /// 滚动到低端 34 | /// 35 | Bottom 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/Black.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/Black.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/DragCopy.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/DragCopy.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/DragLink.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/DragLink.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/DragMove.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/DragMove.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/DragNo.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/DragNo.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/DragPage.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/DragPage.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/DragPageNo.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/DragPageNo.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/FormatBrush.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/FormatBrush.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/HandDragDown.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/HandDragDown.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/HandDragUp.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/HandDragUp.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/Right.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/Right.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/RightArrow.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/RightArrow.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/ZoomIn.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/ZoomIn.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/WinForms/XCursors/ZoomOut.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/WinForms/XCursors/ZoomOut.cur -------------------------------------------------------------------------------- /Source/DCSoft.CSharpWriter/csharpwriter.vsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/Source/DCSoft.CSharpWriter/csharpwriter.vsd -------------------------------------------------------------------------------- /about.files/dcimg_39225.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/about.files/dcimg_39225.jpg -------------------------------------------------------------------------------- /about.files/dcimg_39226.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/about.files/dcimg_39226.jpg -------------------------------------------------------------------------------- /about.files/dcimg_39227.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/about.files/dcimg_39227.jpg -------------------------------------------------------------------------------- /about.files/dcimg_39228.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/about.files/dcimg_39228.jpg -------------------------------------------------------------------------------- /about.files/dcimg_39229.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/about.files/dcimg_39229.jpg -------------------------------------------------------------------------------- /about.files/dcimg_39230.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/about.files/dcimg_39230.jpg -------------------------------------------------------------------------------- /about.files/dcimg_39231.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/about.files/dcimg_39231.jpg -------------------------------------------------------------------------------- /about.files/dcimg_39232.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/about.files/dcimg_39232.jpg -------------------------------------------------------------------------------- /about.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/about.htm -------------------------------------------------------------------------------- /snapshort.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Klegy/CSharpWriter/2fca6acfcdfa078276ded9cebf46d3e46bfea1c5/snapshort.png --------------------------------------------------------------------------------