Update contrib.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
22 #include "wpresources.h"
26 Get default path for word documents
27 @param aPath this will hold the resulting path
30 void TWordFilePath::GetWordDefaultFilePath(TFileName& aPath)
32 _LIT(KDriveMask, "_:\\");
33 aPath.Copy(KDriveMask);
34 aPath[0] = 'A' + static_cast<TInt>(RFs::GetSystemDrive());
39 Get path of the folder containing document templates
40 @param aPath this will hold the resulting path
43 void TWordFilePath::GetNormalTemplateFolderName(TFileName& aPath)
45 // grab process's private path
48 fs.PrivatePath(aPath);
50 // prepend ROM drive name at front
51 TDriveUnit romDrive(static_cast<TInt>(EDriveZ));
52 aPath.Insert(0, romDrive.Name());