<commit_before>/*************************************************************************
 *
 *  OpenOffice.org - a multi-platform office productivity suite
 *
 *  $RCSfile: docinf.hxx,v $
 *
 *  $Revision: 1.5 $
 *
 *  last change: $Author: obo $ $Date: 2007-07-17 13:37:29 $
 *
 *  The Contents of this file are made available subject to
 *  the terms of GNU Lesser General Public License Version 2.1.
 *
 *
 *    GNU Lesser General Public License Version 2.1
 *    =============================================
 *    Copyright 2005 by Sun Microsystems, Inc.
 *    901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License version 2.1, as published by the Free Software Foundation.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public
 *    License along with this library; if not, write to the Free Software
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *    MA  02111-1307  USA
 *
 ************************************************************************/
#ifndef _SFXDOCINF_HXX
#define _SFXDOCINF_HXX

#ifndef _SAL_CONFIG_H_
#include "sal/config.h"
#endif

#ifndef INCLUDED_SFX2_DLLAPI_H
#include "sfx2/dllapi.h"
#endif

#ifndef _SAL_TYPES_H_
#include "sal/types.h"
#endif
#ifndef _COM_SUN_STAR_UNO_REFERENCE_HXX_
#include <com/sun/star/uno/Reference.hxx>
#endif

#include <com/sun/star/uno/Any.hxx>

#include <com/sun/star/document/XDocumentInfo.hpp>

#ifndef _ERRCODE_HXX //autogen wg. ErrCode
#include <tools/errcode.hxx>
#endif
#ifndef _DATETIME_HXX //autogen
#include <tools/datetime.hxx>
#endif
#ifndef _STRING_HXX //autogen
#include <tools/string.hxx>
#endif
#ifndef _SFXHINT_HXX //autogen
#include <svtools/hint.hxx>
#endif

#include <hash_map>
#include <svtools/itemprop.hxx>

class SfxObjectShell;
class GDIMetaFile;
class SotStorage;
class SfxDocumentInfo_Impl;

const BYTE MAXDOCUSERKEYS  = 4;

class SFX2_DLLPUBLIC SfxDocumentInfo
{
    SfxDocumentInfo_Impl* pImp;

    SAL_DLLPRIVATE DateTime DATETIME_PROP(sal_Int32 nHandle) const;
    SAL_DLLPRIVATE BOOL BOOL_PROP(sal_Int32 nHandle) const;
    SAL_DLLPRIVATE sal_Int32 INT_PROP(sal_Int32 nHandle) const;
    SAL_DLLPRIVATE String STRING_PROP(sal_Int32 nHandle) const;
    SAL_DLLPRIVATE void SET_PROP(sal_Int32 nHandle, const com::sun::star::uno::Any& aValue );

public:

    SfxDocumentInfo( SfxObjectShell* pDoc=0);

    // deep copy
    SfxDocumentInfo( const SfxDocumentInfo& );

    // shallow copy
    SfxDocumentInfo( const com::sun::star::uno::Reference < com::sun::star::document::XDocumentInfo >& );

    ~SfxDocumentInfo();

    const SfxDocumentInfo& operator=( const SfxDocumentInfo& );
    int operator==( const SfxDocumentInfo& ) const;

    com::sun::star::uno::Reference < com::sun::star::document::XDocumentInfo > GetInfo() const;

    sal_uInt32 LoadPropertySet( SotStorage* pStor );
    sal_Bool SavePropertySet( SotStorage* pStor, GDIMetaFile* pThumb ) const;

    BOOL IsReloadEnabled() const;
    sal_Int16 GetDocumentNumber() const;
    sal_Int32 GetReloadDelay() const;
    sal_Int32 GetTime() const;
    String GetDefaultTarget() const;
    String GetReloadURL() const;
    String GetTemplateName() const;
    String GetTemplateFileName() const;
    String GetTitle()   const;
    String GetTheme()   const;
    String GetComment() const;
    String GetKeywords()const;
    String GetMimeType() const;
    String GetAuthor() const;
    DateTime GetCreationDate() const;
    String GetModificationAuthor() const;
    DateTime GetModificationDate() const;
    String GetPrintedBy() const;
    DateTime GetPrintDate() const;
    DateTime GetTemplateDate() const;

    void EnableReload( BOOL bEnable );
    void SetDocumentNumber(sal_Int16 nNo);
    void SetReloadDelay( sal_uInt32 nDelay );
    void SetTime(sal_Int32 l);
    void SetDefaultTarget( const String& rString );
    void SetReloadURL( const String& rString );
    void SetTemplateName( const String& rName );<commit_msg>INTEGRATION: CWS fwk76_SRC680 (1.5.62); FILE MERGED 2007/10/04 10:40:57 mav 1.5.62.1: #i81250# signed value is expected by UNO API<commit_after>/*************************************************************************
 *
 *  OpenOffice.org - a multi-platform office productivity suite
 *
 *  $RCSfile: docinf.hxx,v $
 *
 *  $Revision: 1.6 $
 *
 *  last change: $Author: hr $ $Date: 2007-11-01 17:57:32 $
 *
 *  The Contents of this file are made available subject to
 *  the terms of GNU Lesser General Public License Version 2.1.
 *
 *
 *    GNU Lesser General Public License Version 2.1
 *    =============================================
 *    Copyright 2005 by Sun Microsystems, Inc.
 *    901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License version 2.1, as published by the Free Software Foundation.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public
 *    License along with this library; if not, write to the Free Software
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *    MA  02111-1307  USA
 *
 ************************************************************************/
#ifndef _SFXDOCINF_HXX
#define _SFXDOCINF_HXX

#ifndef _SAL_CONFIG_H_
#include "sal/config.h"
#endif

#ifndef INCLUDED_SFX2_DLLAPI_H
#include "sfx2/dllapi.h"
#endif

#ifndef _SAL_TYPES_H_
#include "sal/types.h"
#endif
#ifndef _COM_SUN_STAR_UNO_REFERENCE_HXX_
#include <com/sun/star/uno/Reference.hxx>
#endif

#include <com/sun/star/uno/Any.hxx>

#include <com/sun/star/document/XDocumentInfo.hpp>

#ifndef _ERRCODE_HXX //autogen wg. ErrCode
#include <tools/errcode.hxx>
#endif
#ifndef _DATETIME_HXX //autogen
#include <tools/datetime.hxx>
#endif
#ifndef _STRING_HXX //autogen
#include <tools/string.hxx>
#endif
#ifndef _SFXHINT_HXX //autogen
#include <svtools/hint.hxx>
#endif

#include <hash_map>
#include <svtools/itemprop.hxx>

class SfxObjectShell;
class GDIMetaFile;
class SotStorage;
class SfxDocumentInfo_Impl;

const BYTE MAXDOCUSERKEYS  = 4;

class SFX2_DLLPUBLIC SfxDocumentInfo
{
    SfxDocumentInfo_Impl* pImp;

    SAL_DLLPRIVATE DateTime DATETIME_PROP(sal_Int32 nHandle) const;
    SAL_DLLPRIVATE BOOL BOOL_PROP(sal_Int32 nHandle) const;
    SAL_DLLPRIVATE sal_Int32 INT_PROP(sal_Int32 nHandle) const;
    SAL_DLLPRIVATE String STRING_PROP(sal_Int32 nHandle) const;
    SAL_DLLPRIVATE void SET_PROP(sal_Int32 nHandle, const com::sun::star::uno::Any& aValue );

public:

    SfxDocumentInfo( SfxObjectShell* pDoc=0);

    // deep copy
    SfxDocumentInfo( const SfxDocumentInfo& );

    // shallow copy
    SfxDocumentInfo( const com::sun::star::uno::Reference < com::sun::star::document::XDocumentInfo >& );

    ~SfxDocumentInfo();

    const SfxDocumentInfo& operator=( const SfxDocumentInfo& );
    int operator==( const SfxDocumentInfo& ) const;

    com::sun::star::uno::Reference < com::sun::star::document::XDocumentInfo > GetInfo() const;

    sal_uInt32 LoadPropertySet( SotStorage* pStor );
    sal_Bool SavePropertySet( SotStorage* pStor, GDIMetaFile* pThumb ) const;

    BOOL IsReloadEnabled() const;
    sal_Int16 GetDocumentNumber() const;
    sal_Int32 GetReloadDelay() const;
    sal_Int32 GetTime() const;
    String GetDefaultTarget() const;
    String GetReloadURL() const;
    String GetTemplateName() const;
    String GetTemplateFileName() const;
    String GetTitle()   const;
    String GetTheme()   const;
    String GetComment() const;
    String GetKeywords()const;
    String GetMimeType() const;
    String GetAuthor() const;
    DateTime GetCreationDate() const;
    String GetModificationAuthor() const;
    DateTime GetModificationDate() const;
    String GetPrintedBy() const;
    DateTime GetPrintDate() const;
    DateTime GetTemplateDate() const;

    void EnableReload( BOOL bEnable );
    void SetDocumentNumber(sal_Int16 nNo);
    void SetReloadDelay( sal_Int32 nDelay );
    void SetTime(sal_Int32 l);
    void SetDefaultTarget( const String& rString );
    void SetReloadURL( const String& rString );
    void SetTemplateName( const String& rName );
{'fraction_non_alphanumeric': 0.13223706748886604, 'fraction_numerical': 0.02181112253054699, 'mean_word_length': 4.343502135448444, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3361569', 'n_tokens_mistral': 2941, 'n_tokens_neox': 2740, 'n_words': 809}