Update ooo320-m1
[ooovba.git] / sc / source / core / data / scimpexpmsg.cxx
blob63392069fe64191d7e77e3ebd50f7563e2f0d0ab
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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 )
44 //UNUSED2008-05 {
45 //UNUSED2008-05 }
46 //UNUSED2008-05
47 //UNUSED2008-05
48 //UNUSED2008-05 ScImpExpLogMsg::ScImpExpLogMsg( ScImpExpMsg e, const String& r ) : eId( e ), pHint( NULL )
49 //UNUSED2008-05 {
50 //UNUSED2008-05 pPos = new String( r );
51 //UNUSED2008-05 }
52 //UNUSED2008-05
53 //UNUSED2008-05
54 //UNUSED2008-05 ScImpExpLogMsg::ScImpExpLogMsg( ScImpExpMsg e, const String& rP, const String& rH ) : eId( e )
55 //UNUSED2008-05 {
56 //UNUSED2008-05 pPos = new String( rP );
57 //UNUSED2008-05 pHint = new String( rH );
58 //UNUSED2008-05 }
59 //UNUSED2008-05
60 //UNUSED2008-05 ScImpExpLogMsg::ScImpExpLogMsg( const ScImpExpLogMsg& r ) : eId( r.eId )
61 //UNUSED2008-05 {
62 //UNUSED2008-05 if( r.pPos )
63 //UNUSED2008-05 pPos = new String( *r.pPos );
64 //UNUSED2008-05 else
65 //UNUSED2008-05 pPos = NULL;
66 //UNUSED2008-05
67 //UNUSED2008-05 if( r.pHint )
68 //UNUSED2008-05 pHint = new String( *r.pHint );
69 //UNUSED2008-05 else
70 //UNUSED2008-05 pHint = NULL;
71 //UNUSED2008-05 }
72 //UNUSED2008-05
73 //UNUSED2008-05
74 //UNUSED2008-05 ScImpExpLogMsg::~ScImpExpLogMsg()
75 //UNUSED2008-05 {
76 //UNUSED2008-05 if( pPos )
77 //UNUSED2008-05 delete pPos;
78 //UNUSED2008-05
79 //UNUSED2008-05 if( pHint )
80 //UNUSED2008-05 delete pHint;
81 //UNUSED2008-05 }
82 //UNUSED2008-05
83 //UNUSED2008-05
84 //UNUSED2008-05 void ScImpExpLogMsg::Set( ScImpExpMsg e, const String* pP, const String* pH )
85 //UNUSED2008-05 {
86 //UNUSED2008-05 eId = e;
87 //UNUSED2008-05 if( pPos )
88 //UNUSED2008-05 delete pPos;
89 //UNUSED2008-05
90 //UNUSED2008-05 if( pHint )
91 //UNUSED2008-05 delete pHint;
92 //UNUSED2008-05
93 //UNUSED2008-05 if( pP )
94 //UNUSED2008-05 pPos = new String( *pP );
95 //UNUSED2008-05 else
96 //UNUSED2008-05 pPos = NULL;
97 //UNUSED2008-05
98 //UNUSED2008-05 if( pH )
99 //UNUSED2008-05 pHint = new String( *pH );
100 //UNUSED2008-05 }
101 //UNUSED2008-05
102 //UNUSED2008-05
103 //UNUSED2008-05 String ScImpExpLogMsg::GetMsg( ScImpExpMsg e )
104 //UNUSED2008-05 {
105 //UNUSED2008-05 const sal_Char* p;
106 //UNUSED2008-05 switch( e )
107 //UNUSED2008-05 {
108 //UNUSED2008-05 case SC_IMPEXPMSG_UNKNOWN: p = "unknown log message"; break;
109 //UNUSED2008-05 default: p = "Not specified type of log message";
110 //UNUSED2008-05 }
111 //UNUSED2008-05
112 //UNUSED2008-05 String aRet;
113 //UNUSED2008-05 aRet.AssignAscii( p );
114 //UNUSED2008-05 return aRet;
115 //UNUSED2008-05 }