notebookbar: add missing items in format tab

Change-Id: I2c14a530818acfd17916499ce62527587298f5c4
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
This commit is contained in:
Szymon Kłos 2021-03-11 17:55:31 +01:00 committed by Szymon Kłos
parent c9a6016153
commit f40d531bf8
7 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1 @@
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m5 3v18h14v-14.2705905l-4-3.7294095z" fill="#fff"/><path d="m5 2c-.554 0-1 .446-1 1v18c0 .554.446 1 1 1h14c.554 0 1-.446 1-1v-10.109375-3.6412209-.2079239c0-.4506799.09887-.4265951-.604637-1.0675892l-3.307389-3.2370335c-.709525-.7368575-.711223-.7368575-1.094804-.7368575h-.331557-.661613zm0 1h9v4c0 .554.446 1 1 1h4v13h-14z" fill="#808080"/><path d="m15 7h4l-4-4z" fill="#fff" fill-rule="evenodd"/><rect fill="#808080" height="1" ry=".5" width="7" x="6" y="5"/><rect fill="#808080" height="1" ry=".5" width="7" x="6" y="8"/><g fill="#4d82b8"><rect height="1" ry=".5" width="5" x="6" y="11"/><rect height="1" ry=".5" width="5" x="13" y="11"/><rect height="1" ry=".5" width="5" x="6" y="14"/><rect height="1" ry=".5" width="5" x="13" y="14"/></g><rect fill="#808080" height="1" ry=".482023" width="12" x="6" y="17"/></svg>

After

Width:  |  Height:  |  Size: 890 B

View file

@ -0,0 +1 @@
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="#808080" transform="scale(-1 1)"><rect height="1" ry=".5" width="7.999991" x="-15" y="2"/><rect height="1" ry=".392136" width="15.000005" x="-22" y="10"/><rect height="1" ry=".436441" width="15.000001" x="-22" y="18"/><rect height="1" ry=".5" width="8.999999" x="-16" y="21"/><rect height="1" ry=".5" width="8.999999" x="-16" y="13"/><rect height="1" ry=".487288" width="8.000003" x="-15" y="5"/></g><path d="m2.4805826 7h1.2475728v-3.168421c0-.1383459.00485-.2827068.014563-.4330828l-.8398058.6721804c-.055016.042105-.1100322.067669-.1650486.076692-.055016.00902-.1067959.00902-.1553397 0-.048543-.00902-.092233-.02406-.1310679-.045113-.035599-.02406-.063107-.04812-.082524-.072181l-.3689324-.4691724 1.9368932-1.5609022h1.0631068v5h1v1h-3.5194174z" fill="#4d82b8"/><path d="m4.0890866 10q.4097995 0 .7438753.125093.3385299.120625.5746101.344006.2405345.223381.3697104.540581.1336303.312732.1336303.692479 0 .326136-.093541.607595-.093541.276992-.2494431.531646-.155902.250186-.3652561.491437-.2093542.236784-.44098.478035l-1.2561245 1.317944q.2004453-.06254.4008908-.09382.2004455-.03574.3741648-.03574h1.340757q.1692651 0 .2717149.09829.1069045.098283.1069045.259116v.643336h-3.9999996v-.361876q0-.102755.040089-.218913.044543-.120625.1514477-.22338l1.7193762-1.773642q.2182627-.227848.3830734-.433358.169265-.20551.2806235-.406552.115813-.20551.1737195-.411021.057907-.209977.057907-.437825 0-.411021-.2048997-.620998-.2048999-.209978-.5790646-.209978-.1603563 0-.2939866.04915-.1336303.04915-.2405345.134028-.1069042.08488-.1826281.201043-.075724.116158-.1158128.250186-.07127.205509-.1959911.268056-.1202672.06254-.3340757.0268l-.5701567-.098285q.0668152-.433358.2405345-.755027.1737193-.326134.4320712-.54058.2628062-.218913.6013362-.326136.3385301-.11169.7260578-.11169z" fill="#4d82b8"/><g fill="#eac282"><rect height="1" ry=".5" width="6" x="16" y="1"/><rect height="6" ry=".5" width="1" x="16" y="1"/><path d="m17.499935 7.4999941 5.000059-5.0000589v5.0000589z" fill-rule="evenodd" stroke="#eac282" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.000012"/></g></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -0,0 +1 @@
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m5 3v18h14v-18z" fill="#fff"/><rect fill="#4d82b8" height="1" ry=".5" width="5" x="6" y="5"/><path d="m5 2c-.554 0-1 .446-1 1v18c0 .554.446 1 1 1h14c.554 0 1-.446 1-1v-18c0-.554-.446-1-1-1zm0 1h14v18h-14z" fill="#808080"/><rect fill="#4d82b8" height="1" ry=".5" width="5" x="13" y="5"/><g fill="#808080"><rect height="1" ry=".5" width="5" x="6" y="9"/><rect height="1" ry=".5" width="5" x="13" y="9"/><rect height="1" ry=".5" width="5" x="6" y="15"/><rect height="1" ry=".5" width="5" x="13" y="15"/><rect height="1" ry=".5" width="5" x="6" y="12"/><rect height="1" ry=".5" width="5" x="13" y="12"/><rect height="1" ry=".5" width="5" x="6" y="18"/><rect height="1" ry=".5" width="5" x="13" y="18"/></g></svg>

After

Width:  |  Height:  |  Size: 777 B

View file

@ -0,0 +1 @@
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m10.15625 1.9902344c-.2061811-.0004876-.3900495.1325849-.4609375.3339844l-6.65625 19.0000002c-.1172131.333228.1198237.686329.4609375.685547h2.8203125c.3917233 0 .7717026-.122229 1.0664063-.373047l.0019531-.001953c.2610064-.224286.4647886-.491652.5742187-.804688.00269-.0066.0053925-.012831.0078125-.019531l1.0195313-3.810547h3.6835936l1-1h-5.0292968c-.2133226-.000133-.401785.144122-.4667968.355469l-1.1367188 4.126953c-.03728.106643-.1165593.227071-.2773437.365234-.1084405.09186-.2307429.142578-.4433594.142578h-2.1210937l6.3007812-17.9804684h3l3.417969 9.7539064.601562-.587891.173828-.173828-3.390625-9.6777342c-.070647-.2007142-.253504-.3336359-.458984-.3339844zm1.835938 3.4609375c-.227445-.00217-.426263.1588873-.480469.3886719-.108001.4587411-.222013.884008-.337891 1.2734374-.117727.3956461-.226336.7364903-.324219 1.0234376l-.003906.015625-1.8574218 5.9960942c-.1011835.329176.1365187.851747.46875.851562h5.0878908c.077338.000043.14705-.032433.210937-.080078l.050782-.050781c.176161-.17487.275727-.490864.205078-.720703l-1.857422-6.0117192c-.0029-.00939-.006266-.0181468-.009766-.0273438-.105256-.2829149-.217158-.6167309-.333984-1-.116593-.3920262-.23223-.8190714-.349609-1.2792969-.05683-.2215179-.248354-.3767849-.46875-.3789062zm.003906 2.3242187c.07901.2442718.158196.4984132.234375.703125l1.640625 5.5214844h-3.742188l1.650391-5.5332031-.005859.0136719c.06869-.2013512.146719-.4597131.222656-.7050782zm7.90039 10.5097654-.773437.777344.675781 1.927734h-2.078125c-.208712 0-.327829-.04307-.416015-.097656l-.714844.71875c.019123.017451.032903.039942.052734.056641l.011719.009765c.296992.235381.670775.332032 1.066406.332032h2.779297c.341114.000781.57815-.352319.460938-.685547z" fill="#696969"/><path d="m10.5 3.0097656-6.3007812 17.9804684h2.1210937c.2126165 0 .3349189-.05072.4433594-.142578.1607844-.138163.2400637-.258591.2773437-.365234l1.1367188-4.126953c.0650118-.211347.2534742-.355602.4667968-.355469h5.0292968l1.082031-1.080078c-.063887.047645-.133599.080121-.210937.080078h-5.0878908c-.3322313.000185-.5699334-.522386-.46875-.851562l1.8574218-5.9960942.0039-.015625c.09788-.2869472.206492-.6277915.324219-1.0234376.115878-.3894295.22989-.8146962.337891-1.2734374.05421-.2297845.253024-.3908419.480469-.3886719.220396.00212.41192.1573883.46875.3789062.117379.4602255.233016.8872707.349609 1.2792969.116826.3832691.228728.7170851.333984 1 .0035.0092.0069.017954.0098.027344l1.857422 6.0117192c.07065.229839-.02892.545833-.205078.720703l1.966797-1.964844c.04602-.0458.09639-.08701.15039-.123047l-3.423856-9.7714846zm8.623047 16.0527344-1.818359 1.830078c.08819.05459.207303.09766.416015.09766h2.078125z" fill="#fff"/><g fill="#eac282"><path d="m17.480469 13.611328-5.529297 5.523438-.951172 3.865234 3.806641-1.011719 5.509765-5.544922z"/><path d="m20.419922 11c-.189562 0-.378184.07172-.523438.216797l-1.673828 1.669922 2.847656 2.849609 1.710938-1.638672c.290506-.290127.290506-.756747 0-1.046875l-1.835938-1.833984c-.145254-.145064-.335828-.216797-.52539-.216797z"/></g></svg>

After

Width:  |  Height:  |  Size: 3 KiB

View file

@ -0,0 +1 @@
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m20 13c-1.75727 0-3 1.27411-3 3s1.24273 3 3 3v4h1v-10zm2 0v10h1v-10z" fill="#4d82b8"/><g fill="none" stroke="#696969" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m8 6-5 6 5 6"/><path d="m11 21 5-18"/></g></svg>

After

Width:  |  Height:  |  Size: 308 B

View file

@ -145,6 +145,63 @@ L.Control.JSDialogBuilder = L.Control.extend({
{text: _UNO('.uno:ChiSquareTestDialog', 'spreadsheet'), uno: '.uno:ChiSquareTestDialog'},
{text: _UNO('.uno:FourierAnalysisDialog', 'spreadsheet'), uno: '.uno:FourierAnalysisDialog'}
];
this._menus['FormattingMarkMenu'] = [
{text: _UNO('.uno:InsertNonBreakingSpace', 'text'), uno: 'InsertNonBreakingSpace'},
{text: _UNO('.uno:InsertHardHyphen', 'text'), uno: 'InsertHardHyphen'},
{text: _UNO('.uno:InsertSoftHyphen', 'text'), uno: 'InsertSoftHyphen'},
{text: _UNO('.uno:InsertZWSP', 'text'), uno: 'InsertZWSP'},
{text: _UNO('.uno:InsertZWNBSP', 'text'), uno: 'InsertZWNBSP'},
{text: _UNO('.uno:InsertLRM', 'text'), uno: 'InsertLRM'},
{text: _UNO('.uno:InsertRLM', 'text'), uno: 'InsertRLM'}
];
this._menus['FormatMenu'] = [
{text: _UNO('.uno:Bold', 'text'), uno: 'Bold'},
{text: _UNO('.uno:Italic', 'text'), uno: 'Italic'},
{text: _UNO('.uno:Underline', 'text'), uno: 'Underline'},
{text: _UNO('.uno:UnderlineDouble', 'text'), uno: 'UnderlineDouble'},
{text: _UNO('.uno:Strikeout', 'text'), uno: 'Strikeout'},
{text: _UNO('.uno:Overline', 'text'), uno: 'Overline'},
{type: 'separator'},
{text: _UNO('.uno:SuperScript', 'text'), uno: 'SuperScript'},
{text: _UNO('.uno:SubScript', 'text'), uno: 'SubScript'},
{type: 'separator'},
{text: _UNO('.uno:Shadowed', 'text'), uno: 'Shadowed'},
{text: _UNO('.uno:OutlineFont', 'text'), uno: 'OutlineFont'},
{type: 'separator'},
{text: _UNO('.uno:Grow', 'text'), uno: 'Grow'},
{text: _UNO('.uno:Shrink', 'text'), uno: 'Shrink'},
{type: 'separator'},
{text: _UNO('.uno:ChangeCaseToUpper', 'text'), uno: 'ChangeCaseToUpper'},
{text: _UNO('.uno:ChangeCaseToLower', 'text'), uno: 'ChangeCaseToLower'},
{text: _UNO('.uno:ChangeCaseRotateCase', 'text'), uno: 'ChangeCaseRotateCase'},
{type: 'separator'},
{text: _UNO('.uno:ChangeCaseToSentenceCase', 'text'), uno: 'ChangeCaseToSentenceCase'},
{text: _UNO('.uno:ChangeCaseToTitleCase', 'text'), uno: 'ChangeCaseToTitleCase'},
{text: _UNO('.uno:ChangeCaseToToggleCase', 'text'), uno: 'ChangeCaseToToggleCase'},
{type: 'separator'},
{text: _UNO('.uno:SmallCaps', 'text'), uno: 'SmallCaps'}
];
this._menus['FormatBulletsMenu'] = [
{text: _UNO('.uno:DefaultBullet', 'text'), uno: 'DefaultBullet'},
{type: 'separator'},
{text: _UNO('.uno:DecrementLevel', 'text'), uno: 'DecrementLevel'},
{text: _UNO('.uno:IncrementLevel', 'text'), uno: 'IncrementLevel'},
{text: _UNO('.uno:DecrementSubLevels', 'text'), uno: 'DecrementSubLevels'},
{text: _UNO('.uno:IncrementSubLevels', 'text'), uno: 'IncrementSubLevels'},
{type: 'separator'},
{text: _UNO('.uno:MoveDown', 'text'), uno: 'MoveDown'},
{text: _UNO('.uno:MoveUp', 'text'), uno: 'MoveUp'},
{text: _UNO('.uno:MoveDownSubItems', 'text'), uno: 'MoveDownSubItems'},
{text: _UNO('.uno:MoveUpSubItems', 'text'), uno: 'MoveUpSubItems'},
{type: 'separator'},
{text: _UNO('.uno:InsertNeutralParagraph', 'text'), uno: 'InsertNeutralParagraph'},
{text: _UNO('.uno:NumberingStart', 'text'), uno: 'NumberingStart'},
{text: _UNO('.uno:RemoveBullets', 'text'), uno: 'RemoveBullets'},
{type: 'separator'},
{text: _UNO('.uno:JumpDownThisLevel', 'text'), uno: 'JumpDownThisLevel'},
{text: _UNO('.uno:JumpUpThisLevel', 'text'), uno: 'JumpUpThisLevel'},
{text: _UNO('.uno:ContinueNumbering', 'text'), uno: 'ContinueNumbering'}
];
this._currentDepth = 0;
},

View file

@ -1770,6 +1770,12 @@ L.Control.NotebookbarWriter = L.Control.Notebookbar.extend({
getFormatTab: function() {
var content = [
{
'id': 'FormatMenu:FormatMenu',
'type': 'menubutton',
'text': _UNO('.uno:FormatMenu', 'text'),
'command': '.uno:FormatMenu'
},
{
'type': 'bigtoolitem',
'text': _UNO('.uno:FontDialog'),
@ -1800,6 +1806,22 @@ L.Control.NotebookbarWriter = L.Control.Notebookbar.extend({
'text': _UNO('.uno:TransformDialog'),
'command': '.uno:TransformDialog'
},
{
'type': 'bigtoolitem',
'text': _UNO('.uno:FormatColumns', 'text'),
'command': '.uno:FormatColumns'
},
{
'type': 'bigtoolitem',
'text': _UNO('.uno:EditRegion', 'text'),
'command': '.uno:EditRegion'
},
{
'id': 'FormatBulletsMenu:FormatBulletsMenu',
'type': 'menubutton',
'text': _UNO('.uno:FormatBulletsMenu', 'text'),
'command': '.uno:FormatBulletsMenu'
},
];
return this.getNotebookbar([this.getTabPage('Format', content)], '-3');
@ -1996,6 +2018,12 @@ L.Control.NotebookbarWriter = L.Control.Notebookbar.extend({
'type': 'bigtoolitem',
'text': _UNO('.uno:InsertAnnotation', 'text'),
'command': '.uno:InsertAnnotation'
},
{
'id': 'FormattingMarkMenu:FormattingMarkMenu',
'type': 'menubutton',
'text': _UNO('.uno:FormattingMarkMenu', 'text'),
'command': '.uno:FormattingMarkMenu'
}
];