diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-03-12 19:58:09 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-03-13 10:39:51 +0100 |
commit | cbdc446e6f49ee0968f3c0765b3349f5e681018b (patch) | |
tree | 4c81b4539405f826591a55a1e1802892a4db376b /svtools/inc | |
parent | Make Converter service new-style, for easier use (diff) | |
download | core-cbdc446e6f49ee0968f3c0765b3349f5e681018b.tar.gz core-cbdc446e6f49ee0968f3c0765b3349f5e681018b.zip |
Clean up ODocumentInfoPreview
Diffstat (limited to 'svtools/inc')
-rw-r--r-- | svtools/inc/svtools/DocumentInfoPreview.hxx | 67 |
1 files changed, 44 insertions, 23 deletions
diff --git a/svtools/inc/svtools/DocumentInfoPreview.hxx b/svtools/inc/svtools/DocumentInfoPreview.hxx index 8dfb254d2c08..c48862e6803f 100644 --- a/svtools/inc/svtools/DocumentInfoPreview.hxx +++ b/svtools/inc/svtools/DocumentInfoPreview.hxx @@ -25,36 +25,57 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ + #ifndef SVTOOLS_DOCUMENTINFOPREVIEW_HXX #define SVTOOLS_DOCUMENTINFOPREVIEW_HXX +#include "sal/config.h" + +#include "boost/scoped_ptr.hpp" +#include "com/sun/star/lang/Locale.hpp" +#include "com/sun/star/uno/Reference.hxx" +#include "svtools/svmedit2.hxx" #include "svtools/svtdllapi.h" -#include <vcl/window.hxx> -#include <com/sun/star/document/XDocumentProperties.hpp> -#include <com/sun/star/lang/Locale.hpp> +#include "tools/wintypes.hxx" +#include "vcl/window.hxx" -class SvtExtendedMultiLineEdit_Impl; class SvtDocInfoTable_Impl; -namespace svtools -{ - class SVT_DLLPUBLIC ODocumentInfoPreview : public Window - { - SvtExtendedMultiLineEdit_Impl* m_pEditWin; - SvtDocInfoTable_Impl* m_pInfoTable; - com::sun::star::lang::Locale m_aLocale; - - public: - ODocumentInfoPreview( Window* pParent ,WinBits _nBits); - virtual ~ODocumentInfoPreview(); - - virtual void Resize(); - void Clear(); - void fill(const ::com::sun::star::uno::Reference< - ::com::sun::star::document::XDocumentProperties>& i_xDocProps - ,const String& i_rURL); - void SetAutoScroll(sal_Bool _bAutoScroll); - }; +namespace com { namespace sun { namespace star { + namespace document { class XDocumentProperties; } + namespace util { struct DateTime; } +} } } +namespace rtl { class OUString; } + +namespace svtools { + +class SVT_DLLPUBLIC ODocumentInfoPreview: public Window { +public: + ODocumentInfoPreview(Window * pParent, WinBits nBits); + + virtual ~ODocumentInfoPreview(); + + virtual void Resize(); + + void clear(); + + void fill( + com::sun::star::uno::Reference< + com::sun::star::document::XDocumentProperties > const & xDocProps, + rtl::OUString const & rURL); + +private: + ExtMultiLineEdit m_pEditWin; + boost::scoped_ptr< SvtDocInfoTable_Impl > m_pInfoTable; + com::sun::star::lang::Locale m_aLocale; + + void insertEntry(rtl::OUString const & title, rtl::OUString const & value); + + void insertNonempty(long id, rtl::OUString const & value); + + void insertDateTime(long id, com::sun::star::util::DateTime const & value); +}; + } #endif // SVTOOLS_DOCUMENTINFOPREVIEW_HXX |