From 73d568408a150875b5c6046680f38e6db287c8fa Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 30 Apr 2013 00:15:22 +0200 Subject: *api: convert and @example is called @code / @endcode in doxygen. @example requires a file name in doxygen. Also adapt various silly examples that use tools String in C++ or manual syntax highlighting in Java etc. Change-Id: I23cff1b688001f438526a6a1364cc5f754b504f7 --- offapi/com/sun/star/util/XReplaceable.idl | 8 ++++---- offapi/com/sun/star/util/XSearchable.idl | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'offapi/com/sun/star/util') diff --git a/offapi/com/sun/star/util/XReplaceable.idl b/offapi/com/sun/star/util/XReplaceable.idl index 8eea70eaa646..4a3d008417d7 100644 --- a/offapi/com/sun/star/util/XReplaceable.idl +++ b/offapi/com/sun/star/util/XReplaceable.idl @@ -33,14 +33,14 @@ module com { module sun { module star { module util { /** makes it possible to replace strings in a text described by a SearchDescriptor. - @example - - replace all bold words "search for" by "look for" + Example: replace all bold words "search for" by "look for" + + @code{.py} xReplaceDescr = xDocument.createReplaceDescriptor() xReplaceDescr.SearchString = "search for" xReplaceDescr.ReplaceString = "look for" xFound = xDocument.replaceAll( xReplaceDescr ) - + @endcode */ published interface XReplaceable: com::sun::star::util::XSearchable { diff --git a/offapi/com/sun/star/util/XSearchable.idl b/offapi/com/sun/star/util/XSearchable.idl index 28e84d464d96..9420e2abb853 100644 --- a/offapi/com/sun/star/util/XSearchable.idl +++ b/offapi/com/sun/star/util/XSearchable.idl @@ -33,11 +33,11 @@ module com { module sun { module star { module util { /** enables the object to look for specified contents of the object (in particular, for a text range which contains a specific string pattern). - @example + Example: in a com::sun::star::text::TextDocument: set all "search for" to bold using findFirst()/findNext(): - + @code{.bas} xSearchDescr = xDocument.createSearchDescriptor() xSearchDescr.SearchString = "search for" xSearchDescr.SearchCaseSensitive = `TRUE` @@ -47,7 +47,7 @@ module com { module sun { module star { module util { xFound.CharWeight = com.sun.star.awt.FontWeight.BOLD xFound = xDocument.findNext( xFound.End, xSearchDescr ) loop - + @endcode */ published interface XSearchable: com::sun::star::uno::XInterface -- cgit