home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <html><head><title>σêåτ▒╗ Add In</title><meta name="filename" content="text/scalc/01/04060111"/><meta name="language" content="zh-CN"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
-
- table.Tabelle2{
- }
- span.Tabelle2A{
- width:1.499cm;}
- span.Tabelle2B{
- width:16.501cm;}
- tr.Tabelle21{
- }
- td.Tabelle2A1{
- }
- p.P1{
- }
- span.T1{
- font-weight:bold;}
- span.fr1{
- }
- </style></head><body>
-
-
- <p class="P1"/>
- <p class="Head1"><help:key-word value="Add In; 函数" tag="kw66872_10" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="函数自动助理; Add In" tag="kw66872_11" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="分类 Add In" tag="kw66872_1" xmlns:help="http://openoffice.org/2000/help"/>分类 Add In</p>
- <p class="Paragraph"><help:to-be-embedded Eid="addintext" xmlns:help="http://openoffice.org/2000/help">您可以在这里附加使用Add In函数。</help:to-be-embedded></p>
- <help:popup Id="66774" Eid="addin" xmlns:help="http://openoffice.org/2000/help"><help:embedded Id="66778" Eid="wie"/></help:popup>
- <p class="Paragraph"><help:link Id="66914" xmlns:help="http://openoffice.org/2000/help">Add In方案</help:link></p>
- <p class="Paragraph"/>
- <p class="Paragraph">与此同时,您在本软件包帮助文件中可找到一项<help:link Id="66914" xmlns:help="http://openoffice.org/2000/help"><help:productname>%PRODUCTNAME</help:productname> Calc说明 - AddIn - 界面</help:link>。在此帮助文件项中,也描述了关于共享库<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">Shared Library</help:case><help:default><help:productname>%PRODUCTNAME</help:productname> Calc-AddIn-DLL</help:default></help:switch>中必需的函数及其参数。</p>
- <p class="Head2"><a name="beispiele"/>共同提交的Add In</p>
- <p class="Paragraph">在<help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>中包括有用于<help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc的AddIn界面示例。如果您已同时安装了Add In,那么它就会在{installpath}/program/addin <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">Shared Libraries</help:case><help:default>DLLs</help:default></help:switch>中。它们提交您在函数自动助理中的分类<span class="T1">AddIn</span>项下找到的诸函数。</p>
- <p class="Paragraph"><help:link Id="68333" xmlns:help="http://openoffice.org/2000/help">分析函数第1部分</help:link></p>
- <p class="Paragraph"><help:link Id="68331" xmlns:help="http://openoffice.org/2000/help">分析函数 第二部分</help:link></p>
- <p class="Paragraph">接下去在AddIn文件夹中有一个名称为"source"的文件夹。该文件夹含有共享库<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">Shared Libraries</help:case><help:default>DLLs</help:default></help:switch>程序文件的源代码,并为那些有兴趣的程序员提交一个关于AddIn-<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">Shared Library</help:case><help:default>DLL</help:default></help:switch>功能方式的示范性演示。</p>
- <p class="Paragraph">"Rot*.<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">SO</help:case><help:default>DLL</help:default></help:switch>"提交一个名为<help:link Id="66872" Eid="rot13" xmlns:help="http://openoffice.org/2000/help">ROT13</help:link>、由一种简单算法构成的加密函数。</p>
- <p class="Paragraph">"Dfa*.<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">SO</help:case><help:default>DLL</help:default></help:switch>"提供补充的时间函数:<help:link Id="66872" Eid="istschaltjahr" xmlns:help="http://openoffice.org/2000/help">IsLeapYear</help:link>, <help:link Id="66872" Eid="jahre" xmlns:help="http://openoffice.org/2000/help">Years</help:link>, <help:link Id="66872" Eid="monate" xmlns:help="http://openoffice.org/2000/help">months</help:link>, <help:link Id="66872" Eid="tageimjahr" xmlns:help="http://openoffice.org/2000/help">DaysInYear</help:link>, <help:link Id="66872" Eid="tageimmonat" xmlns:help="http://openoffice.org/2000/help">DaysInMonth</help:link>, <help:link Id="66872" Eid="wochen" xmlns:help="http://openoffice.org/2000/help">Weeks</help:link>, <help:link Id="66872" Eid="wochenimjahr" xmlns:help="http://openoffice.org/2000/help">WeeksInYear</help:link>.</p>
- <table><tr class="Tabelle21"><th class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
- <p class="Paragraph"><draw:image draw:style-name="fr1" draw:name="HIND_2" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
- </span></th><th class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2B">
- <p class="Paragraph">这些通过"Dfa*.<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">SO</help:case><help:default>DLL</help:default></help:switch>"变为可供支配的函数,只有在<span class="T1">其它 - 选项 - 工作表文档 - 计算</span>项下、在 <span class="T1">日期</span>范围中把<help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>的默认标准设置用1899年12月30日作为时间轴线的零点时,才能够使用。并且请您注意<help:link Id="66874" Eid="date" xmlns:help="http://openoffice.org/2000/help">日期输入</help:link>时的特点。</p>
- </span></th></tr></table>
- <p class="Paragraph"/>
- <p class="Head2"><a name="istschaltjahr"/><help:key-word value="IsLeapYear" tag="kw66872_9" xmlns:help="http://openoffice.org/2000/help"/>IsLeapYear</p>
- <p class="Paragraph">计算一个日期的年份是否是闰年。如果是,此函数给出数值1(表示为真),否则给出0(表示为假)。</p>
- <p class="Head3">语法</p>
- <p class="Paragraph">IsLeapYear(Date)</p>
- <p class="Paragraph">Date:确定需要计算是否在闰年中的日期。</p>
- <p class="Head3">示例</p>
- <p class="Paragraph">IsLeapYear(29.02.68)等于1。</p>
- <p class="Head2"><a name="jahre"/><help:key-word value="Years" tag="kw66872_8" xmlns:help="http://openoffice.org/2000/help"/>Years</p>
- <p class="Paragraph">确定两个日期之间的年度差数。</p>
- <p class="Head3">语法</p>
- <p class="Paragraph">Years(Date 1,Date 2, Mode)</p>
- <p class="Paragraph">Date 1:开始日期</p>
- <p class="Paragraph">Date 2:结束日期</p>
- <p class="Paragraph">Mode:确定该差数生成的类型。有数值0(时间间隔)和1(日历年度)两种选择。</p>
- <p class="Head2"><a name="monate"/><help:key-word value="months" tag="kw66872_7" xmlns:help="http://openoffice.org/2000/help"/>months</p>
- <p class="Paragraph">确定两个日期之间的月份差数。</p>
- <p class="Head3">语法</p>
- <p class="Paragraph">months(Date 1, Date 2, Mode)</p>
- <p class="Paragraph">Date 1:开始日期</p>
- <p class="Paragraph">Date 2:结束日期</p>
- <p class="Paragraph">Mode: 确定该差数生成的类型。 有数值0(时间间隔)和1(日历月份)两种选择。</p>
- <p class="Head2"><a name="rot13"/><help:key-word value="ROT13" tag="kw66872_6" xmlns:help="http://openoffice.org/2000/help"/>ROT13</p>
- <p class="Paragraph">通过把一个字母按字母排列表顺序往下移动13个字母的方法对一个字符串加密。到达字母Z之后,即重新按字母表从头开始循环。对已形成的加密代码再次使用此加密函数,则可以对已加密的文本解密。</p>
- <p class="Head3">语法</p>
- <p class="Paragraph">ROT13(Text)</p>
- <p class="Paragraph">Text:输入需要加密的字符串。ROT13(ROT13(Text))可解开密码。</p>
- <p class="Head3">示例</p>
- <p class="Paragraph">ROT13("Das ist ein geheimer Code")给出"Qnf vfg rva trurvzre Pbqr"。</p>
- <p class="Paragraph">ROT13("Qnf jne rva trurvzre Pbqr")给出"Das war ein geheimer Code"。</p>
- <p class="Head2"><a name="tageimjahr"/><help:key-word value="DaysInYear" tag="kw66872_5" xmlns:help="http://openoffice.org/2000/help"/>DaysInYear</p>
- <p class="Paragraph">确定一个日期所在年的天数。</p>
- <p class="Head3">语法</p>
- <p class="Paragraph">DaysInYear(Date)</p>
- <p class="Paragraph">Date:需要确定所在年的天数的日期。</p>
- <p class="Head3">示例</p>
- <p class="Paragraph">DaysInYear(29.02.68)给出366天。</p>
- <p class="Head2"><a name="tageimmonat"/><help:key-word value="DaysInMonth" tag="kw66872_4" xmlns:help="http://openoffice.org/2000/help"/>DaysInMonth</p>
- <p class="Paragraph">确定一个日期所在月的天数。</p>
- <p class="Head3">语法</p>
- <p class="Paragraph">DaysInMonth(Date)</p>
- <p class="Paragraph">Date:需要确定所在月的天数的日期。</p>
- <p class="Head3">示例</p>
- <p class="Paragraph">DaysInMonth(17.02.68)给出29天。</p>
- <p class="Head2"><a name="wochen"/><help:key-word value="Weeks" tag="kw66872_3" xmlns:help="http://openoffice.org/2000/help"/>Weeks</p>
- <p class="Paragraph">确定两个日期之间的周差数。</p>
- <p class="Head3">语法</p>
- <p class="Paragraph">Weeks(Date 1,Date 2,Mode)</p>
- <p class="Paragraph">Date 1:开始日期</p>
- <p class="Paragraph">Date 2:结束日期</p>
- <p class="Paragraph">Mode:确定该差数生成的类型。有数值0(时间间隔)和1(日历周)两种选择。</p>
- <p class="Head2"><a name="wochenimjahr"/><help:key-word value="WeeksInYear" tag="kw66872_2" xmlns:help="http://openoffice.org/2000/help"/>WeeksInYear</p>
- <p class="Paragraph">确定一个日期所在年的周数。 该日历周在这里定义为,从新年开始时有较多天数的那一周起计算该年的周数。</p>
- <p class="Head3">语法</p>
- <p class="Paragraph">WeeksInYear(Date)</p>
- <p class="Paragraph">Date:需要确定所在年的周数的日期。</p>
- <p class="Head3">示例</p>
- <p class="Paragraph">WeeksInYear(17.02.70)给出53。</p>
- <p class="Head2"><a name="api"/>利用<help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>API的Add In</p>
- <p class="Paragraph">除了当作DLL之外,Add In还可以通过<help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> API来执行。为此必须定义一项支持com::sun::star::sheet::AddIn的服务,并且必须把执行此项服务加以注册。其他以<help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> API文档的详尽知识为前提的信息,可通过书面申请获得。</p>
- </body></html>