1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: scimpexpmsg.cxx,v $
10 * $Revision: 1.5.32.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sc.hxx"
36 // INCLUDE ---------------------------------------------------------------
38 #include "document.hxx"
39 #include "scimpexpmsg.hxx"
41 #include <tools/string.hxx>
43 //UNUSED2008-05 ScImpExpLogMsg::ScImpExpLogMsg( ScImpExpMsg e ) : eId( e ), pPos( NULL ), pHint( NULL )
48 //UNUSED2008-05 ScImpExpLogMsg::ScImpExpLogMsg( ScImpExpMsg e, const String& r ) : eId( e ), pHint( NULL )
50 //UNUSED2008-05 pPos = new String( r );
54 //UNUSED2008-05 ScImpExpLogMsg::ScImpExpLogMsg( ScImpExpMsg e, const String& rP, const String& rH ) : eId( e )
56 //UNUSED2008-05 pPos = new String( rP );
57 //UNUSED2008-05 pHint = new String( rH );
60 //UNUSED2008-05 ScImpExpLogMsg::ScImpExpLogMsg( const ScImpExpLogMsg& r ) : eId( r.eId )
62 //UNUSED2008-05 if( r.pPos )
63 //UNUSED2008-05 pPos = new String( *r.pPos );
65 //UNUSED2008-05 pPos = NULL;
67 //UNUSED2008-05 if( r.pHint )
68 //UNUSED2008-05 pHint = new String( *r.pHint );
70 //UNUSED2008-05 pHint = NULL;
74 //UNUSED2008-05 ScImpExpLogMsg::~ScImpExpLogMsg()
76 //UNUSED2008-05 if( pPos )
77 //UNUSED2008-05 delete pPos;
79 //UNUSED2008-05 if( pHint )
80 //UNUSED2008-05 delete pHint;
84 //UNUSED2008-05 void ScImpExpLogMsg::Set( ScImpExpMsg e, const String* pP, const String* pH )
86 //UNUSED2008-05 eId = e;
87 //UNUSED2008-05 if( pPos )
88 //UNUSED2008-05 delete pPos;
90 //UNUSED2008-05 if( pHint )
91 //UNUSED2008-05 delete pHint;
93 //UNUSED2008-05 if( pP )
94 //UNUSED2008-05 pPos = new String( *pP );
96 //UNUSED2008-05 pPos = NULL;
98 //UNUSED2008-05 if( pH )
99 //UNUSED2008-05 pHint = new String( *pH );
103 //UNUSED2008-05 String ScImpExpLogMsg::GetMsg( ScImpExpMsg e )
105 //UNUSED2008-05 const sal_Char* p;
106 //UNUSED2008-05 switch( e )
108 //UNUSED2008-05 case SC_IMPEXPMSG_UNKNOWN: p = "unknown log message"; break;
109 //UNUSED2008-05 default: p = "Not specified type of log message";
112 //UNUSED2008-05 String aRet;
113 //UNUSED2008-05 aRet.AssignAscii( p );
114 //UNUSED2008-05 return aRet;