<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div>Hi all</div><div dir="ltr"><div>I modified source code to support vertical left to right writing mode in the text box. and it works very well.</div><div><div>Then I added a new button to draw it, and created a new slot SID_DRAW_TEXT_VERTICAL_LR slot to response its MouseButtonDown event</div><div><br></div><div><div><img src="cid:ii_14bca9085e89f33e" alt="埋め込み画像 5" style="margin-right:25px"><br></div></div><div>Screen shot : <a href="https://www.dropbox.com/s/346my16e4j0juhb/drawbar.jpg?dl=0" target="_blank">https://www.dropbox.com/s/346my16e4j0juhb/drawbar.jpg?dl=0</a><br></div><div><br></div><div>What I did with the source code is shown as below<br></div><div><div>But it does not work</div></div><div>Please help me, <span style="font-size:14px">Best regards</span></div><div><span style="font-size:14px"><br></span></div><div><br></div><div><div>diff --git a/main/svx/inc/svx/svxids.hrc b/main/svx/inc/svx/svxids.hrc</div><div>index da7e318..cdd1a89 100644</div><div>--- a/main/svx/inc/svx/svxids.hrc</div><div>+++ b/main/svx/inc/svx/svxids.hrc</div><div>@@ -1283,9 +1283,9 @@</div><div><br></div><div> #define FN_SVX_SET_NUMBER                              (SID_SVX_START + 1117)</div><div> #define FN_SVX_SET_BULLET                              (SID_SVX_START + 1118)</div><div>-</div><div>+#define SID_DRAW_TEXT_VERTICAL_LR   (SID_SVX_START + 1119)</div><div> // IMPORTANT NOTE: adjust SID_SVX_FIRSTFREE, when adding new slot id</div><div>-#define SID_SVX_FIRSTFREE                               (FN_SVX_SET_BULLET + 1)</div><div>+#define SID_SVX_FIRSTFREE                               (<b>SID_DRAW_TEXT_VERTICAL_LR </b>+ 1)</div></div><div><br></div><div><div>diff --git a/main/configmgr/qa/unit/data.xcd b/main/configmgr/qa/unit/data.xcd</div><div>index b217d27..eef97d1 100644</div><div>--- a/main/configmgr/qa/unit/data.xcd</div><div>+++ b/main/configmgr/qa/unit/data.xcd</div><div>@@ -2135,6 +2135,14 @@</div><div>           <value>1</value></div><div>         </prop></div><div>       </node></div><div>+      <node oor:name=".<b>uno:VerticalLeftToRightText</b>" oor:op="replace"></div><div>+          <prop oor:name="Label" oor:type="xs:string"></div><div>+              <value xml:lang="x-no-translate"></value><value xml:lang="en-US">Vertical Left To RightText</value></div><div>+          </prop></div><div>+          <prop oor:name="Properties" oor:type="xs:int"></div><div>+              <value>1</value></div><div>+          </prop></div><div>+      </node></div><div>       <node oor:name=".uno:VerticalCaption" oor:op="replace"></div><div>         <prop oor:name="Label" oor:type="xs:string"></div><div>           <value xml:lang="x-no-translate"></value><value xml:lang="en-US">Vertical Callouts</value></div></div><div><br></div><div><br></div><div><div>diff --git a/main/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/main/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu</div><div>index cb7c1ec..c880c48 100644</div><div>--- a/main/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu</div><div>+++ b/main/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu</div><div>@@ -5659,6 +5659,14 @@</div><div>                     <value>1</value></div><div>                 </prop></div><div>             </node></div><div>+            <node oor:name=".<b>uno:VerticalLeftToRightText</b>" oor:op="replace"></div><div>+                <prop oor:name="Label" oor:type="xs:string"></div><div>+                    <value xml:lang="en-US">Vertical Left To RightText</value></div><div>+                </prop></div><div>+                <prop oor:name="Properties" oor:type="xs:int"></div><div>+                    <value>1</value></div><div>+                </prop></div><div>+            </node></div><div>             <node oor:name=".uno:ViewDataSourceBrowser" oor:op="replace"></div><div>                 <prop oor:name="Label" oor:type="xs:string"></div><div>                     <value xml:lang="en-US">~Data Sources</value></div></div><div><br></div><div><div>diff --git a/main/svx/sdi/svx.sdi b/main/svx/sdi/svx.sdi</div><div>index 09f907e..f34d30b 100644</div><div>--- a/main/svx/sdi/svx.sdi</div><div>+++ b/main/svx/sdi/svx.sdi</div><div>@@ -11510,6 +11510,32 @@ SfxBoolItem VerticalText SID_DRAW_TEXT_VERTICAL</div><div> ]</div><div><br></div><div> //--------------------------------------------------------------------------</div><div><b>+SfxBoolItem VerticalLeftToRightText SID_DRAW_TEXT_VERTICAL_LR</b></div><div>+</div><div>+[</div><div>+       /* flags: */</div><div>+       AutoUpdate = TRUE,</div><div>+       Cachable = Cachable,</div><div>+       FastCall = FALSE,</div><div>+       HasCoreId = FALSE,</div><div>+       HasDialog = FALSE,</div><div>+       ReadOnlyDoc = FALSE,</div><div>+       Toggle = FALSE,</div><div>+       Container = FALSE,</div><div>+       RecordAbsolute = FALSE,</div><div>+       RecordPerSet;</div><div>+       Synchron;</div><div>+</div><div>+       Readonly = FALSE,</div><div>+</div><div>+       /* config: */</div><div>+       AccelConfig = TRUE,</div><div>+       MenuConfig = TRUE,</div><div>+       StatusBarConfig = FALSE,</div><div>+       ToolBoxConfig = TRUE,</div><div>+       GroupId = GID_DRAWING;</div><div>+]</div><div>+//--------------------------------------------------------------------------</div></div><div><br></div><div><div>diff --git a/main/sw/uiconfig/swriter/toolbar/drawbar.xml b/main/sw/uiconfig/swriter/toolbar/drawbar.xml</div><div>index ef317dd..6c87d7d 100644</div><div>--- a/main/sw/uiconfig/swriter/toolbar/drawbar.xml</div><div>+++ b/main/sw/uiconfig/swriter/toolbar/drawbar.xml</div><div>@@ -35,6 +35,7 @@</div><div>  <toolbar:toolbaritem xlink:href=".uno:Pie" toolbar:visible="false"/></div><div>  <toolbar:toolbaritem xlink:href=".uno:CircleCut" toolbar:visible="false"/></div><div>  <toolbar:toolbaritem xlink:href=".uno:DrawText"/></div><div><b>+ <toolbar:toolbaritem xlink:href=".uno:VerticalLeftToRightText"/></b></div><div>  <toolbar:toolbaritem xlink:href=".uno:VerticalText"/></div><div>  <toolbar:toolbaritem xlink:href=".uno:Text_Marquee" toolbar:visible="false"/></div><div>  <toolbar:toolbaritem xlink:href=".uno:DrawCaption"/></div></div><div><br></div></div></div></div></div></div>-- <br><div class="gmail_signature"><div dir="ltr">Aron<br></div></div>
</div>