实现您自己的接口

From Apache OpenOffice Wiki
< Zh‎ | Documentation
Revision as of 05:32, 30 July 2008 by Jirong (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


对于 my_module.XSomething 接口,添加一个当成功调用 methodOne() 时用于通知调用程序的返回字符串。

  OUString MyService2Impl::methodOne( OUString const & str )
      throw (RuntimeException)
  {
      return OUString( RTL_CONSTASCII_USTRINGPARAM(
          "called methodOne() of MyService2 implementation: ") ) + str;
  }
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages