19
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd.
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "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".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Kanrikogaku Kenkyusho, Ltd. - Initial contribution
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include <aknviewappui.h>
|
|
19 |
#include <barsread.h>
|
|
20 |
#include <akntitle.h>
|
|
21 |
|
|
22 |
#include "directprintviewbase.h"
|
|
23 |
#include "directprintappappui.h"
|
|
24 |
#include "directprintappdocument.h"
|
|
25 |
#include "directprintmodel.h"
|
|
26 |
#include "directprintuipluginmgr.h"
|
|
27 |
#include "directprintengine.h"
|
|
28 |
|
|
29 |
CDirectPrintViewBase::CDirectPrintViewBase()
|
|
30 |
{
|
|
31 |
}
|
|
32 |
|
|
33 |
CDirectPrintViewBase::~CDirectPrintViewBase()
|
|
34 |
{
|
|
35 |
}
|
|
36 |
|
|
37 |
void CDirectPrintViewBase::ConstructL()
|
|
38 |
{
|
|
39 |
}
|
|
40 |
|
|
41 |
TUid CDirectPrintViewBase::Id() const
|
|
42 |
{
|
|
43 |
return iViewId;
|
|
44 |
}
|
|
45 |
|
|
46 |
void CDirectPrintViewBase::HandleListIndexL(TInt /*aIndex*/)
|
|
47 |
{
|
|
48 |
}
|
|
49 |
|
|
50 |
void CDirectPrintViewBase::HandleEditItemL(TInt /*aIndex*/, TBool /*aChanged*/)
|
|
51 |
{
|
|
52 |
}
|
|
53 |
|
|
54 |
void CDirectPrintViewBase::DoActivateL(const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/)
|
|
55 |
{
|
|
56 |
}
|
|
57 |
|
|
58 |
void CDirectPrintViewBase::DoDeactivate()
|
|
59 |
{
|
|
60 |
}
|
|
61 |
|
|
62 |
void CDirectPrintViewBase::SetActiveTitleL(TInt aTitleResId)
|
|
63 |
{
|
|
64 |
TUid titlePaneUid = TUid::Uid( EEikStatusPaneUidTitle );
|
|
65 |
CEikStatusPaneBase::TPaneCapabilities subPaneTitle =
|
|
66 |
StatusPane()->PaneCapabilities( titlePaneUid );
|
|
67 |
if ( subPaneTitle.IsPresent() && subPaneTitle.IsAppOwned() )
|
|
68 |
{
|
|
69 |
CAknTitlePane* title = static_cast< CAknTitlePane* >(
|
|
70 |
StatusPane()->ControlL( titlePaneUid ) );
|
|
71 |
TResourceReader reader;
|
|
72 |
iEikonEnv->CreateResourceReaderLC( reader, aTitleResId );
|
|
73 |
title->SetFromResourceL( reader );
|
|
74 |
CleanupStack::PopAndDestroy(); // reader internal state
|
|
75 |
}
|
|
76 |
}
|
|
77 |
|
|
78 |
CDirectPrintModel& CDirectPrintViewBase::GetModel()
|
|
79 |
{
|
|
80 |
return (static_cast<CDirectPrintAppAppUi*>(AppUi()))->Doc()->Model();
|
|
81 |
}
|
|
82 |
|
|
83 |
CDirectPrintUiPluginMgr& CDirectPrintViewBase::GetPluginMgr()
|
|
84 |
{
|
|
85 |
return (static_cast<CDirectPrintAppAppUi*>(AppUi()))->PluginMgr();
|
|
86 |
}
|
|
87 |
|
|
88 |
CDirectPrintEngine& CDirectPrintViewBase::GetEngine()
|
|
89 |
{
|
|
90 |
return *((static_cast<CDirectPrintAppAppUi*>(AppUi()))->Engine());
|
|
91 |
}
|
|
92 |
|