Skip to content

Commit

Permalink
Release 16.0.0 codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
atrenton committed Sep 3, 2019
1 parent e9ad5c2 commit 8c7f61b
Show file tree
Hide file tree
Showing 82 changed files with 6,470 additions and 7 deletions.
63 changes: 63 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
17 changes: 17 additions & 0 deletions Build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo OFF
rem PowerShell Build.ps1 Script Wrapper
SETLOCAL
color 1F
set PS_FILE="%~dpn0.ps1"
TITLE Executing PowerShell %PS_FILE% script . . .

if NOT exist %SystemRoot%\system32\config\system (
echo ERROR: You must run this script as Administrator
goto :ExitScript
)

powershell.exe -ExecutionPolicy RemoteSigned -NoLogo -File %PS_FILE%

:ExitScript
ENDLOCAL
pause
35 changes: 35 additions & 0 deletions Build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Build.ps1 -- Builds MyJournal.Notebook VS2017 Solution using MSBuild
#Requires Version 4
#Requires -RunAsAdministrator

# Load the common script library
. "$PSScriptRoot\scripts\Common-Library.ps1"

if ($global:MSBuild_EXE -eq $null) {
Set-Variable `
-Name MSBuild_EXE -Value $(Find-MSBuild-v15) `
-Option Constant -Scope Global
}

Set-Location $PSScriptRoot

#-------------------------------------------------------------------------------
# MSBuild properties
#-------------------------------------------------------------------------------
# NOTE: THE FOLLOWING 2 PROPERTIES ARE MUTUALLY EXCLUSIVE; USE ONE OR THE OTHER
#
# To specify a semantic version, use the /p:Version property:
# EXAMPLE: '/p:Version=16.0.0-rc.1'
#
# To specify Git Commit SHA-1 hash, use the /p:SourceRevisionId property:
# EXAMPLE: "/p:SourceRevisionId=g$(Git-Latest-Commit)"
#-------------------------------------------------------------------------------
$properties = @('/p:Configuration=Release', '/p:Platform=x86',
"/p:SourceRevisionId=g$(Git-Latest-Commit)")

$sln = '"{0}"' -f "$PSScriptRoot\src\MyJournal.Notebook.sln"

& $MSBuild_EXE $sln $properties /t:Restore

# MSBuild registers the OneNote COM Add-in; requires Run as Administrator option
& $MSBuild_EXE $sln $properties /t:'Clean;Build'
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Microsoft Public License (Ms-PL)
Microsoft Public License (MS-PL)

This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.

Expand Down
44 changes: 38 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# *MyJournal.Notebook*
[About](#about) | [Requirements](#requirements) | [Installation](#installation) | [Usage](#usage) | [Contributing](#contributing) | [Developer Resources](#developer-resources)

---
### :construction: Under Construction :construction:
>***MyJournal.Notebook*** makes journaling with OneNote as simple as possible, but not simpler!<br />
>![screenshot](docs/README-screenshot.png)<br />
***MyJournal.Notebook*** makes journaling with OneNote as simple as possible, but not simpler!<br />
![screenshot](docs/README-screenshot.png)<br />
Follow me on Twitter for updates and general questions.<br />
[![Twitter Follow](https://img.shields.io/twitter/follow/ArtTrenton.svg?label=Follow%20@ArtTrenton)](https://twitter.com/ArtTrenton)<br />

## About
>Record your daily interactions, ideas and inspirations with this add-in for Microsoft® OneNote® 2010 / 2013 / 2016 Windows desktop versions (32-bit).
<table hspace="25">
<tr>
<th scope="row">
Expand Down Expand Up @@ -56,3 +53,38 @@ Follow me on Twitter for updates and general questions.<br />
<td>Microsoft and OneNote are registered trademarks of Microsoft Corporation.</td>
</tr>
</table>

## Requirements
* .NET Framework 4.6.2 or later<br />
* OneNote 2010 / 2013 / 2016 Windows desktop software (32-bit)<br />
* Visual Studio 2017 version 15.2 or later (developers only)<br />

## Installation
- To install this add-in, you must have a 32-bit Windows desktop version of OneNote 2010 / 2013 / 2016.

- OneNote for Windows 10 is not supported.

- To find the bitness for your version of OneNote:
1. Press the `Windows + Shift + N` keys to open OneNote.

2. For OneNote 2013 (Version 15.0) / 2016 (Version 16.0):
- Click on File &#x2192; Account &#x2192; About OneNote button<br />![OneNote 2013 bitness](docs/OneNote-2013-bitness.png)<br />![OneNote 2016 bitness](docs/OneNote-2016-bitness.png)

3. For OneNote 2010 (Version 14.0):
- Click on File &#x2192; Help<br />![OneNote 2010 bitness](docs/OneNote-2010-bitness.png)

- After confirming you have a 32-bit version of OneNote, download and install the MSI file from the [Releases](./releases) page.

## Usage
- [Select journal page template](docs/HowTo-Select-Journal-Page-Template.md)
- [Create journal page](docs/HowTo-Create-Journal-Page.md)
- [Select journal page color](docs/HowTo-Select-Page-Color.md)
- [Select journal page title date format](docs/HowTo-Select-Page-Title.md)
- [Select journal page rule lines format](docs/HowTo-Select-Rule-Lines.md)

## Contributing
I am not accepting contributions to this project at this time. Microsoft has stopped adding new features to the desktop version of OneNote in favor of the cloud-based OneNote for Windows 10. Please read [Frequently Asked Questions about OneNote and Office 2019](https://support.office.com/en-us/article/frequently-asked-questions-about-onenote-and-office-2019-6582c7ae-2ec6-408d-8b7a-3ed71a3c2103 "https://support.office.com/en-us/article/frequently-asked-questions-about-onenote-and-office-2019-6582c7ae-2ec6-408d-8b7a-3ed71a3c2103") for more information.

## Developer Resources
- Check out my Wakelet collection: [OneNote Component Object Model (COM) Programming](https://wakelet.com/wake/0a714a50-a923-4ee5-82f0-2c7171589551)
- [Debugging with DebugView](docs/debugging/DebugView-README.md)
7 changes: 7 additions & 0 deletions docs/HowTo-Create-Journal-Page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# *MyJournal.Notebook*
---
## Usage
### :star: How-to: Create a Journal Page
>![screenshot](usage/create-journal-page.gif)
>Screen capture recorded with [ScreenToGif](https://www.screentogif.com/)
7 changes: 7 additions & 0 deletions docs/HowTo-Select-Journal-Page-Template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# *MyJournal.Notebook*
---
## Usage
### :star: How-to: Select a Journal Page Template
>![screenshot](usage/select-page-template.gif)
>Screen capture recorded with [ScreenToGif](https://www.screentogif.com/)
7 changes: 7 additions & 0 deletions docs/HowTo-Select-Page-Color.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# *MyJournal.Notebook*
---
## Usage
### :star: How-to: Select a Journal Page Color
>![screenshot](usage/select-page-color.gif)
>Screen capture recorded with [ScreenToGif](https://www.screentogif.com/)
7 changes: 7 additions & 0 deletions docs/HowTo-Select-Page-Title.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# *MyJournal.Notebook*
---
## Usage
### :star: How-to: Select a Journal Page Title Date Format
>![screenshot](usage/select-page-title-date-format.gif)
>Screen capture recorded with [ScreenToGif](https://www.screentogif.com/)
7 changes: 7 additions & 0 deletions docs/HowTo-Select-Rule-Lines.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# *MyJournal.Notebook*
---
## Usage
### :star: How-to: Select a Journal Page Rule Lines Style
>![screenshot](usage/select-page-rule-lines-format.gif)
>Screen capture recorded with [ScreenToGif](https://www.screentogif.com/)
Binary file added docs/OneNote-2010-bitness.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/OneNote-2013-bitness.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/OneNote-2016-bitness.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/OneNote-Office365-bitness.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions docs/debugging/DebugView-Filter.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
DebugView Filter Definition File v1.0
[DEBUG]
[DEBUG];[TRACE];[ " ];[INFO ];[WARN ];[ERROR]

[TRACE];[ " ]
[INFO ]
[WARN ]
[ERROR]















FFFFFF
AA1977
0
E6D8AD
FFFFFF
BB00
0
73F7FE
FFFFFF
300FF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
FFFFFF
37 changes: 37 additions & 0 deletions docs/debugging/DebugView-README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# About the DebugView-Filters.ini file

The **`DebugView-Filters.ini`** file is a [Sysinternals DebugView](https://docs.microsoft.com/en-us/sysinternals/downloads/debugview) filters file for debugging the **MyJournal.Notebook** add-in.

----------

### DebugView Menu Settings
- Capture
- Select Capture Win32 (Ctrl+W)
- Select Capture Events (Ctrl+E)

- Options
- Deselect Win32 PIDs
- Select Clock Time (Ctrl+T)
- Select Show Milliseconds

- Computer
- Select Connect Local

----------

### How to load the **`DebugView-Filters.ini`** file
1. From the DebugView menu, select Edit > Filter/Highlight... (Ctrl+L)
2. Click the Load button
3. Navigate to the repo `docs\debugging` subdirectory and select the `DebugView-Filters.ini` file
4. Click the Open button
5. Click the OK button
6. Save the filters configuration by closing and reopening DebugView

----------

### Debugging the MyJournal.Notebook Add-in
To debug the add-in, update the following ``appSettings`` values in ``App.config``:
Set ``key="Diagnostics.OutputWriter.Type.Name" value="TraceOutputWriter"``
Set ``key="Diagnostics.TraceSwitch.Level" value="Verbose"``

**NOTE:** When creating a ``Debug`` build, the ``App.config`` file will be automatically configured by the Microsoft VisualStudio [SlowCheetah](https://marketplace.visualstudio.com/items?itemName=vscps.SlowCheetah-XMLTransforms) package.
Binary file added docs/usage/create-journal-page.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/usage/select-page-color.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/usage/select-page-rule-lines-format.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/usage/select-page-template.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/usage/select-page-title-date-format.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions scripts/About-MyJournal-Notebook.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# About-MyJournal-Notebook.ps1

If ( [IntPtr]::Size * 8 -ne 32 )
{
$this = $MyInvocation.MyCommand.Path
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell.exe -File $this
Exit
# NOTE: The Assembly::LoadFile statement below must run in 32-bit instance
# of PowerShell in order to successfully load the COM Add-in assembly.
}

# Load the common script library
. "$PSScriptRoot\Common-Library.ps1"

# Load the COM Add-in assembly
$assembly = [Reflection.Assembly]::LoadFile("$(Get-ComAddIn-CodeBase)")

$description = [Reflection.CustomAttributeExtensions]::GetCustomAttribute(`
$assembly, [Reflection.AssemblyDescriptionAttribute]).Description

$copyright = [Reflection.CustomAttributeExtensions]::GetCustomAttribute(`
$assembly, [Reflection.AssemblyCopyrightAttribute]).Copyright

$version = [Reflection.CustomAttributeExtensions]::GetCustomAttribute(`
$assembly, [Reflection.AssemblyInformationalVersionAttribute]).`
InformationalVersion

$msg = "{0}`r`n{1}`r`nProduct Version: {2}" -f $description, $copyright, $version
Display-MsgBox $msg | Out-Null
Loading

0 comments on commit 8c7f61b

Please sign in to comment.