原文见  [url]http://www.5ushare.com/vsto/vsto%e8%bf%9b%e8%a1%8c%e6%97%b6%e2%80%93%e2%80%93%e5%bc%80%e5%8f%91%e6%97%a5%e5%bf%97%e4%b9%8b%e4%b8%89vsto-development-diary-iii.html[/url]

已经是Office数据安全工程的第三天了,工程也已经完成了三分之一,值得欣慰的是工程最繁琐的阶段过去了。
下边,向各位具体介绍工程的进度,各位如果有什么意见或建议,随时可以联系我。
现在,实现的主要内容是打开文档时,读取当前模式及模式具体信息。当用户登录时(为设密码用户打开文档时),根据模式储存的信息,回推出文档内容,并显示。另外还做了的就是,将选定slides、shapes中的shape隐藏。
没实现的部分,其一是模式的管理,如模式的新建,删除与选取编辑;其二就是用户保存时,模式信息的储存。还有就是系统热键的注册。
在数据的储存方面,我想采用的是一个shape来保存密码,当前模式及各模式的具体信息。其中,储存密码的shape的Name用于标记是否文档已 经设置了密码,AlternativeText储存密码。另外,将会有一系列的shape来储存相应模式的信息,它们的信息都储存都shape的 AlternativeText中。一下给出两个储存信息的模板如下:
< action = hide ShapeName = aaaaa SlideIndex = 1 >
<action = replace ShapeName = aaaaa SlideIndex = 1 word = aa NewWord = vgv >
今天暂且写到这里,欢迎有兴趣的朋友与我联系。
It’s the third day for the “Office Data Security” project,and the project have been completed 1/3.And i feel very satified because the most difficult stage has passed.
And then,i will introduce the concrete process to all of you.If anyone of you have any problems ,feel free to contact me.
At present,”when open the document then read the current parttern and the concrete information” part has been came true.When users register logged in,according to the pattern storage’s information,returns the documents content,and show it.
In addition,what i have done is make the part choosed dideaway.And now we also have three main problems:the first one is the pattern management,like pattern newly built,deletion and selection and edition;
the second one is the parttern information’s storage when users save the document;the third one is the system hot key’s registration.
In data storage aspect,what i wanna use is preserve the password,current pattern and various patterns concrete information by a shape.The Name in the shape is used to identify whether the document has been tagged.And the AlternativeText file is used to storage the password.
Give two templates of the information storaging to as follows:
< action = hide ShapeName = aaaaa SlideIndex = 1 >
<action = replace ShapeName = aaaaa SlideIndex = 1 word = aa NewWord = vgv >
It’s over today,welcome the friends who is instrsted to get in touch with me.