Revision 31496 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/extension/PrintProperties.java
PrintProperties.java | ||
---|---|---|
53 | 53 |
import org.gvsig.andami.PluginServices; |
54 | 54 |
import org.gvsig.andami.plugins.Extension; |
55 | 55 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
56 |
import org.gvsig.app.project.documents.layout.gui.Layout; |
|
56 |
import org.gvsig.app.project.documents.layout.gui.LayoutPanel;
|
|
57 | 57 |
|
58 | 58 |
|
59 | 59 |
|
... | ... | |
63 | 63 |
* @author vcn |
64 | 64 |
*/ |
65 | 65 |
public class PrintProperties extends Extension /*implements IPreferenceExtension*/ { |
66 |
private Layout l; |
|
66 |
private LayoutPanel l;
|
|
67 | 67 |
// private static final IPreference printPropertiesPage = new PrintPropertiesPage(); |
68 | 68 |
// private Paper paper; |
69 | 69 |
Rectangle2D.Double aux = null; |
... | ... | |
74 | 74 |
* @param s DOCUMENT ME! |
75 | 75 |
*/ |
76 | 76 |
public void execute(String s) { |
77 |
l = (Layout) PluginServices.getMDIManager().getActiveWindow(); |
|
77 |
l = (LayoutPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
78 | 78 |
l.showFConfig(); |
79 | 79 |
//l.showPagePropertiesWindow(Print.printerJob); |
80 | 80 |
} |
... | ... | |
91 | 91 |
return false; |
92 | 92 |
} |
93 | 93 |
|
94 |
return (f instanceof Layout); |
|
94 |
return (f instanceof LayoutPanel);
|
|
95 | 95 |
} |
96 | 96 |
|
97 | 97 |
/** |
98 | 98 |
* @see com.iver.mdiApp.plugins.IExtension#isEnabled() |
99 | 99 |
*/ |
100 | 100 |
public boolean isEnabled() { |
101 |
Layout f = (Layout) PluginServices.getMDIManager().getActiveWindow();
|
|
101 |
LayoutPanel f = (LayoutPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
102 | 102 |
|
103 | 103 |
if (f == null || !f.getLayoutContext().isEditable()) { |
104 | 104 |
return false; |
Also available in: Unified diff