Giter Site home page Giter Site logo

inoribbon's Introduction

Ribbon-Erstellung für Office-Dateien

Ein Ribbon für Office-Dateien wird über einen XML-Datei aufgebaut, die Bestandteil der entsprechenden Office Datei ist.

Dazu wird eine Datei eine Datei 'customUI14.xml' in einen neuen Ordner 'customUI' der Office-ZIP-Datei gelegt. Des Weiteren muss ein Verweis auf diese Datei in der Datei '\_rels\.rels' angelegt werden.

Das Erstellen der customUI14.xml Datei und den Verweis in der Datei '.rels' kann manuell oder mit Hilfsprogrammen erfolgen.

Der manuelle Weg

Die Office-Datei umbenennen auf zip.

Aus der Zip-Datei muss die Datei \_rels\.rels exthrahiert werden.

Anschließned muss dieser Verweis am Ende der Auflistung eingefügt werden.

<Relationship Type="http://schemas.microsoft.com/office/2007/relationships/ui/extensibility" Target="/customUI/customUI14.xml" Id="demoID" />

Die Id muss eindeutig sein.

Danach wird die Datei in der Zip Datei mit der bestehenden ausgetauscht.

Danach wird ein Ordner customUI angelegt und eine customUI14.xml dort abgelegt.

Beispiel für die Datei customUI14.xml

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
	<ribbon>
		<tabs>
			<tab id="customTab" label="Contoso" insertAfterMso="TabHome">
				<group idMso="GroupClipboard" />
				<group idMso="GroupFont" />
				<group id="customGroup" label="Contoso Tools">
					<button id="customButton1" label="ConBold" size="large" onAction="conBoldSub" imageMso="Bold" />
					<button id="customButton2" label="ConItalic" size="large" onAction="conItalicSub" imageMso="Italic" />
					<button id="customButton3" label="ConUnderline" size="large" onAction="conUnderlineSub" imageMso="Underline" />
				</group>
				<group idMso="GroupEnterDataAlignment" />
				<group idMso="GroupEnterDataNumber" />
				<group idMso="GroupQuickFormatting" />
			</tab>
		</tabs>
	</ribbon>
</customUI>

Der Ordner customUI wird dann in die Zip-Datei kopiert.

Zum Ende wird die Zip-Date wieder auf das Original umbenannt,

Mit Werkzeugen

Zunächst bietet sich das kostenfreie Werkzeug OfficeCustomUIEditor von Microsoft an. https://github.com/OfficeDev/office-custom-ui-editor.

Ein Nachfolger ist der Office RibbonX Editor https://github.com/fernandreu/office-ribbonx-editor

Als Excellösung bietet sich der RibbonX Visual Designer an. https://www.andypope.info/vba/ribboneditor_2010.htm

inoribbon's People

Contributors

inopiae avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.