2008/04/01 16:10:54 thb 1.7.66.3: #i85898# Stripping all external header guards 2008/04/01 13:06:19 thb 1.7.66.2: #i85898# Stripping all external header guards 2008/03/31 16:30:59 rt 1.7.66.1: #i87441# Change license header to LPGL v3.
71 lines
2.9 KiB
C++
71 lines
2.9 KiB
C++
/*************************************************************************
|
|
*
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
*
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: resourcemanager.hxx,v $
|
|
* $Revision: 1.8 $
|
|
*
|
|
* This file is part of OpenOffice.org.
|
|
*
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
* only, as published by the Free Software Foundation.
|
|
*
|
|
* OpenOffice.org 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 version 3 for more details
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
* <http://www.openoffice.org/license.html>
|
|
* for a copy of the LGPLv3 License.
|
|
*
|
|
************************************************************************/
|
|
|
|
#ifndef _RESOURCEMANAGER_HXX
|
|
#define _RESOURCEMANAGER_HXX
|
|
|
|
#include <tools/resmgr.hxx>
|
|
#include <tools/datetime.hxx>
|
|
#include <com/sun/star/util/DateTime.hpp>
|
|
#include <com/sun/star/uno/Sequence.hxx>
|
|
|
|
class FixedImage;
|
|
class FixedInfo;
|
|
class Control;
|
|
class LocaleDataWrapper;
|
|
|
|
namespace XmlSec
|
|
{
|
|
ResMgr* GetResMgr( void );
|
|
|
|
const LocaleDataWrapper& GetLocaleData( void );
|
|
DateTime GetDateTime( const ::com::sun::star::util::DateTime& _rDT );
|
|
String GetDateTimeString( const ::com::sun::star::util::DateTime& _rDT );
|
|
String GetDateTimeString( const rtl::OUString& _rDate, const rtl::OUString& _rTime );
|
|
String GetDateString( const ::com::sun::star::util::DateTime& _rDT );
|
|
|
|
String GetPureContent( const String& _rRawString,
|
|
const char* _pCommaReplacement = ", ",
|
|
bool _bPreserveId = false ); // strips "CN=" and so from string
|
|
String GetContentPart( const String& _rRawString, const String& _rPartId );
|
|
String GetContentPart( const String& _rRawString );
|
|
|
|
String GetHexString( const ::com::sun::star::uno::Sequence< sal_Int8 >& _rSeq, const char* _pSep = ":", UINT16 _nLineBreak = 0xFFFF );
|
|
|
|
long ShrinkToFitWidth( Control& _rCtrl, long _nOffs = 0 ); // return = new width
|
|
void AlignAfterImage( const FixedImage& _rImage, Control& _rCtrl, long _nXOffset = 0 );
|
|
void AlignAfterImage( const FixedImage& _rImage, FixedInfo& _rFI, long _nXOffset = 0 );
|
|
void AlignAndFitImageAndControl( FixedImage& _rImage, FixedInfo& _rFI, long _nXOffset = 0 );
|
|
}
|
|
|
|
#define XMLSEC_RES(id) ResId(id,*XmlSec::GetResMgr())
|
|
|
|
#endif
|