Kaydet (Commit) b843d905 authored tarafından Rob Snelders's avatar Rob Snelders Kaydeden (comit) Cédric Bosdonnat

code cleanup

Change-Id: Ib154cd53253e4d802d13a024a20f6c34d499e672
üst d72568fc
...@@ -27,68 +27,76 @@ ...@@ -27,68 +27,76 @@
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <unotools/options.hxx> #include <unotools/options.hxx>
/*@short forward declaration to our private date container implementation /** forward declaration to our private date container implementation
@descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism We use these class as internal member to support small memory requirements.
is faster and smaller then a complete implementation!*/ You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*/
class SvtSlideSorterBarOptions_Impl; class SvtSlideSorterBarOptions_Impl;
class Link; class Link;
/*@short collect informations about sidebar group /** collect informations about sidebar group
@ATTENTION This class is partially threadsafe.
@devstatus ready to use*/ \attention This class is partially threadsafe.
*/
class SVT_DLLPUBLIC SvtSlideSorterBarOptions: public utl::detail::Options class SVT_DLLPUBLIC SvtSlideSorterBarOptions: public utl::detail::Options
{ {
public: public:
/*@short standard constructor and destructor /** standard constructor and destructor
@descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it This will initialize an instance with default values.
at create and decrease it at delete time - but all instances use the same data container! We implement these class with a refcount mechanism! Every instance of this class increase it
He is implemented as a static member ... at create and decrease it at delete time - but all instances use the same data container!
@seealso member m_nRefCount He is implemented as a static member ...
@seealso member m_pDataContainer*/
SvtSlideSorterBarOptions(); \sa member m_nRefCount
\sa member m_pDataContainer
*/
SvtSlideSorterBarOptions();
virtual ~SvtSlideSorterBarOptions(); virtual ~SvtSlideSorterBarOptions();
void AddListenerLink( const Link& rLink ); void AddListenerLink( const Link& rLink );
void RemoveListenerLink( const Link& rLink ); void RemoveListenerLink( const Link& rLink );
sal_Bool GetVisibleImpressView() const; bool GetVisibleImpressView() const;
void SetVisibleImpressView( sal_Bool bVisible ); void SetVisibleImpressView( bool bVisible );
sal_Bool GetVisibleOutlineView() const; bool GetVisibleOutlineView() const;
void SetVisibleOutlineView( sal_Bool bVisible ); void SetVisibleOutlineView( bool bVisible );
sal_Bool GetVisibleNotesView() const; bool GetVisibleNotesView() const;
void SetVisibleNotesView( sal_Bool bVisible ); void SetVisibleNotesView( bool bVisible );
sal_Bool GetVisibleHandoutView() const; bool GetVisibleHandoutView() const;
void SetVisibleHandoutView( sal_Bool bVisible ); void SetVisibleHandoutView( bool bVisible );
sal_Bool GetVisibleSlideSorterView() const; bool GetVisibleSlideSorterView() const;
void SetVisibleSlideSorterView( sal_Bool bVisible ); void SetVisibleSlideSorterView( bool bVisible );
sal_Bool GetVisibleDrawView() const; bool GetVisibleDrawView() const;
void SetVisibleDrawView( sal_Bool bVisible ); void SetVisibleDrawView( bool bVisible );
private: private:
/*@short return a reference to a static mutex /** return a reference to a static mutex
@descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe! These class is partially threadsafe (for de-/initialization only).
We create a static mutex only for one ime and use at different times. All access methods are'nt safe!
@return A reference to a static mutex member.*/ We create a static mutex only for one ime and use at different times.
\return A reference to a static mutex member.*/
SVT_DLLPRIVATE static ::osl::Mutex& GetInitMutex(); SVT_DLLPRIVATE static ::osl::Mutex& GetInitMutex();
private: private:
/*Attention /**
\attention
Don't initialize these static member in these header! Don't initialize these static member in these header!
a) Double dfined symbols will be detected ... \li Double defined symbols will be detected ...
b) and unresolved externals exist at linking time. \li and unresolved externals exist at linking time.
Do it in your source only. Do it in your source only.
*/ */
static SvtSlideSorterBarOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements! static SvtSlideSorterBarOptions_Impl* m_pDataContainer ; ///< impl. data container as dynamic pointer for smaller memory requirements!
static sal_Int32 m_nRefCount ; /// internal ref count mechanism static sal_Int32 m_nRefCount ; ///< internal ref count mechanism
}; // class SvtSlideSorterBarOptions };
#endif // #ifndef INCLUDED_SVTOOLS_SLIDESORTERBAROPT_HXX #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment