</component>
<component name="ChangeListManager">
<list default="true" readonly="true" id="f146bc67-2578-4de3-9db2-94d2d43e9e83" name="Default" comment="">
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/artifacts/fwstk_jar/fwstk.jar" afterPath="$PROJECT_DIR$/out/artifacts/fwstk_jar/fwstk.jar" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/com/fluidbook/fwstk/Main.java" afterPath="$PROJECT_DIR$/src/com/fluidbook/fwstk/Main.java" />
</list>
<ignored path="fwstk.iws" />
<ignored path=".idea/workspace.xml" />
<file leaf-file-name="Main.java" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/com/fluidbook/fwstk/Main.java">
<provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="1820">
- <caret line="690" column="46" lean-forward="true" selection-start-line="690" selection-start-column="46" selection-end-line="690" selection-end-column="46" />
+ <state relative-caret-position="409">
+ <caret line="607" column="48" lean-forward="false" selection-start-line="607" selection-start-column="48" selection-end-line="607" selection-end-column="48" />
<folding />
</state>
</provider>
<workItem from="1474367539645" duration="4924000" />
<workItem from="1485968626559" duration="6000" />
<workItem from="1487167125744" duration="1439000" />
- <workItem from="1487171443640" duration="776000" />
+ <workItem from="1487171443640" duration="1394000" />
</task>
+ <task id="LOCAL-00001" summary="wip #1111 @0.5">
+ <created>1487172253077</created>
+ <option name="number" value="00001" />
+ <option name="presentableId" value="LOCAL-00001" />
+ <option name="project" value="LOCAL" />
+ <updated>1487172253077</updated>
+ </task>
+ <option name="localTasksCounter" value="2" />
<servers />
</component>
<component name="TimeTrackingManager">
- <option name="totallyTimeSpent" value="7145000" />
+ <option name="totallyTimeSpent" value="7763000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
<window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32936078" sideWeight="0.4914712" order="2" side_tool="false" content_ui="tabs" />
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32936078" sideWeight="0.4914712" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25799572" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
+ <component name="VcsManagerConfiguration">
+ <MESSAGE value="wip #1111 @0.5" />
+ <option name="LAST_COMMIT_MESSAGE" value="wip #1111 @0.5" />
+ </component>
<component name="XDebuggerManager">
<breakpoint-manager />
<watches-manager />
</entry>
<entry file="file://$PROJECT_DIR$/src/com/fluidbook/fwstk/Main.java">
<provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="1820">
- <caret line="690" column="46" lean-forward="true" selection-start-line="690" selection-start-column="46" selection-end-line="690" selection-end-column="46" />
+ <state relative-caret-position="409">
+ <caret line="607" column="48" lean-forward="false" selection-start-line="607" selection-start-column="48" selection-end-line="607" selection-end-column="48" />
<folding />
</state>
</provider>
protected $home;
protected $widget = true;
protected $multiApp = false;
+ protected $pageLabels = array('two' => 2);
function __construct($book_id, $version = 'stable', $phonegap = false, $phonegapVersion = 'latest', $dir = null, $standalone = false, $appcache = false, $home = false) {
global $core;
$this->config = cubeObject::merge($this->book->parametres->toStandardObject(), $this->theme->parametres->toStandardObject());
}
+ public function addPageLabel($page, $label) {
+ $this->pageLabels[$label] = $page;
+ }
+
public function getResolutions() {
$res = self::$resolutions;
if ($this->widget) {
}
public function virtualToPhysical($virtual) {
+ if (isset($this->pageLabels[$virtual])) {
+ return $virtual;
+ }
if (!in_array($virtual, $this->numerotation)) {
return 1;
}
$cpages = array();
$css = array();
+ usort($links, array($this, '_sortLinks'));
+
foreach ($links as $linkData) {
if (in_array($linkData['type'], $ignore)) {
continue;
return $css;
}
+ public function _sortLinks($a, $b) {
+ $priorities = array(26 => 1);
+
+ $pa = isset($priorities[$a['type']]) ? $priorities[$a['type']] : 0;
+ $pb = isset($priorities[$b['type']]) ? $priorities[$b['type']] : 0;
+ return $pb - $pa;
+ }
+
public function addBookmarkGroup($link) {
if ($link['left'] > $this->book->parametres->width) {
//$link['page']++;
$this->config->htmlmultimedia = $this->htmlmultimedia;
$this->config->phonegap = $this->phonegap;
$this->config->retinaResolution = $this->maxRes;
+ $this->config->pageLabels = $this->pageLabels;
if ($this->home) {
$this->config->home = 'http://home';
}